mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 15:40:01 -06:00
Make sure attributeTypes updates are done before objectClasses updates.
https://fedorahosted.org/freeipa/ticket/3521
This commit is contained in:
parent
9ecf4b7aac
commit
463407ac6f
@ -2009,7 +2009,10 @@ class IPAdmin(LDAPClient):
|
|||||||
# replace any existing schema.
|
# replace any existing schema.
|
||||||
if old_entry.get('dn', DN()) == DN(('cn', 'schema')):
|
if old_entry.get('dn', DN()) == DN(('cn', 'schema')):
|
||||||
if len(adds) > 0:
|
if len(adds) > 0:
|
||||||
modlist.append((ldap.MOD_ADD, key, adds))
|
if key == 'attributetypes':
|
||||||
|
modlist.insert(0, (ldap.MOD_ADD, key, adds))
|
||||||
|
else:
|
||||||
|
modlist.append((ldap.MOD_ADD, key, adds))
|
||||||
else:
|
else:
|
||||||
if adds:
|
if adds:
|
||||||
if force_replace:
|
if force_replace:
|
||||||
|
Loading…
Reference in New Issue
Block a user