Spring LDAP Framework

org.springframework.ldap.core.support
Class LookupAttemptingCallback

java.lang.Object
  extended by org.springframework.ldap.core.support.LookupAttemptingCallback
All Implemented Interfaces:
AuthenticatedLdapEntryContextCallback

public class LookupAttemptingCallback
extends Object
implements AuthenticatedLdapEntryContextCallback

Attempts to perform an LDAP operation in the authenticated context, because Active Directory might allow bind with incorrect password (specifically empty password), and later refuse operations. We want to fail fast when authenticating.

Since:
1.3.1
Author:
Hugo Josefson

Constructor Summary
LookupAttemptingCallback()
           
 
Method Summary
 void executeWithContext(DirContext ctx, LdapEntryIdentification ldapEntryIdentification)
          Perform some LDAP operation on the supplied authenticated DirContext instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LookupAttemptingCallback

public LookupAttemptingCallback()
Method Detail

executeWithContext

public void executeWithContext(DirContext ctx,
                               LdapEntryIdentification ldapEntryIdentification)
Description copied from interface: AuthenticatedLdapEntryContextCallback
Perform some LDAP operation on the supplied authenticated DirContext instance. The target context will be automatically closed.

Specified by:
executeWithContext in interface AuthenticatedLdapEntryContextCallback
Parameters:
ctx - the DirContext instance to perform an operation on.
ldapEntryIdentification - the identification of the LDAP entry used to authenticate the supplied DirContext.

Spring LDAP Framework

Copyright © 2005-2010 The Spring LDAP Framework. All Rights Reserved.