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/samdb.py | |
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/python/samba/samdb.py')
-rw-r--r-- | source4/scripting/python/samba/samdb.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/scripting/python/samba/samdb.py b/source4/scripting/python/samba/samdb.py index 1614955b74..b37854b3e4 100644 --- a/source4/scripting/python/samba/samdb.py +++ b/source4/scripting/python/samba/samdb.py @@ -462,7 +462,7 @@ unicodePwd:: %s if force_change_at_next_login: self.force_password_change_at_next_login( - "(dn=" + str(user_dn) + ")") + "(distinguishedName=" + str(user_dn) + ")") # modify the userAccountControl to remove the disabled bit self.enable_account(search_filter) @@ -662,7 +662,7 @@ accountExpires: %u for the given attribute. None if the attribute is not replicated """ - res = self.search(expression="dn=%s" % dn, + res = self.search(expression="distinguishedName=%s" % dn, scope=ldb.SCOPE_SUBTREE, controls=["search_options:1:2"], attrs=["replPropertyMetaData"]) @@ -684,7 +684,7 @@ accountExpires: %u def set_attribute_replmetadata_version(self, dn, att, value, addifnotexist=False): - res = self.search(expression="dn=%s" % dn, + res = self.search(expression="distinguishedName=%s" % dn, scope=ldb.SCOPE_SUBTREE, controls=["search_options:1:2"], attrs=["replPropertyMetaData"]) |