BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

Local Admin account does not work with LDAP (commit 519283e)

Open Sys-Monitor opened this issue 4 years ago • 2 comments

Attempted Debugging

  • [X] I have read the debugging page

Searched GitHub Issues

  • [X] I have searched GitHub for the issue.

Describe the Scenario

According to the following commit, an admin account should be validated across all login types: https://github.com/BookStackApp/BookStack/commit/519283e643f9697952d49c7009dd9e9745cb4319

This does not seem to be the case as the local admin account "Admin" that was setup at the start does not work when enabling LDAP. It only works when disabling LDAP.

image (I've also tried the associated e-mail and that does not work either)

Exact BookStack Version

22.10.2

Log Content

Nothing is logged into laravel.log or apache2/error.log. APP_DEBUG=true doesn't show anything different. Still only throws the same error on screen.

PHP Version

8.1.2

Hosting Environment

Ubuntu 22.04.1 LTS, installed using installation script

Sys-Monitor avatar Nov 14 '22 10:11 Sys-Monitor

That referenced commit is regarding how the back-end auth session is managed. The user-visible login forms, and their subsequent login actions, are still different between the auth options.

If attempting to login again with the original admin account, via non-LDAP, you'll need to switch the AUTH_METHOD back to standard (Or comment it out with a #) before refreshing the login page to show the normal auth form.

ssddanbrown avatar Nov 14 '22 11:11 ssddanbrown

I see. I thought we'd be able to manage the instance in case the AD connection goes down without having to edit the server config. I'll close the issue then.

Sys-Monitor avatar Nov 14 '22 12:11 Sys-Monitor