From 9005b9bc8aac7c1381aadb7d17107ebbebae005d Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Fri, 1 Mar 2013 15:02:14 -0500 Subject: 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 --- ipapython/ipaldap.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ipapython/ipaldap.py') diff --git a/ipapython/ipaldap.py b/ipapython/ipaldap.py index 10492d178..6873511c4 100644 --- a/ipapython/ipaldap.py +++ b/ipapython/ipaldap.py @@ -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 -- cgit