summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python/samba/idmap.py
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/python/samba/idmap.py')
-rw-r--r--source4/scripting/python/samba/idmap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/idmap.py b/source4/scripting/python/samba/idmap.py
index ac87cbbf370..b651b2053d4 100644
--- a/source4/scripting/python/samba/idmap.py
+++ b/source4/scripting/python/samba/idmap.py
@@ -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