Skip to content

LDAP Bind over SSL not working #273

Description

Hi,

I can't bind to ldap over an SSL connection on port 636. I use the same settings as on other services, where LDAP bind works fine.

.env config

# General auth
AUTH_METHOD=ldap

# LDAP Settings
LDAP_SERVER=ldap.avionix.ee:636
LDAP_BASE_DN=dc=ldap,dc=avionix,dc=ee
LDAP_DN=uid=randomuser,cn=users,dc=ldap,dc=avionix,dc=ee
LDAP_PASS=randomepassword.
LDAP_USER_FILTER=(&(uid=${user}))
LDAP_VERSION=3

Error message:

ErrorException in Ldap.php line 94:
ldap_bind(): Unable to bind to server: Can't contact LDAP server
in Ldap.php line 94
at HandleExceptions->handleError('2', 'ldap_bind(): Unable to bind to server: Can't contact LDAP server', '/var/www/bookstack/app/Services/Ldap.php', '94', array('ldapConnection' => resource, 'bindRdn' => 'uid=randomuser,cn=users,dc=ldap,dc=avionix,dc=ee', 'bindPassword' => 'randompassword.'))

Am I missing some configuration (i.e. deine ssl or tls)?

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