Allow enabling LDAP paging for LDAP synchronization queries #1628

Closed
opened 2025-11-02 04:07:28 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @wcarson on GitHub (Mar 15, 2018).

  • Gitea version (or commit ref): 1.4.0+rc1-17-g93f34fd
  • Git version: 2.16.2
  • Operating system: Windows Server 2016
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

We have a fairly large LDAP with thousands of users that is configured to allow a max of 1000 results at a time. Without using LDAP paging we get an error like the following:

[...gitea/models/user.go:1388 SyncExternalUsers()] [E] LDAP Search failed unexpectedly! (LDAP Result Code 4 "Size Limit Exceeded": )

As far as I can tell (I'm not familiar with Go), search results paging is supported, so this is definitely doable.

Originally created by @wcarson on GitHub (Mar 15, 2018). - Gitea version (or commit ref): 1.4.0+rc1-17-g93f34fd - Git version: 2.16.2 - Operating system: Windows Server 2016 - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ## Description We have a fairly large LDAP with thousands of users that is configured to allow a max of 1000 results at a time. Without using LDAP paging we get an error like the following: `[...gitea/models/user.go:1388 SyncExternalUsers()] [E] LDAP Search failed unexpectedly! (LDAP Result Code 4 "Size Limit Exceeded": )` As far as I can tell (I'm not familiar with Go), search results paging is supported, so this is definitely doable.
GiteaMirror added the type/enhancement label 2025-11-02 04:07:28 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1628