mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Extend ipa-replica-manage to be able to manage DNA ranges.
Attempt to automatically save DNA ranges when a master is removed. This is done by trying to find a master that does not yet define a DNA on-deck range. If one can be found then the range on the deleted master is added. If one cannot be found then it is reported as an error. Some validation of the ranges are done to ensure that they do overlap an IPA local range and do not overlap existing DNA ranges configured on other masters. http://freeipa.org/page/V3/Recover_DNA_Ranges https://fedorahosted.org/freeipa/ticket/3321
This commit is contained in:
@@ -1806,6 +1806,8 @@ class IPAdmin(LDAPClient):
|
||||
if removes:
|
||||
if not force_replace:
|
||||
modlist.append((ldap.MOD_DELETE, key, removes))
|
||||
elif new_values == []: # delete an empty value
|
||||
modlist.append((ldap.MOD_DELETE, key, removes))
|
||||
|
||||
return modlist
|
||||
|
||||
|
||||
Reference in New Issue
Block a user