mirror of
https://github.com/samba-team/samba.git
synced 2025-12-09 00:23:50 +03:00
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>
This commit is contained in:
committed by
Andrew Bartlett
parent
fa1c7615d0
commit
438971e214
@@ -63,7 +63,7 @@ if __name__ == '__main__':
|
||||
paths, smbconf, lp)
|
||||
|
||||
contactdn = "OU=Contacts,%s" % str(names.domaindn)
|
||||
res = ldbs.sam.search(expression="(dn=%s)" % contactdn,
|
||||
res = ldbs.sam.search(expression="(distinguishedName=%s)" % contactdn,
|
||||
base=str(names.domaindn),
|
||||
scope=SCOPE_BASE)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user