Help with ldap authentication


I´ve tried to use ldap with many configurations, I´ve read every ldap post in this forum and the some on the internet, but I have not been able to log in yet. Could you help me to debug this or point me to something to learn more about how this work?

This is a picture of the ldap server:

I´ve tried many configurations but none of them work:

    url: ldap://,dc=corp
    user-dn-pattern: uid={0}
    group-search-filter: (uniqueMember={0})
    manager-dn: admin@contoso.corp
    manager-password: ****

    url: ldap://,dc=corp
    manager-dn: cn=admin,OU=admin group,DC=contoso,DC=corp
    manager-password: ****
    user-search-filter: (sAMAccountName={0})
    group-search-base: ou=ORGANIGRAMA
    group-search-filter: (member={0})


The LDAP details have to be put in the application.yml configuration file. A basic set up for LDAP authentication should look something like:

    authentication: ldap
      url: ldap://xxxx:389/dc=yyy,dc=zzz
      user-search-filter: uid={0}
      url: ...

You probably need to replace user-dn-pattern with user-search-filter. In my case, the LDAP server allows anonymous binds so no need for manager-dn.
I don’t know what you’re trying to achieve but maybe start with this simple set up before adding more LDAP-related functionalities. Also worth considering is whether the LDAP server is configured properly (e.g. does it work for other services?).
I hope this puts you on the right track.

1 Like

It did! I just tried to login to the LDAP server with the manager account IT provided and couldn´t. Apparently they gave me a wrong password…

Thanks a lot for taking the time to answer and for the help!