From 8f8236df2b81128a45185b3e4b91d24956e2a933 Mon Sep 17 00:00:00 2001 From: "Jeroen van Meeuwen (Kolab Systems)" Date: Sun, 24 Nov 2013 23:13:33 +0100 Subject: Make sure the input domain is the first in the storage order (#2585) --- pykolab/setup/setup_ldap.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pykolab/setup/setup_ldap.py') diff --git a/pykolab/setup/setup_ldap.py b/pykolab/setup/setup_ldap.py index 2681160..66c5d41 100644 --- a/pykolab/setup/setup_ldap.py +++ b/pykolab/setup/setup_ldap.py @@ -587,6 +587,8 @@ ServerAdminPwd = %(admin_pass)s # De-duplicate attribute values before attempting to insert the object (#2205) attrs['associateddomain'] = list(set(attrs['associateddomain'])) + attrs['associateddomain'].pop(attrs['associateddomain'].index(_input['domain'])) + attrs['associateddomain'] = [ _input['domain'] ] + 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) -- cgit v1.1