From 36d95472d983ff342a43a5df36d932b9de8c32ac Mon Sep 17 00:00:00 2001 From: Tomas Krizek Date: Thu, 27 Oct 2016 13:40:17 +0200 Subject: [PATCH] ldap2: change default bind_dn Set default bind_dn to cn=directory manager. https://fedorahosted.org/freeipa/ticket/6461 Reviewed-By: Martin Basti Reviewed-By: Jan Cholasta --- ipaserver/plugins/ldap2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipaserver/plugins/ldap2.py b/ipaserver/plugins/ldap2.py index 8cbac2846..2d08f1c79 100644 --- a/ipaserver/plugins/ldap2.py +++ b/ipaserver/plugins/ldap2.py @@ -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)