Adambean / gitlab-ce-ldap-sync

Synchronise users and groups (including group members) from an LDAP instance with Gitlab CE (and EE in free tier) self-hosted instance(s).
Apache License 2.0
59 stars 23 forks source link

incomplete ldap sync #26

Closed 0x766C70 closed 3 years ago

0x766C70 commented 3 years ago

Hi, (first, thanks for your tools !!) I have a ldap group of 1500 user and when the script ask my server for synchronizing users, it only found 500 of them. [notice] LDAP connection established. [notice] 501 directory user(s) found. Any tip to identify the root cause of a partial sync ?

Pre-check:

Thanks a lot

Adambean commented 3 years ago

Hello, If there aren't as many results as expected:

When the tool finds even one valid user from an established connection then firewalls won't be the problem.

It could also be a limitation of PHP's LDAP functions as described at this Stack Overflow thread. Internally the tool uses ldap_search() to execute a query then ldap_get_entries() to enumerate the query results. This tool does not set a size limit in its search but your directory server may impose a limit.

0x766C70 commented 3 years ago

Hello @Adambean !

Big Thanks !!! Result limitation by own serveur !!!

Have a great day !!!

vlp