[HELP] Authentication via LDAP Config

Hi, im new here.

I recently found Directus and it’s really awesome, i deploy it via Docker and play with it.
I found out that i can connect my Active Directory to use as authentication.
My problem is im not sure if my configuration is correct because i can’t past authentication.

Here is my config.

AUTH_PROVIDERS=“ldap”
AUTH_DISABLE_DEFAULT=“false”
AUTH_LDAP_DRIVER=“ldap”
AUTH_LDAP_CLIENT_URL=“ldap://192.168.0.100:389”
AUTH_LDAP_BIND_DN=“**string:**CN=read-user,OU=Users,DC=dc01,DC=local”
AUTH_LDAP_BIND_PASSWORD=“mysuperdupersecretpassword”
AUTH_LDAP_USER_DN=“**string:**OU=AD Users,DC=dc01,DC=local”
AUTH_LDAP_USER_ATTRIBUTE=“sAMAccountName”
#AUTH_LDAP_SEARCH_FILTER=“(sAMAccountName=${USERNAME})”
AUTH_LDAP_USER_SCOPE=“sub”
AUTH_LDAP_EMAIL_ATTRIBUTE=“mail”
AUTH_LDAP_FIRST_NAME_ATTRIBUTE=“givenName”
AUTH_LDAP_LAST_NAME_ATTRIBUTE=“sn”
AUTH_LDAP_GROUP_DN=“**string:**DC=dc01,DC=local”
AUTH_LDAP_GROUP_ATTRIBUTE=“member”
AUTH_LDAP_GROUP_SCOPE=“sub”
AUTH_LDAP_DEFAULT_ROLE_ID=“653ec6cf-47ca-40a5-ae30-56a2e7d63555”

In my Logs when i tried to authenticate ive got this

[00:57:19.786] WARN: Invalid bind user

[00:57:20.270] DEBUG: Invalid config.

err: {

“type”: “”,

“message”: “Invalid config.”,

“stack”:

DirectusError: Invalid config.

at file:///directus/node_modules/.pnpm/@directus+api@file+api_@types+node@24.9.1_jiti@2.6.1_typescript@5.9.3/node_modules/(at)directus/api/dist/auth/drivers/ldap.js:63:40

at callbackWrapper (/directus/node_modules/.pnpm/ldapjs@2.3.3/node_modules/ldapjs/lib/client/client.js:294:5)

at sendResult (/directus/node_modules/.pnpm/ldapjs@2.3.3/node_modules/ldapjs/lib/client/client.js:1197:37)

at messageCallback (/directus/node_modules/.pnpm/ldapjs@2.3.3/node_modules/ldapjs/lib/client/client.js:1220:18)

at Parser.onMessage (/directus/node_modules/.pnpm/ldapjs@2.3.3/node_modules/ldapjs/lib/client/client.js:888:14)

at Parser.emit (node:events:519:28)

at Parser.write (/directus/node_modules/.pnpm/ldapjs@2.3.3/node_modules/ldapjs/lib/messages/parser.js:107:8)

at Socket.onData (/directus/node_modules/.pnpm/ldapjs@2.3.3/node_modules/ldapjs/lib/client/client.js:875:22)

at Socket.emit (node:events:519:28)

at addChunk (node:internal/streams/readable:561:12)

“name”: “DirectusError”,

“extensions”: {

“provider”: “ldap”

},

“code”: “INVALID_PROVIDER_CONFIG”,

“status”: 503

}

[00:57:20] POST /auth/login/ldap 503 511ms

When i change my config and remove the string: and restart the container, ive got the same error.

Here is a reference to my config with same problem but fixed.