java Programming Glossary: initialldapcontext
Java LDAP - Determine if user in a given group? http://stackoverflow.com/questions/570466/java-ldap-determine-if-user-in-a-given-group connCtls new Control new FastBindConnectionControl ctx new InitialLdapContext env connCtls ctx.addToEnvironment Context.SECURITY_PRINCIPAL..
How do you authenticate against an Active Directory server using Spring Security? http://stackoverflow.com/questions/84680/how-do-you-authenticate-against-an-active-directory-server-using-spring-security ldapAuth new LdapAuthenticationToken auth ROLE_USER InitialLdapContext ldapContext InitialLdapContext authAdapter .getObjectAttribute.. auth ROLE_USER InitialLdapContext ldapContext InitialLdapContext authAdapter .getObjectAttribute ldapContext if ldapContext null.. if .equals principal.trim .equals password.trim InitialLdapContext ldapContext InitialLdapContext contextFactory .getReadWriteContext..
jndi LDAPS custom HostnameVerifier and TrustManager http://stackoverflow.com/questions/9394864/jndi-ldaps-custom-hostnameverifier-and-trustmanager CustomSocketFactory ctx new InitialLdapContext env null if encryption START_TLS tls null else tls StartTlsResponse.. sslContext.getSocketFactory try ctx new InitialLdapContext env null finally ThreadLocalSocketFactory.remove Not nice but..
|