I'm using this as a Authentication to my LDAP.
@Override
public void configure(AuthenticationManagerBuilder auth) {
ActiveDirectoryLdapAuthenticationProvider adProvider =
new ActiveDirectoryLdapAuthenticationProvider("domain.com", "ldap","ou,dc");
adProvider.setConvertSubErrorCodesToExceptions(true);
adProvider.setUseAuthenticationRequestCredentials(true);
auth.authenticationProvider(adProvider);
}
Everything works fine.
Now, I'm trying to get a list with all the groups where the given user is member of (or other personnal information too such as username, e-mail, etc.).
Is it possible do it with this kind of Authentication method ?
I searched a way to return the user's group but I didn't find any that works with this method.
Any help ? Or any documentation that can help me to find it ?