summaryrefslogtreecommitdiff
path: root/source4/scripting/bin/renamedc
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2011-10-25 20:10:30 +0200
committerAndrew Bartlett <abartlet@samba.org>2012-03-26 00:57:29 +0200
commit438971e214e6f55f19148ed2afc03ec1c7066f65 (patch)
treefdc6cd5ce73a4da1490e3fea85d8ce39c7f6ed41 /source4/scripting/bin/renamedc
parentfa1c7615d0809a124109713e1b340f71d9c4594f (diff)
downloadsamba-438971e214e6f55f19148ed2afc03ec1c7066f65.tar.gz
samba-438971e214e6f55f19148ed2afc03ec1c7066f65.tar.bz2
samba-438971e214e6f55f19148ed2afc03ec1c7066f65.zip
LDB/s4 - do not use the "(dn=...)" syntax on filters anymore
Make it AD-compatible using "(distinguishedName=...)". Reviewed-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/scripting/bin/renamedc')
-rwxr-xr-xsource4/scripting/bin/renamedc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/bin/renamedc b/source4/scripting/bin/renamedc
index 9d6f5c4c29..1fa19b25fb 100755
--- a/source4/scripting/bin/renamedc
+++ b/source4/scripting/bin/renamedc
@@ -114,7 +114,7 @@ if __name__ == '__main__':
ldbs.sam.modify(msg)
# Do a self join one more time to resync the secrets file
- res = ldbs.sam.search(expression=("dn=%s" % newdn),
+ res = ldbs.sam.search(expression=("distinguishedName=%s" % newdn),
attrs=["msDs-keyVersionNumber", "serverReferenceBL"])
assert(len(res) == 1)
kvno = int(str(res[0]["msDs-keyVersionNumber"]))