From a0242334feb3da01430f517806768965dabe92c2 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Thu, 31 Jan 2013 07:46:33 -0500 Subject: Use IPAdmin rather than raw python-ldap in ipa-client-install Part of the work for: https://fedorahosted.org/freeipa/ticket/3487 --- ipapython/ipaldap.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ipapython/ipaldap.py') diff --git a/ipapython/ipaldap.py b/ipapython/ipaldap.py index 4f51d6a8..1403c9e8 100644 --- a/ipapython/ipaldap.py +++ b/ipapython/ipaldap.py @@ -1658,7 +1658,7 @@ class IPAdmin(LDAPClient): def __init__(self, host='', port=389, cacert=None, debug=None, ldapi=False, realm=None, protocol=None, force_schema_updates=True, start_tls=False, ldap_uri=None, no_schema=False, - decode_attrs=True): + decode_attrs=True, sasl_nocanon=False): self.conn = None log_mgr.get_logger(self, True) if debug and debug.lower() == "on": @@ -1682,6 +1682,9 @@ class IPAdmin(LDAPClient): no_schema=no_schema, decode_attrs=decode_attrs) + if sasl_nocanon: + self.conn.set_option(ldap.OPT_X_SASL_NOCANON, ldap.OPT_ON) + if start_tls: self.conn.start_tls_s() -- cgit