Spring Boot LDAP Authentication
问题 I am trying to test Active Directory authentication with Spring Boot. I have an Active Directory working and I can access to it via LDAP browsers for my admin user with that user dn: CN=Administrator,CN=Users,DC=contoso,DC=com I want to use LDAP as authentication manager at my application. Simple example from docs is as follows: @Autowired public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception { auth .ldapAuthentication() .userDnPatterns("CN={0},CN=Users,DC=contoso,DC