@Override
  public void init(final Properties securityProps, final LogWriter systemLogWriter,
      final LogWriter securityLogWriter) throws AuthenticationFailedException {
    logger.info("Initializing LdapUserAuthenticator with {}", securityProps);

    ldapServer = securityProps.getProperty(LDAP_SERVER_NAME);
    if (ldapServer == null || ldapServer.length() == 0) {
      throw new AuthenticationFailedException(
          "LdapUserAuthenticator: LDAP server property [" + LDAP_SERVER_NAME + "] not specified");
    }

    baseDomainName = securityProps.getProperty(LDAP_BASEDN_NAME);
    if (baseDomainName == null || baseDomainName.length() == 0) {
      throw new AuthenticationFailedException(
          "LdapUserAuthenticator: LDAP base DN property [" + LDAP_BASEDN_NAME + "] not specified");
    }

    final String sslName = securityProps.getProperty(LDAP_SSL_NAME);
    if (sslName != null && sslName.equalsIgnoreCase("true")) {
      ldapUrlScheme = "ldaps://";
    } else {
      ldapUrlScheme = "ldap://";
    }
  }
An implementation of {@link Authenticator} that uses LDAP.

@since GemFire 5.5
geode-dunit/src/main/java/org/apache/geode/security/templates/LdapUserAuthenticator.java