/** * Authenticate the user in the supplied request. * * @param request authentication request * * @return response containing the ldap entry of the user authenticated * * @throws LdapException if an LDAP error occurs */ public AuthenticationResponse authenticate(final AuthenticationRequest request) throws LdapException { return authenticate(resolveDn(request.getUser()), request); }
/** * Authenticate the user in the supplied request. * * @param request authentication request * * @return response containing the ldap entry of the user authenticated * * @throws LdapException if an LDAP error occurs */ public AuthenticationResponse authenticate(final AuthenticationRequest request) throws LdapException { return authenticate(resolveDn(request.getUser()), request); }
/** * Authenticate the user in the supplied request. * * @param request authentication request * * @return response containing the ldap entry of the user authenticated * * @throws LdapException if an LDAP error occurs */ public AuthenticationResponse authenticate(final AuthenticationRequest request) throws LdapException { return authenticate(resolveDn(request.getUser()), request); }
final String loginDn = auth.resolveDn(new User(nameCb.getName())); if (loginDn == null && noResultsIsError) { loginSuccess = false;
final String loginDn = auth.resolveDn(nameCb.getName()); if (loginDn == null && noResultsIsError) { loginSuccess = false;
final String loginDn = auth.resolveDn(new User(nameCb.getName())); if (loginDn == null && noResultsIsError) { loginSuccess = false;
@Override public String resolveDn(final String user) throws LdapException { final long start = System.nanoTime(); final LdapResolveDnEvent event = new LdapResolveDnEvent(); event.setId(id.get()); event.setSuccessful(false); try { final String result = MonitoredAuthenticator.super.resolveDn(user); event.setSuccessful(true); return result; } catch (Throwable t) { event.setError(t.getMessage()); throw t; } finally { event.setElapsedTimeNano(System.nanoTime() - start); SystemInstance.get().fireEvent(event); } }