This applies to Version (Dockerized) 24.3.2
Cloudbeaver does not document very well how to configure it to authenticate against an Active Diretory.
To do that, you have to edit the workspace/.data/.cloudbeaver.runtime.conf
The basic config looks like this:
"authConfigurations": [
{
"id": "ldap",
"provider": "ldap",
"displayName": "LDAP",
"disabled": false,
"iconURL": "",
"description": "",
"parameters": {
"ldap-host": "<your-ldap-server>",
"ldap-port": "<ldap-port>",
"ldap-dn": "OU=Users,OU=Site,DC=DC,DC=example,DC=com",
"ldap-bind-user": "CN=binduser,OU=Users,OU=Site,DC=DC,DC=example,DC=com",
"ldap-bind-user-pwd": "bindPw",
"ldap-filter": "",
"ldap-login": "sAMAccountName",
"ldap-identifier-attr": "CN"
}
}
]
The Config level is the same as "app", "server", etc.
As of the writing of this gist, the DNs and attribute names are case sensitive.
That is why the ldap-identifier-attr is specifically defined as uppercase CN.
Often these are capital letters in AD.
To verify exactly what you need to put here, please refer to ldapsearch.
For MS AD:
ldapsearch -x -W -H "ldap://<ldapserver>:<ldap-port>" -b "<basedn you wish to search your object in>" -D "<bind dn/authorized user>" "(sAMAccountName=<User you wish to display>)"
Hi,
For finding out how this really works, have a look into https://github.com/dbeaver/cloudbeaver/blob/devel/server/bundles/io.cloudbeaver.service.ldap.auth/src/io/cloudbeaver/service/ldap/auth/LdapAuthProvider.java
Here a working example from our environment:
The important part to be able to login with your AD user is:
"ldap-login": "sAMAccountName",Cheers
Steffen