Active Directory LDAP LOGIN 체크(JAVA)
public static boolean isLdapLogin(String userId, String userPw) throws Exception{ boolean isAuthenticated = false; DirContext ctx = null; Properties props = new Properties(); props.setProperty(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory"); props.setProperty(Context.PROVIDER_URL, "ldap://"+ldapServer); props.setProperty(Context.SECURITY_PRINCIPAL,"cn="+userId+baseDN); props..