ldap2: change default bind_dn

Set default bind_dn to cn=directory manager.

https://fedorahosted.org/freeipa/ticket/6461

Reviewed-By: Martin Basti <mbasti@redhat.com>
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
Tomas Krizek authored and Martin Basti committed 2016-11-07 11:34:03 +01:00
1 parent 1240262a0b
commit 36d95472d9
1 file changed
+1 -1
+1 -1
View File
@@ -153,7 +153,7 @@ class ldap2(CrudBackend, LDAPClient):
Extends backend.Connectible.create_connection.
"""
if bind_dn is None:
bind_dn = DN()
bind_dn = DN(('cn', 'directory manager'))
assert isinstance(bind_dn, DN)
if tls_cacertfile is not None:
_ldap.set_option(_ldap.OPT_X_TLS_CACERTFILE, tls_cacertfile)