Skip to content

Ldap Configuration -  #1953

@josephhernandezphd

Description

@josephhernandezphd

Describe the bug
LDAP is setup using the same settings as other services like git and rocket chat but will not authenticate a user.
Mounting /etc/ssl/certs/ca-certificate.crt to make sure ssl is able to connect.
Running a test php connection within the container works without bind issues.

Error: "These credentials do not match our records."
credentials work for other sites,

Steps To Reproduce
Steps to reproduce the behavior:
Using the docker below, creating the behavior of not throwing a bind error but not authenticating the user

Expected behavior
I expect to have the same login process as with other services.

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings): Latest from docker repository
  • PHP Version:
  • Hosting Method (Nginx/Apache/Docker): Docker

Additional context
Docker-Compose
version: "2"
services:
bookstack:
image: linuxserver/bookstack
container_name: bookstack
environment:
- PUID=1000
- PGID=1000
- DB_HOST=bookstack_db
- DB_USER=bookstack
- DB_PASS=dbpass
- DB_DATABASE=bookstackapp
- APP_URL=https://subdomain.example.com
- VIRTUAL_HOST=subdomain.example.com
- LETSENCRYPT_HOST=subdomain.example.com
- LETSENCRYPT_EMAIL=email
- AUTH_METHOD=ldap
- LDAP_VERSION=3

- LDAP_VERSION=false

  - LDAP_BASE_DN=ou=coolname,dc=example,dc=com
  - LDAP_SERVER=ldaps://ldap.example.com:636
  - LDAP_DN=cn=admin,dc=api,dc=digital
  - LDAP_PASS=password&*!)@(# with special charactors

- LDAP_USER_FILTER=(|(cn=${user})(sn=${user}))

  - LDAP_USER_FILTER=(|(cn=${user})(sn=${user})(uid=${user}))
  - LDAP_TLS_INSECURE=false
  - LDAP_ID_ATTRIBUTE=cn
  - LDAP_EMAIL_ATTRIBUTE=sn
  - APP_DEBUG=true
  - LDAP_AUTO_CONFIRM_EMAIL=true

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