Launch and log in to the GlassFish Admin Console.
The default URL for the console is http://localhost:4848.
In the left navigation panel, expand Configuration, expand Security, and then click Realms.
Above the Realms list, click New.
The New Realm page appears.
Enter LdapRealm for the name and select com.sun.enterprise.security.auth.realm.ldap.LDAPRealm for the class name.
Enter at least the following properties:
JAAS context: The type of login to use for this realm. For LDAP, it must be ldapRealm.
Directory: The URL of the directory server. For example, ldap://190.111.0.111:389.
Base DN: The base Distinguished Name (dn) for the user data.
You can specify additional optional properties for the realm.
Click OK.
Continue to To Update web.xml for the Worklist Manager Console (for LDAP)
.