BookStack: LDAP over TLS: Unable to bind to server: Can't contact LDAP server

Describe the bug Login via Active Directory account. Sometimes I’ve got error: ldap_bind(): Unable to bind to server: Can't contact LDAP server

Screenshots default default

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings): v0.25.0 clean installation
  • PHP Version: PHP 7.2.14
  • Hosting Method (Nginx/Apache/Docker): nginx/1.12.2

Additional context .env options

AUTH_METHOD=ldap

# LDAP authentication configuration
LDAP_SERVER=ldaps://dc.domain.com:636
LDAP_BASE_DN=DC=domain,DC=com
LDAP_DN=CN=LDAP,OU=AutoInstall,DC=domain,DC=com
LDAP_PASS=strong_password
LDAP_USER_FILTER=(&(sAMAccountName=${user}))
LDAP_VERSION=3
LDAP_TLS_INSECURE=true
LDAP_EMAIL_ATTRIBUTE=mail
LDAP_FOLLOW_REFERRALS=false

AD level: 2008 R2

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 16 (12 by maintainers)

Commits related to this issue

Most upvoted comments

Looks like that’s solve my problem: LDAP_USER_FILTER=(&(objectCategory=Person)(sAMAccountName=${user})) Give me a ~day to check in detail.