DHIS2 LDAP issue

Hello,

I have connected a DHIS2 instance to LDAP for user authentication using the following configuration according to documentation,

# LDAP server URL
ldap.url = ldaps://domain.org:636

# LDAP manager entry distinguished name
ldap.manager.dn = cn=johndoe,dc=domain,dc=org

# LDAP manager entry password
ldap.manager.password = xxxx

# LDAP base search
ldap.search.base = dc=domain,dc=org

# LDAP search filter
ldap.search.filter = (cn={0})

I have replaced the value of all parameters as per my settings. We have same configuration on two instances of DHIS2 – on version 2.38.4.4 it works fine, but on version 2.40.3, I am getting the following error when attempting to login.

Authentication principal is not supported; principal:LdapUserDetailsImpl

image

Has anyone else faced this issue or have any insights on what might be causing it? Any suggestions or advice would be greatly appreciated.

Thank you in advance for your help!
@dhis2-backend

Hi @sami12111
I’ve asked the experts in the team about this issue and waiting for a response. It is possible that they will need more specific information/logs from your setup. Thanks!