Skip to content

ldap_bind(): Unable to bind to server: Can't contact LDAP server #5520

@MikeBravoo

Description

@MikeBravoo

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

Hi,
I am a newbie in LDAP setup and configuration. I'm using Windows Active Directory and trying to setup LDAP authentication but I'm facing this error:
ErrorException: ldap_bind(): Unable to bind to server: Can't contact LDAP server

LDAP configuration:
`### LDAP Configuration ###
AUTH_METHOD=ldap
LDAP_SERVER=domain_controller_host:389
LDAP_BASE_DN="dc=DOMAIN,dc=LOCAL"
LDAP_DN="cn=BOOKSTACK_SERVICE_ACCOUNT,ou=USER_GROUP,dc=DOMAIN,dc=LOCAL"
LDAP_PASS="PASSWORD"
LDAP_VERSION=3
LDAP_START_TLS=false

LDAP_ID_ATTRIBUTE=uid
LDAP_EMAIL_ATTRIBUTE=mail
LDAP_DISPLAY_NAME_ATTRIBUTE=cn
LDAP_USER_FILTER="(&(sAMAccountName=${user}))"`

Error code attached. Kindly advise.

Exact BookStack Version

25.02

Log Content

error_log.log

Hosting Environment

PHP 8.2.25, on Rocky Linux version 9.5

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