pykolab/setup

Jeroen van Meeuwen vanmeeuwen at kolabsys.com
Sun Jun 3 16:57:22 CEST 2012


 pykolab/setup/setup_ldap.py |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit d8665844e86329e4f0db2fdb4fafe4335328bcfd
Author: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen at kolabsys.com>
Date:   Sun Jun 3 16:56:36 2012 +0200

    Set inetdomainbasedn attribute value for root dns that are not the same as the standard dn for the configured domain name.

diff --git a/pykolab/setup/setup_ldap.py b/pykolab/setup/setup_ldap.py
index 1f14a5e..9175cc6 100644
--- a/pykolab/setup/setup_ldap.py
+++ b/pykolab/setup/setup_ldap.py
@@ -383,6 +383,12 @@ ServerAdminPwd = %(admin_pass)s
     attrs = {}
     attrs['objectclass'] = ['top','domainrelatedobject']
     attrs['associateddomain'] = '%s' % (_input['domain'])
+
+    # Add inetdomainbasedn in case the configured root dn is not the same as the
+    # standard root dn for the domain name configured
+    if not _input['rootdn'] == utils.standard_root_dn(_input['domain']):
+        attrs['inetdomainbasedn'] = _input['rootdn']
+
     ldif = ldap.modlist.addModlist(attrs)
     auth._auth.ldap.add_s(dn, ldif)
 





More information about the commits mailing list