mirror of
https://github.com/samba-team/samba.git
synced 2025-07-27 07:42:04 +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
@ -54,7 +54,7 @@ class IDmapDB(samba.Ldb):
|
||||
|
||||
:return xid can that be used for SID/unixid mapping
|
||||
"""
|
||||
res = self.search(expression="dn=CN=CONFIG", base="",
|
||||
res = self.search(expression="distinguishedName=CN=CONFIG", base="",
|
||||
scope=ldb.SCOPE_SUBTREE)
|
||||
id = res[0].get("xidNumber")
|
||||
flag = ldb.FLAG_MOD_REPLACE
|
||||
|
Reference in New Issue
Block a user