Sessions to LDAP servers are always authenticated. Just create InitialDirContext instance.
Pass a HashTable containing SECURITY_AUTHENTICATION, SECURITY_PRINCIPAL and SECURITY_CREDENTIALS items to the setEnv() method of the InitialDirContext object
Pass a HashTable containing SECURITY_AUTHENTICATION, SECURITY_PRINCIPAL and SECURITY_CREDENTIALS items to the InitialDirContext constructor
Pass a HashTable containing SECURITY_PRINCIPAL and SECURITY_CREDENTIALS items to the LdapSession constructor
Pass a HashTable containing SECURITY_PRINCIPAL and SECURITY_CREDENTIALS items to the InitialDirContext constructor
Use setAuthenticated() method of the LdapSession object
|