You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's no other issue that already describes my problem.
Describe the Bug
When configuring a ldap provider I do not want to bind to my ldap admin account but bind anonymously.
According to ldap standard, (which is referenced in the directus docs as well, ) this should be possible as follows:
"by sending a Bind request with a name value of zero length and
specifying the simple authentication choice containing a password
value of zero length."
As every other user has the "permission to query users and groups to perform authentication." (as required by directus docs), I could add a ldap account in the users directory and bind to that.
It would be great if there was the option to bind anonymously by choice or by leaving dn and password empty.
To Reproduce
Adding following config to directus dotenv file:
Not Working Config - binding anonymously:
InvalidConfigException [Error]: Invalid provider config
at new LDAPAuthDriver (/path_to_directus/node_modules/directus/dist/auth/drivers/ldap.js:48:19)
at getProviderInstance (/path_to_directus/node_modules/directus/dist/auth.js:65:20)
at /path_to_directus/node_modules/directus/dist/auth.js:47:26
at Array.forEach (<anonymous>)
at registerAuthProviders (/path_to_directus/node_modules/directus/dist/auth.js:36:19)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async createApp (/path_to_directus/node_modules/directus/dist/app.js:97:5)
at async createServer (/path_to_directus/node_modules/directus/dist/server.js:40:38)
at async Command.startServer (/path_to_directus/node_modules/directus/dist/server.js:126:20)
at async Command.parseAsync (/path_to_directus/node_modules/commander/lib/command.js:923:5) {
status: 503,
code: 'INVALID_CONFIG',
extensions: { provider: 'ldap' }
What version of Directus are you using?
9.5.0
What version of Node.js are you using?
v16.13.0
What database are you using?
MySQL Community Server 8.0.27
What browser are you using?
What operating system are you using?
Debian GNU/Linux 10 (buster)
How are you deploying Directus?
locally (pm2)
The text was updated successfully, but these errors were encountered:
Preflight Checklist
Describe the Bug
When configuring a ldap provider I do not want to bind to my ldap admin account but bind anonymously.
According to ldap standard, (which is referenced in the directus docs as well, ) this should be possible as follows:
https://datatracker.ietf.org/doc/html/rfc4513#section-5.1
Sadly when configuring directus ldap provider:
does not do the trick.
As every other user has the "permission to query users and groups to perform authentication." (as required by directus docs), I could add a ldap account in the users directory and bind to that.
It would be great if there was the option to bind anonymously by choice or by leaving dn and password empty.
To Reproduce
Adding following config to directus dotenv file:
Not Working Config - binding anonymously:
Working Config - binding anonymously to created directus.readonly user:
Working Config - binding to admin
Errors Shown
What version of Directus are you using?
9.5.0
What version of Node.js are you using?
v16.13.0
What database are you using?
MySQL Community Server 8.0.27
What browser are you using?
What operating system are you using?
Debian GNU/Linux 10 (buster)
How are you deploying Directus?
locally (pm2)
The text was updated successfully, but these errors were encountered: