osixia / docker-openldap

OpenLDAP container image 🐳🌴
MIT License
4.06k stars 978 forks source link

limits #684

Open ViVlVl opened 3 months ago

ViVlVl commented 3 months ago

Hello,

my directory has about 1500 entries, When I access the directory from the admin account - I get all users, but if I access the directory from "LDAP_READONLY_USER" - I get only 500. There is a default limit for regular users (sizelimit) , is there an easy way to bypass it?

bar2cha commented 3 months ago

Hello,

A non-persistent solution is to set olcSizeLimit greater than max entries:

docker exec -it ldap bash

ldapmodify -H ldapi:/// -Y EXTERNAL << EOF
dn: cn=config
changetype: modify
replace: olcSizeLimit
olcSizeLimit: 1600
EOF