SimpleLDAPLoginModule authenticates a user name and password to the
configured LDAP server.
A login configuration should provide at least the following two options:
providerURL: The LDAP server provider URL. This may be an SSL URL, in which case the trust store for the
server will be used to validate the LDAP server certificate
factoryClass: The ldap context factory implementation class, which is typically "com.sun.jndi.ldap.LdapCtxFactory".
Here is a Login module configuration example which may be used by
LDAPAuthenticator:
The example providerURL points to an LDAP server with the port number
389. The initial context factory is com.sun.jndi.ldap.LdapCtxFactory.
This login module returns a principal of class javax.security.auth.x500.X500Principal.