summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/setup/setup_ldap.py6
1 files changed, 6 insertions, 0 deletions
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)