LDAP issue #618

Closed
opened 2026-02-04 21:27:46 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @walterqqqq on GitHub (Mar 28, 2018).

Hi,

I'm trying to connect my Bookstack to my Active Directory server. When I log in with a user I receive an error...

This is the config that I try to use:

LDAP Settings

LDAP_SERVER=serverip:389
LDAP_BASE_DN="OU=TEST,OU=COMPANY,DC=DOMAIN,DC=com"
LDAP_DN=username@domain.com
LDAP_PASS=password
LDAP_USER_FILTER=false
LDAP_VERSION=3

The error that I get:

production.ERROR: ldap_search(): Search: Protocol error {"exception":"[object] (ErrorException(code: 0): ldap_search(): Search: Protocol error at /var/www/bookstack/app/Services/Ldap.php:56)
[stacktrace]

Line 56 in Ldap.php refers to: return ldap_search($ldapConnection, $baseDn, $filter, $attributes);

Let me know if you need any more info

Originally created by @walterqqqq on GitHub (Mar 28, 2018). Hi, I'm trying to connect my Bookstack to my Active Directory server. When I log in with a user I receive an error... This is the config that I try to use: # LDAP Settings LDAP_SERVER=serverip:389 LDAP_BASE_DN="OU=TEST,OU=COMPANY,DC=DOMAIN,DC=com" LDAP_DN=username@domain.com LDAP_PASS=password LDAP_USER_FILTER=false LDAP_VERSION=3 The error that I get: production.ERROR: ldap_search(): Search: Protocol error {"exception":"[object] (ErrorException(code: 0): ldap_search(): Search: Protocol error at /var/www/bookstack/app/Services/Ldap.php:56) [stacktrace] Line 56 in Ldap.php refers to: return ldap_search($ldapConnection, $baseDn, $filter, $attributes); Let me know if you need any more info
OVERLORD added the 🐕 Support label 2026-02-04 21:27:46 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Mar 30, 2018):

Hi @walterdegraaf,
I notice your LDAP_USER_FILTER is set to false. This is what's used to search for users within LDAP. It could be this causing such an error. Let me know if you need more info on that setting.

@ssddanbrown commented on GitHub (Mar 30, 2018): Hi @walterdegraaf, I notice your `LDAP_USER_FILTER` is set to `false`. This is what's used to search for users within LDAP. It could be this causing such an error. Let me know if you need more info on that setting.
Author
Owner

@ssddanbrown commented on GitHub (Aug 4, 2018):

Since the last comment on this issue is relatively old I'm going to close this. If the issue remains and is something you still require to be fixed please comment and this can be reopened if required.

@ssddanbrown commented on GitHub (Aug 4, 2018): Since the last comment on this issue is relatively old I'm going to close this. If the issue remains and is something you still require to be fixed please comment and this can be reopened if required.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#618