/** * {@inheritDoc} */ @Override public Dn getMatchedDn() { return decoratedLdapResult.getMatchedDn(); }
/** * Get the matched Dn * * @return Returns the matchedDN. */ @Override public Dn getMatchedDn() { return result.getMatchedDn(); }
/** * {@inheritDoc} */ @Override public Dn getMatchedDn() { return decoratedLdapResult.getMatchedDn(); }
/** * {@inheritDoc} */ @Override public Dn getMatchedDn() { return decoratedLdapResult.getMatchedDn(); }
if ( !matchedDn.equals( result.getMatchedDn() ) ) else if ( result.getMatchedDn() != null )
if ( !matchedDn.equals( result.getMatchedDn() ) ) else if ( result.getMatchedDn() != null )
if ( !matchedDn.equals( result.getMatchedDn() ) ) else if ( result.getMatchedDn() != null )
/** * Determines if the supplied response should result in an operation retry. * * @param request that produced the exception * @param resultResponse provider response * * @throws LdapException wrapping the ldap exception */ protected void throwOperationException(final Request request, final ResultResponse resultResponse) throws LdapException { final LdapResult ldapResult = resultResponse.getLdapResult(); final Referral ref = ldapResult.getReferral(); ProviderUtils.throwOperationException( config.getOperationExceptionResultCodes(), String.format("Ldap returned result code: %s", ldapResult.getResultCode()), ldapResult.getResultCode().getResultCode(), ldapResult.getMatchedDn() != null ? ldapResult.getMatchedDn().getName() : null, processResponseControls(config.getControlProcessor(), request.getControls(), resultResponse), ref != null ? ref.getLdapUrls().toArray(new String[ref.getReferralLength()]) : null, false); }
/** * Creates an operation response with the supplied response data. * * @param <T> type of response * @param request containing controls * @param result of the operation * @param resultResponse provider response * * @return operation response */ protected <T> Response<T> createResponse(final Request request, final T result, final ResultResponse resultResponse) { final LdapResult ldapResult = resultResponse.getLdapResult(); final Referral ref = ldapResult.getReferral(); return new Response<>( result, ResultCode.valueOf(ldapResult.getResultCode().getValue()), ldapResult.getDiagnosticMessage(), ldapResult.getMatchedDn() != null ? ldapResult.getMatchedDn().getName() : null, processResponseControls(config.getControlProcessor(), request.getControls(), resultResponse), ref != null ? ref.getLdapUrls().toArray(new String[ref.getReferralLength()]) : null, resultResponse.getMessageId()); }
LdapAuthenticationException authenticationException = new LdapAuthenticationException( ldapResult.getDiagnosticMessage() ); authenticationException.setResolvedDn( ldapResult.getMatchedDn() ); LdapUnwillingToPerformException unwillingToPerformException = new LdapUnwillingToPerformException( ldapResult.getResultCode(), ldapResult.getDiagnosticMessage() ); unwillingToPerformException.setResolvedDn( ldapResult.getMatchedDn() ); LdapNoPermissionException ldapNoPermissionException = new LdapNoPermissionException( ldapResult.getDiagnosticMessage() ); ldapNoPermissionException.setResolvedDn( ldapResult.getMatchedDn() ); LdapContextNotEmptyException ldapContextNotEmptyException = new LdapContextNotEmptyException( ldapResult.getDiagnosticMessage() ); ldapContextNotEmptyException.setResolvedDn( ldapResult.getMatchedDn() ); LdapNoSuchObjectException ldapNoSuchObjectException = new LdapNoSuchObjectException( ldapResult.getDiagnosticMessage() ); ldapNoSuchObjectException.setResolvedDn( ldapResult.getMatchedDn() ); LdapNoSuchAttributeException ldapNoSuchAttributeException = new LdapNoSuchAttributeException( ldapResult.getDiagnosticMessage() ); ldapNoSuchAttributeException.setResolvedDn( ldapResult.getMatchedDn() ); LdapAttributeInUseException ldapAttributeInUseException = new LdapAttributeInUseException( ldapResult.getDiagnosticMessage() ); ldapAttributeInUseException.setResolvedDn( ldapResult.getMatchedDn() ); LdapEntryAlreadyExistsException ldapEntryAlreadyExistsException = new LdapEntryAlreadyExistsException(
LdapAuthenticationException authenticationException = new LdapAuthenticationException( ldapResult.getDiagnosticMessage() ); authenticationException.setResolvedDn( ldapResult.getMatchedDn() ); LdapUnwillingToPerformException unwillingToPerformException = new LdapUnwillingToPerformException( ldapResult.getResultCode(), ldapResult.getDiagnosticMessage() ); unwillingToPerformException.setResolvedDn( ldapResult.getMatchedDn() ); LdapNoPermissionException ldapNoPermissionException = new LdapNoPermissionException( ldapResult.getDiagnosticMessage() ); ldapNoPermissionException.setResolvedDn( ldapResult.getMatchedDn() ); LdapContextNotEmptyException ldapContextNotEmptyException = new LdapContextNotEmptyException( ldapResult.getDiagnosticMessage() ); ldapContextNotEmptyException.setResolvedDn( ldapResult.getMatchedDn() ); LdapNoSuchObjectException ldapNoSuchObjectException = new LdapNoSuchObjectException( ldapResult.getDiagnosticMessage() ); ldapNoSuchObjectException.setResolvedDn( ldapResult.getMatchedDn() ); LdapNoSuchAttributeException ldapNoSuchAttributeException = new LdapNoSuchAttributeException( ldapResult.getDiagnosticMessage() ); ldapNoSuchAttributeException.setResolvedDn( ldapResult.getMatchedDn() ); LdapAttributeInUseException ldapAttributeInUseException = new LdapAttributeInUseException( ldapResult.getDiagnosticMessage() ); ldapAttributeInUseException.setResolvedDn( ldapResult.getMatchedDn() ); LdapEntryAlreadyExistsException ldapEntryAlreadyExistsException = new LdapEntryAlreadyExistsException(
LdapAuthenticationException authenticationException = new LdapAuthenticationException( ldapResult.getDiagnosticMessage() ); authenticationException.setResolvedDn( ldapResult.getMatchedDn() ); LdapUnwillingToPerformException unwillingToPerformException = new LdapUnwillingToPerformException( ldapResult.getResultCode(), ldapResult.getDiagnosticMessage() ); unwillingToPerformException.setResolvedDn( ldapResult.getMatchedDn() ); LdapNoPermissionException ldapNoPermissionException = new LdapNoPermissionException( ldapResult.getDiagnosticMessage() ); ldapNoPermissionException.setResolvedDn( ldapResult.getMatchedDn() ); LdapContextNotEmptyException ldapContextNotEmptyException = new LdapContextNotEmptyException( ldapResult.getDiagnosticMessage() ); ldapContextNotEmptyException.setResolvedDn( ldapResult.getMatchedDn() ); LdapNoSuchObjectException ldapNoSuchObjectException = new LdapNoSuchObjectException( ldapResult.getDiagnosticMessage() ); ldapNoSuchObjectException.setResolvedDn( ldapResult.getMatchedDn() ); LdapNoSuchAttributeException ldapNoSuchAttributeException = new LdapNoSuchAttributeException( ldapResult.getDiagnosticMessage() ); ldapNoSuchAttributeException.setResolvedDn( ldapResult.getMatchedDn() ); LdapAttributeInUseException ldapAttributeInUseException = new LdapAttributeInUseException( ldapResult.getDiagnosticMessage() ); ldapAttributeInUseException.setResolvedDn( ldapResult.getMatchedDn() ); LdapEntryAlreadyExistsException ldapEntryAlreadyExistsException = new LdapEntryAlreadyExistsException(
Dn matchedDn = result.getMatchedDn();
whoAmIResponse.getLdapResult().setMatchedDn( response.getLdapResult().getMatchedDn() ); whoAmIResponse.getLdapResult().setReferral( response.getLdapResult().getReferral() );
whoAmIResponse.getLdapResult().setMatchedDn( response.getLdapResult().getMatchedDn() ); whoAmIResponse.getLdapResult().setReferral( response.getLdapResult().getReferral() );
whoAmIResponse.getLdapResult().setMatchedDn( response.getLdapResult().getMatchedDn() ); whoAmIResponse.getLdapResult().setReferral( response.getLdapResult().getReferral() );
pwdModifyResponse.getLdapResult().setMatchedDn( response.getLdapResult().getMatchedDn() ); pwdModifyResponse.getLdapResult().setReferral( response.getLdapResult().getReferral() ); pwdModifyResponse.getLdapResult().setMatchedDn( response.getLdapResult().getMatchedDn() ); pwdModifyResponse.getLdapResult().setReferral( response.getLdapResult().getReferral() );
pwdModifyResponse.getLdapResult().setMatchedDn( response.getLdapResult().getMatchedDn() ); pwdModifyResponse.getLdapResult().setReferral( response.getLdapResult().getReferral() ); pwdModifyResponse.getLdapResult().setMatchedDn( response.getLdapResult().getMatchedDn() ); pwdModifyResponse.getLdapResult().setReferral( response.getLdapResult().getReferral() );
pwdModifyResponse.getLdapResult().setMatchedDn( response.getLdapResult().getMatchedDn() ); pwdModifyResponse.getLdapResult().setReferral( response.getLdapResult().getReferral() ); pwdModifyResponse.getLdapResult().setMatchedDn( response.getLdapResult().getMatchedDn() ); pwdModifyResponse.getLdapResult().setReferral( response.getLdapResult().getReferral() );