Skip to content

LDAP Login Performance Issue in BookStack with Large AD Environment #5656

@titafubaki

Description

@titafubaki

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions