Skip to content

Instantly share code, notes, and snippets.

sintetico82

  • Rome
Block or report user

Report or block sintetico82

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:ee5f4b735fcec6db2271bba55c4529d8
@Bean
public AuthenticationProvider activeDirectoryLdapAuthenticationProvider() {
ActiveDirectoryLdapAuthenticationProvider provider = new ActiveDirectoryLdapAuthenticationProvider(domain, adUrls);
provider.setConvertSubErrorCodesToExceptions(true);
provider.setUseAuthenticationRequestCredentials(true);
provider.setAuthoritiesMapper(applicationADGrantedAuthoritiesMapper());
return provider;
}
You can’t perform that action at this time.