Work around limits not being updatable in 389-ds.

The bug to fix updates, BZ 741744, isn't working. For the short
term add the attributes we want to update to the REPLACE
whitelist so rather than using an ADD and DEL operation it will
use a REPLACE.

https://fedorahosted.org/freeipa/ticket/1888
This commit is contained in:
Rob Crittenden 2011-10-13 15:46:58 -04:00
parent 36c63ee8eb
commit 411c303ae8

View File

@ -505,7 +505,7 @@ class IPAdmin(SimpleLDAPObject):
# Some attributes, like those in cn=config, need to be replaced
# not deleted/added.
FORCE_REPLACE_ON_UPDATE_ATTRS = ('nsslapd-ssl-check-hostname',)
FORCE_REPLACE_ON_UPDATE_ATTRS = ('nsslapd-ssl-check-hostname', 'nsslapd-lookthroughlimit', 'nsslapd-idlistscanlimit')
modlist = []
old_entry = ipautil.CIDict(old_entry)