ldapsearch return Error "Size limit exceeded (4)"

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 7

Issue

  • ldapsearch command return error "Size limit exceeded (4)"
# ldapsearch -LLL -x -D "uid=user1,ou=People,dc=example,dc=com" -W

...skip

# search result
search: 2
result: 4 Size limit exceeded

Resolution

  • In case of openldap server is using slapd.conf , add below line in slapd.conf
sizelimit 5000

However 5000 is a search limit and it can be increased.

  • In case of openldap server is using cn=config.ldif , add below line under the bdb database file
sizelimit unlimited
  • In case of openldap server is using cn=config.ldif , add below line under the hdb database file
 olcSizeLimit: 5000

However 5000 is a search limit and it can be increased.

  • After making changes in the respective files restart openldap server
systemctl restart slapd

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments