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/python/samba/provision | |
parent | fa1c7615d0809a124109713e1b340f71d9c4594f (diff) | |
download | samba-438971e214e6f55f19148ed2afc03ec1c7066f65.tar.gz samba-438971e214e6f55f19148ed2afc03ec1c7066f65.tar.xz 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/python/samba/provision')
-rw-r--r-- | source4/scripting/python/samba/provision/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/provision/__init__.py b/source4/scripting/python/samba/provision/__init__.py index d00c3ded47..d138c9e423 100644 --- a/source4/scripting/python/samba/provision/__init__.py +++ b/source4/scripting/python/samba/provision/__init__.py @@ -798,7 +798,7 @@ def secretsdb_self_join(secretsdb, domain, # but we don't delete the old record that we are about to modify, # because that would delete the keytab and previous password. res = secretsdb.search(base="cn=Primary Domains", attrs=attrs, - expression=("(&(|(flatname=%s)(realm=%s)(objectSid=%s))(objectclass=primaryDomain)(!(dn=%s)))" % (domain, realm, str(domainsid), str(msg.dn))), + expression=("(&(|(flatname=%s)(realm=%s)(objectSid=%s))(objectclass=primaryDomain)(!(distinguishedName=%s)))" % (domain, realm, str(domainsid), str(msg.dn))), scope=ldb.SCOPE_ONELEVEL) for del_msg in res: |