Skip to content

LDAP Authentication doesn't work #1876

Description

@eferreira2

Running Ubuntu 18.04 on PHP version 7.2.24. Bookstack version is v0.28.

I've been trying to get LDAP authentication working for a few hours now.

I keep getting this error:
Argument 1 passed to BookStack\Auth\Access\LdapService::validateUserCredentials() must be of the type array, null given, called in /var/www/bookstack/app/Auth/Access/Guards/LdapSessionGuard.php on line 73

This is what's in my .env file

AUTH_METHOD=ldap
LDAP_SERVER=[IP ADDRESS]
LDAP_BASE_DN="OU=My OU,DC=COMPANY,DC=com"
LDAP_DN=administrator@domain.com
LDAP_PASS=password
LDAP_ID_ATTRIBUTE=objectGUID
LDAP_USER_FILTER=(&(sAMAccountName=${user}))
LDAP_VERSION=3
LDAP_EMAIL_ATTRIBUTE=mail
LDAP_DISPLAY_NAME_ATTRIBUTE=cn

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions