Hi all,
I'm having trouble with the limits configuration in slapd.conf. I've searched the mailing list, read and re-read man pages, but I just cannot make it work properly.
i've got openldap 2.4.23 built from source on RHEL5, 64-bit
I'm trying to set "unlimited" size for for my syncrepl user.
however, it is not directly related to syncrepl, I've tried with ldapsearch too, similar results.
Here is the ldapsearch command i'm trying:
ldapsearch -z 19 -x -w PASSWORDHERE -D cn=ldap_repl,ou=srvaccts,dc=internet2,dc=edu -H ldaps://ldap3.internet2.edu/ -b dc=internet2,dc=edu '(cn=*)'
With this, query is limited to 19 entries as expected
but when i omit the -z option, or tell it anything above 500, and i get, of course, 500 entries.
Here is the limits statement from my slapd.conf:
limits dn.exact="cn=ldap_repl,ou=srvaccts,dc=internet2,dc=edu" size=unlimited time=unlimited
I also tried these:
limits dn.exact="cn=ldap_repl,ou=srvaccts,dc=internet2,dc=edu" size=999999999 limits dn.exact="cn=ldap_repl,ou=srvaccts,dc=internet2,dc=edu" size=10000
If I instead use
sizelimit size=unlimited
my ldapsearch command of course gives me full results.
Please help, I am clearly a knuckle-dragger.
thanks, danno
Dan Pritts, Sr. Systems Engineer Internet2 office: +1-734-352-4953 | mobile: +1-734-834-7224
Dan Pritts wrote:
Hi all,
I'm having trouble with the limits configuration in slapd.conf. I've searched the mailing list, read and re-read man pages, but I just cannot make it work properly.
i've got openldap 2.4.23 built from source on RHEL5, 64-bit
I'm trying to set "unlimited" size for for my syncrepl user.
however, it is not directly related to syncrepl, I've tried with ldapsearch too, similar results.
Here is the ldapsearch command i'm trying:
ldapsearch -z 19 -x -w PASSWORDHERE -D cn=ldap_repl,ou=srvaccts,dc=internet2,dc=edu -H ldaps://ldap3.internet2.edu/ -b dc=internet2,dc=edu '(cn=*)'
With this, query is limited to 19 entries as expected
but when i omit the -z option, or tell it anything above 500, and i get, of course, 500 entries.
Here is the limits statement from my slapd.conf:
limits dn.exact="cn=ldap_repl,ou=srvaccts,dc=internet2,dc=edu" size=unlimited time=unlimited
I also tried these:
limits dn.exact="cn=ldap_repl,ou=srvaccts,dc=internet2,dc=edu" size=999999999 limits dn.exact="cn=ldap_repl,ou=srvaccts,dc=internet2,dc=edu" size=10000
If I instead use
sizelimit size=unlimited
"sizelimit" is global, while "limits" are per database. You do not specify where you put the "limits" statements above, did you try putting them in the database that syncrepl statement is related to?
p.
On Jan 25, 2011, at 5:58 AM, Pierangelo Masarati wrote:
"sizelimit" is global, while "limits" are per database. You do not specify where you put the "limits" statements above, did you try putting them in the database that syncrepl statement is related to?
This was my problem. I put the limits statement below the (single) database statement and it works now.
I missed bit about per-database on my first several looks at the man page. I probably never read the whole thing through.
To be honest, it didn't even occur to me that i might have more than one database. newbie.
thanks!
danno -- Dan Pritts, Sr. Systems Engineer Internet2 office: +1-734-352-4953 | mobile: +1-734-834-7224
openldap-technical@openldap.org