From 61c0938c769f5ece202f04095138a5348f95aa18 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Mon, 4 Feb 2013 11:50:58 +0100 Subject: Remove support for DN normalization from LDAPClient. --- install/restart_scripts/renew_ca_cert | 4 ++-- install/restart_scripts/renew_ra_cert | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'install/restart_scripts') diff --git a/install/restart_scripts/renew_ca_cert b/install/restart_scripts/renew_ca_cert index b1efd8f9..5768db3f 100644 --- a/install/restart_scripts/renew_ca_cert +++ b/install/restart_scripts/renew_ca_cert @@ -70,11 +70,11 @@ try: try: (entry_dn, entry_attrs) = conn.get_entry(dn, ['usercertificate']) entry_attrs['usercertificate'] = cert - conn.update_entry(dn, entry_attrs, normalize=False) + conn.update_entry(dn, entry_attrs) except errors.NotFound: entry_attrs = dict(objectclass=['top', 'pkiuser', 'nscontainer'], usercertificate=cert) - conn.add_entry(dn, entry_attrs, normalize=False) + conn.add_entry(dn, entry_attrs) except errors.EmptyModlist: pass conn.disconnect() diff --git a/install/restart_scripts/renew_ra_cert b/install/restart_scripts/renew_ra_cert index e5418fda..e541e4ba 100644 --- a/install/restart_scripts/renew_ra_cert +++ b/install/restart_scripts/renew_ra_cert @@ -60,11 +60,11 @@ while attempts < 10: try: (entry_dn, entry_attrs) = conn.get_entry(dn, ['usercertificate']) entry_attrs['usercertificate'] = dercert - conn.update_entry(dn, entry_attrs, normalize=False) + conn.update_entry(dn, entry_attrs) except errors.NotFound: entry_attrs = dict(objectclass=['top', 'pkiuser', 'nscontainer'], usercertificate=dercert) - conn.add_entry(dn, entry_attrs, normalize=False) + conn.add_entry(dn, entry_attrs) except errors.EmptyModlist: pass updated = True -- cgit