@Override
 public void authenticate(LdapUserContext userContext, String password) throws LdapException {
   try {
     ldapConnectionPool.bindAndRevertAuthentication(userContext.getDn(), password);
   } catch (com.unboundid.ldap.sdk.LDAPException e) {
     throw new LdapException(e);
   }
 }