[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#4479) size limit bypass?



Full_Name: Andreas Hasenack
Version: 2.3.20
OS: Linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (200.140.247.99)


Correct behaviour:
$ ldapsearch -x -LLL -h 127.0.0.1 -b dc=example,dc=com -E pr=2/noprompt -z 2
objectClass=posixAccount dn
dn: uid=fulano0,ou=People,dc=example,dc=com

dn: uid=fulano1,ou=People,dc=example,dc=com

Size limit exceeded (4)

Now watch this:
$ ldapsearch -x -LLL -h 127.0.0.1 -b dc=example,dc=com -E pr=1/noprompt -z 2
objectClass=posixAccount dn
(lists all 100k+ entries I have)

slapd.conf has sizelimit set to 10 and no other fancy configuration related to
limits:
$ ldapsearch -x -LLL -h 127.0.0.1 -b dc=example,dc=com objectClass=posixAccount
dn
dn: uid=fulano0,ou=People,dc=example,dc=com

dn: uid=fulano1,ou=People,dc=example,dc=com

dn: uid=fulano2,ou=People,dc=example,dc=com

dn: uid=fulano3,ou=People,dc=example,dc=com

dn: uid=fulano4,ou=People,dc=example,dc=com

dn: uid=fulano5,ou=People,dc=example,dc=com

dn: uid=fulano6,ou=People,dc=example,dc=com

dn: uid=fulano7,ou=People,dc=example,dc=com

dn: uid=fulano8,ou=People,dc=example,dc=com

dn: uid=fulano9,ou=People,dc=example,dc=com

Size limit exceeded (4)