@Override protected SearchResult performLdapSearch( final AuthenticationCriteria criteria, final AuthenticationHandlerResponse response) throws LdapException { final AuthorizationIdentityResponseControl ctrl = (AuthorizationIdentityResponseControl) response.getControl( AuthorizationIdentityResponseControl.OID); if (ctrl == null) { throw new IllegalStateException("Authorization Identity Response Control not found"); } logger.debug("found authorization identity response control {}", ctrl); final String authzId = ctrl.getAuthorizationId(); final String dn = authzId.split(":", 2)[1].trim(); final SearchOperation search = createSearchOperation(response.getConnection()); return search.execute(createSearchRequest(criteria, dn)).getResult(); }
@Override protected SearchResult performLdapSearch( final AuthenticationCriteria criteria, final AuthenticationHandlerResponse response) throws LdapException { final AuthorizationIdentityResponseControl ctrl = (AuthorizationIdentityResponseControl) response.getControl( AuthorizationIdentityResponseControl.OID); if (ctrl == null) { throw new IllegalStateException("Authorization Identity Response Control not found"); } logger.debug("found authorization identity response control {}", ctrl); final String authzId = ctrl.getAuthorizationId(); final String dn = authzId.split(":", 2)[1].trim(); final SearchOperation search = createSearchOperation(response.getConnection()); return search.execute(createSearchRequest(criteria, dn)).getResult(); }
@Override protected SearchResult performLdapSearch( final AuthenticationCriteria criteria, final AuthenticationHandlerResponse response) throws LdapException { final AuthorizationIdentityResponseControl ctrl = (AuthorizationIdentityResponseControl) response.getControl( AuthorizationIdentityResponseControl.OID); if (ctrl == null) { throw new IllegalStateException("Authorization Identity Response Control not found"); } logger.debug("found authorization identity response control {}", ctrl); final String authzId = ctrl.getAuthorizationId(); final String dn = authzId.split(":", 2)[1].trim(); final SearchOperation search = createSearchOperation(response.getConnection()); return search.execute(createSearchRequest(criteria, dn)).getResult(); }