summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-11-18 13:14:58 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-11-18 13:14:58 +0100
commit13f2595a881a3669b889947574d7da188ec54486 (patch)
tree0b702ff9ecc8f5f051044158874ccf9596da0bbc
parente85be5eb4b9e6e18bf1addf198b40e87779d1e9b (diff)
downloadpykolab-13f2595a881a3669b889947574d7da188ec54486.tar.gz
De-duplicate the attribute values for the primary domain before attempting to insert the object (#2205)
-rw-r--r--pykolab/setup/setup_ldap.py4
1 files changed, 4 insertions, 0 deletions
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