Latest

  • Authentication vs. Authorization

    It is easy to confuse the mechanism of authentication with that of authorization. In many host-based systems (and even some client/server systems), the two mechanisms…

  • Configure CAS with LDAP

    Here are the few steps to configure LDAP with CAS server Download CAS Server 3.3.2 from the JaSig Unzip the file in C drive. Assume…

  • Retrive user info from LDAP

    Below code will connect the LDAP server and retrives the user information import java.util.Hashtable; import javax.naming.AuthenticationException; import javax.naming.Context; import javax.naming.NamingEnumeration; import javax.naming.NamingException; import javax.naming.directory.Attribute; import…

  • LDAP authentication in JAVA

    This is a simple example through which will connect to the LDAP Server and authenticate user. import java.util.*; import javax.naming.*; import javax.naming.directory.*; public class SimpleLDAPImpl…