diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-10-25 20:10:30 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-03-26 00:57:29 +0200 |
commit | 438971e214e6f55f19148ed2afc03ec1c7066f65 (patch) | |
tree | fdc6cd5ce73a4da1490e3fea85d8ce39c7f6ed41 /source4/scripting/bin/rebuildextendeddn | |
parent | fa1c7615d0809a124109713e1b340f71d9c4594f (diff) | |
download | samba-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/rebuildextendeddn')
-rwxr-xr-x | source4/scripting/bin/rebuildextendeddn | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/bin/rebuildextendeddn b/source4/scripting/bin/rebuildextendeddn index 5ab90c9fbd..5a0ab1295a 100755 --- a/source4/scripting/bin/rebuildextendeddn +++ b/source4/scripting/bin/rebuildextendeddn @@ -119,7 +119,7 @@ def rebuild_en_dn(credentials,session_info,paths): saveatt.append(str(res[i][att][j])) m[att] = ldb.MessageElement(saveatt, ldb.FLAG_MOD_REPLACE, att) sam_ldb.modify(m) - res3 = sam_ldb.search(expression="(&(dn=%s)(%s=*))"%(dn,att),scope=SCOPE_SUBTREE, attrs=[att],controls=["search_options:1:2"]) + res3 = sam_ldb.search(expression="(&(distinguishedName=%s)(%s=*))"%(dn,att),scope=SCOPE_SUBTREE, attrs=[att],controls=["search_options:1:2"]) if( len(res3) == 0 or (len(res3[0][att])!= len(saveatt))): print >>sys.stderr, str(dn) + " has no attr " +att+ " or a wrong value" for satt in saveatt: |