Bug 742382

Summary: [RFE] allow nsslapd-idlistscanlimit to be set dynamically and per-user
Product: Red Hat Enterprise Linux 6 Reporter: Rich Megginson <rmeggins>
Component: 389-ds-baseAssignee: Rich Megginson <rmeggins>
Status: CLOSED ERRATA QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2CC: dpal, jgalipea, nsoman, rmeggins, sramling
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 389-ds-base-1.2.9.12-2.el6 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 742324 Environment:
Last Closed: 2011-12-06 17:56:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 742324    
Bug Blocks: 747120    

Description Rich Megginson 2011-09-29 21:46:12 UTC
+++ 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

Comment 2 Sankar Ramalingam 2011-11-08 10:29:46 UTC
/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.

Comment 3 errata-xmlrpc 2011-12-06 17:56:36 UTC
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