Hide Forgot
+++ This bug was initially created as a clone of Bug #742324 +++ Unable to change nsslapd-idlistscanlimit in a running server. Unable to set per-user idlistscanlimit (as with nsLookThroughLimit) --- Additional comment from rmeggins on 2011-09-29 13:45:35 EDT --- Created attachment 525606 [details] 0002-Bug-742324-allow-nsslapd-idlistscanlimit-to-be-set-d.patch --- Additional comment from rmeggins on 2011-09-29 16:36:21 EDT --- To ssh://git.fedorahosted.org/git/389/ds.git 0157534..c21515b master -> master commit c21515b1577d5e71fddc20b91bae7abfda6c90e1 Author: Rich Megginson <rmeggins> Date: Thu Sep 29 11:36:20 2011 -0600 Reviewed by: nhosoi, nkinder (Thanks!) Branch: master Fix Description: Changed the ldbm_config for idlistscanlimit to allow running change. Added a new attribute nsIDListScanLimit that works just like nsLookThroughLimit for user entries. For each search operation, calculate the idlistscanlimit to use based on any nsIDListScanLimit or database config. The biggest change was to extend the internal database API to allow the idlistscanlimit (aka allidslimit) to be passed down into the lowest level of the code where it is used. Platforms tested: RHEL6 x86_64 Flag Day: no Doc impact: Yes - will need to document how nsIDListScanLimit and nsslapd-idlistscanlimit work now
/usr/bin/ldapmodify -x -p 389 -h 10.65.201.65 -D "cn=Directory Manager" -w Secret123 << EOF dn: cn=config,cn=ldbm database,cn=plugins,cn=config changetype: modify replace: nsslapd-pagedidlistscanlimit nsslapd-pagedidlistscanlimit: 300 EOF modifying entry "cn=config,cn=ldbm database,cn=plugins,cn=config" [root@rhel61-ds90-sankar ~]# /usr/bin/ldapmodify -x -p 389 -h 10.65.201.65 -D "cn=Directory Manager" -w Secret123 << EOF dn: cn=config,cn=ldbm database,cn=plugins,cn=config changetype: modify replace: nsslapd-idlistscanlimit nsslapd-idlistscanlimit: 300 EOF modifying entry "cn=config,cn=ldbm database,cn=plugins,cn=config" /usr/bin/ldapsearch -x -p 389 -h 10.65.201.65 -D "cn=Directory Manager" -w Secret123 -b "cn=config" | grep -i nsslapd-pagedidlists nsslapd-pagedidlistscanlimit: 300 [root@rhel61-ds90-sankar scripts]# /usr/bin/ldapsearch -x -p 389 -h 10.65.201.65 -D "cn=Directory Manager" -w Secret123 -b "cn=config" | grep -i nsslapd-idlists nsslapd-requiresrestart: cn=config,cn=ldbm:nsslapd-idlistscanlimit nsslapd-idlistscanlimit: 300 I could successfully run ldapmodify against idlistscanlimit per user and global config attributes. Hence marking the bug as verified.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHEA-2011-1711.html