Remove support for DN normalization from LDAPClient.

This commit is contained in:
Jan Cholasta
2013-02-04 11:50:58 +01:00
committed by Martin Kosek
parent 5b2e0e2ba5
commit 61c0938c76
9 changed files with 41 additions and 85 deletions

View File

@@ -75,7 +75,7 @@ def get_entry(dn, conn):
"""
entry = None
try:
(dn, entry) = conn.get_entry(dn, normalize=False)
(dn, entry) = conn.get_entry(dn)
except errors.NotFound:
pass
return entry
@@ -166,7 +166,7 @@ def main():
print "Enabling plugin"
# Already configured, just enable the plugin
mod = {'nsslapd-pluginenabled': 'on'}
conn.update_entry(nis_config_dn, mod, normalize=False)
conn.update_entry(nis_config_dn, mod)
else:
print "Plugin already Enabled"
retval = 2
@@ -174,7 +174,7 @@ def main():
elif args[0] == "disable":
try:
mod = {'nsslapd-pluginenabled': 'off'}
conn.update_entry(nis_config_dn, mod, normalize=False)
conn.update_entry(nis_config_dn, mod)
except errors.NotFound:
print "Plugin is already disabled"
retval = 2