Feed of "DrakeHamString" https://codeberg.org/DrakeHamString 2026-06-12T11:19:59+02:00 DrakeHamString commented on issue bookstack/bookstack#6129 2026-05-15T20:04:43+02:00 138615912: https://codeberg.org/bookstack/bookstack/issues/6129#issuecomment-15031665 Whole Bookstack instance unusable and runs into timeout when one user tries to log in while LDAP group sync is active <p dir="auto">Seems like its a single PHP process?</p> Whole Bookstack instance unusable and runs into timeout when one user tries to log in while LDAP group sync is active <p dir="auto">Seems like its a single PHP process?</p> DrakeHamString [email protected] DrakeHamString commented on issue bookstack/bookstack#6129 2026-05-15T10:28:43+02:00 138376644: https://codeberg.org/bookstack/bookstack/issues/6129#issuecomment-14992701 Whole Bookstack instance unusable and runs into timeout when one user tries to log in while LDAP group sync is active <p dir="auto">It can be sourced back to the same cause, but the outcome is differnet.</p> Whole Bookstack instance unusable and runs into timeout when one user tries to log in while LDAP group sync is active <p dir="auto">It can be sourced back to the same cause, but the outcome is differnet.</p> DrakeHamString [email protected] DrakeHamString opened issue bookstack/bookstack#6129 2026-05-13T10:39:29+02:00 137286969: https://codeberg.org/bookstack/bookstack/issues/6129 <h3 id="user-content-describe-the-bug" dir="auto">Describe the Bug</h3> <p dir="auto">When a user log in, the whole Bookstack instance does not respond anymore. The page doesnt load and no actions can be done.<br/> The login takes about 10-20 (even 30 ) seconds and in that time nobody is able to work in Bookstack.<br/> Using a reverse proxy you get a timeout at some point (yes, I know you can increase the limit, but this does not solve the problem)</p> <p dir="auto">One the login finishes, the instance works snappy again.</p> <p dir="auto">I already submitted a feature request, which would solve this issue: <a href="/bookstack/bookstack/issues/6128" class="ref-issue" rel="nofollow">#6128</a></p> <h3 id="user-content-steps-to-reproduce" dir="auto">Steps to Reproduce</h3> <ol dir="auto"> <li>Have a big AD / LDAP environment</li> <li>Activate LDAP Login and Group Sync</li> <li>Specify &#34;External Authentication IDs&#34; in roles to match LDAP groups</li> <li>User (who is part of the groups) tries to log in</li> </ol> <h3 id="user-content-expected-behaviour" dir="auto">Expected Behaviour</h3> <p dir="auto">Snappy login</p> <h3 id="user-content-screenshots-or-additional-context" dir="auto">Screenshots or Additional Context</h3> <p dir="auto"><em>No response</em></p> <h3 id="user-content-browser-details" dir="auto">Browser Details</h3> <p dir="auto">Edge 148.0.3967.54 (Official Build) (64-Bit) on Windows 11</p> <h3 id="user-content-exact-bookstack-version" dir="auto">Exact BookStack Version</h3> <p dir="auto">v26.03.3</p> 6129#Whole Bookstack instance unusable and runs into timeout when one user tries to log in while LDAP group sync is active# DrakeHamString [email protected] DrakeHamString opened issue bookstack/bookstack#6128 2026-05-13T10:30:54+02:00 137283732: https://codeberg.org/bookstack/bookstack/issues/6128 <h3 id="user-content-describe-the-feature-you-d-like" dir="auto">Describe the feature you&#39;d like</h3> <p dir="auto">Right now, every login in our environment needs 10-20 seconds, even causes timeouts. <strong>And while a user tries to log in, the whole bookstack instance freezes and is not usable for every user!</strong> Once the user successfully logged in, the instance is snappy again.</p> <p dir="auto">Currently its caused by the LDAP group sync which tries to fetch every LDAP group (I think)</p> <p dir="auto">It would help to specify LDAP Scopes for this:</p> <ol dir="auto"> <li> <p dir="auto">LDAP Filter to limit the search scope for groups:<br/> This can be achieved by a plain LDAP query or by specifying a specific OU / container which has all needed groups in it.</p> </li> <li> <p dir="auto">LDAP Filter for users<br/> This can also be achieved by a plain LDAP query. In our case we would like to limit the users that are able to log in by requiring a specific group membership<br/> Example:<br/> <code>(&amp;(|(memberOf=cn=fancygroup,ou=bookstack,o=main))(|(objectClass=Person)(objectClass=inetOrgPerson)))</code></p> </li> <li> <p dir="auto">&#34;External Authentication IDs&#34;: Specify DN instead of CN (both for user and group/role)<br/> This eliminates searching the whole tree for a CN and instead directly addresses the DN. (which is the full LDAP path)<br/> This also elimiates problems witn CN duplicate names.<br/> Example:<br/> <code>cn=fancygroup,ou=bookstack,o=main</code></p> </li> </ol> <h3 id="user-content-describe-the-benefits-this-would-bring-to-existing-bookstack-users" dir="auto">Describe the benefits this would bring to existing BookStack users</h3> <p dir="auto">Users in large AD / LDAP environments would get a massive performance gain with logins and there would no impact if another user tries to log in.</p> <h3 id="user-content-can-the-goal-of-this-request-already-be-achieved-via-other-means" dir="auto">Can the goal of this request already be achieved via other means?</h3> <p dir="auto">No</p> <h3 id="user-content-have-you-searched-for-an-existing-open-closed-issue" dir="auto">Have you searched for an existing open/closed issue?</h3> <ul dir="auto"> <li class="task-list-item"><input type="checkbox" disabled="" data-source-position="1650" checked=""/>I have searched for existing issues and none cover my fundamental request</li> </ul> <h3 id="user-content-how-long-have-you-been-using-bookstack" dir="auto">How long have you been using BookStack?</h3> <p dir="auto">Under 3 months</p> <h3 id="user-content-additional-context" dir="auto">Additional context</h3> <p dir="auto"><em>No response</em></p> <h3 id="user-content-have-you-used-generative-ai-llms-to-create-any-thoughts-in-this-request" dir="auto">Have you used generative AI/LLMs to create any thoughts in this request?</h3> <ul dir="auto"> <li class="task-list-item"><input type="checkbox" disabled="" data-source-position="1909" checked=""/>This request only contains the thoughts &amp; ideas of a human</li> </ul> 6128#More LDAP Options# DrakeHamString [email protected] DrakeHamString commented on issue bookstack/bookstack#5656 2026-05-11T13:11:22+02:00 136248120: https://codeberg.org/bookstack/bookstack/issues/5656#issuecomment-14658987 LDAP Login Performance Issue in BookStack with Large AD Environment <p dir="auto">I&#39;m having the same issue.</p> LDAP Login Performance Issue in BookStack with Large AD Environment <p dir="auto">I&#39;m having the same issue.</p> DrakeHamString [email protected]