summaryrefslogtreecommitdiff
path: root/pykolab
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-04-27 14:22:16 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-04-27 14:22:16 (GMT)
commit1ab25276c9b0425ac638ab0935a8c5d30d699048 (patch)
tree42142b6b893ce34072e6118b4e5517d22b8c6741 /pykolab
parentf2d68e09b3b536159a4929b5e0a812a018cc477d (diff)
downloadpykolab-1ab25276c9b0425ac638ab0935a8c5d30d699048.tar.gz
Use the configured administrator login
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/setup/setup_ldap.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pykolab/setup/setup_ldap.py b/pykolab/setup/setup_ldap.py
index 2fb93ca..ee5f5ea 100644
--- a/pykolab/setup/setup_ldap.py
+++ b/pykolab/setup/setup_ldap.py
@@ -217,12 +217,12 @@ ServerAdminPwd = %(admin_pass)s
auth._auth.connect()
auth._auth._bind()
- dn = 'uid=cyrus-admin,ou=Special Users,%s' % (_input['rootdn'])
+ dn = 'uid=%s,ou=Special Users,%s' % (conf.get('cyrus-imap', 'admin_login'), _input['rootdn'])
# A dict to help build the "body" of the object
attrs = {}
attrs['objectclass'] = ['top','person','inetorgperson','organizationalperson']
- attrs['uid'] = "cyrus-admin"
+ attrs['uid'] = conf.get('cyrus-imap', 'admin_login')
attrs['givenname'] = "Cyrus"
attrs['surname'] = "Administrator"
attrs['cn'] = "Cyrus Administrator"