pykolab/setup
Jeroen van Meeuwen
vanmeeuwen at kolabsys.com
Mon Nov 18 13:15:25 CET 2013
pykolab/setup/setup_ldap.py | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 13f2595a881a3669b889947574d7da188ec54486
Author: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen at kolabsys.com>
Date: Mon Nov 18 13:14:58 2013 +0100
De-duplicate the attribute values for the primary domain before attempting to insert the object (#2205)
diff --git a/pykolab/setup/setup_ldap.py b/pykolab/setup/setup_ldap.py
index 9944403..b185987 100644
--- a/pykolab/setup/setup_ldap.py
+++ b/pykolab/setup/setup_ldap.py
@@ -584,6 +584,10 @@ ServerAdminPwd = %(admin_pass)s
'localhost.localdomain',
'localhost'
]
+
+ # De-duplicate attribute values before attempting to insert the object (#2205)
+ attrs['associateddomain'] = list(set(attrs['associateddomain']))
+
attrs['aci'] = '(targetattr = "*") (version 3.0;acl "Read Access for %(domain)s Users";allow (read,compare,search)(userdn = "ldap:///%(rootdn)s??sub?(objectclass=*)");)' % (_input)
# Add inetdomainbasedn in case the configured root dn is not the same as the
More information about the commits
mailing list