Skip to content

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

Description

@Mant1kor

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions