STEP 1: Create JNDI LDAP ResourceIn the GlassFish admin console create a JNDI Custom Resource with the following parameters:1. Give it a JNDI name such as myLDAP2. Resource Type: javax.naming.directory.Directory3. Factory Class: com.sun.jndi.ldap.LdapCtxFactoryAdd the following as additional parameters:1. Name: java.naming.security.principal Value: the reader dn2.
↧