BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

LDAP Login Performance Issue in BookStack with Large AD Environment

Open titafubaki opened this issue 7 months ago • 0 comments

Describe the Bug

When using LDAP for authentication in BookStack, the login process takes excessively long, often exceeding 60 seconds. This delay is significant enough that I had to adjust the PHP timeout settings to successfully log in. The Active Directory environment in use contains a large number of groups (approximately 108,000) and users (approximately 83,000). Despite the scale of the AD environment, other software solutions utilizing LDAP do not experience similar performance issues, suggesting that the implementation method in BookStack may be contributing to the problem.

Steps to Reproduce

  1. Configure BookStack to use LDAP for authentication.
  2. Attempt to log in with a user account from a large AD environment.
  3. Observe the time taken for the login process to complete.

Expected Behaviour

The login process should complete in a reasonable time frame, similar to other software solutions using LDAP.

Screenshots or Additional Context

No response

Browser Details

MS Edge 137 on Win11

Exact BookStack Version

25.05

titafubaki avatar Jun 16 '25 07:06 titafubaki