Class BindAuthenticator

    • Constructor Detail

      • BindAuthenticator

        public BindAuthenticator​( contextSource)
        Create an initialized instance using the BaseLdapPathContextSource provided.
        contextSource - the BaseLdapPathContextSource instance against which bind operations will be performed.
    • Method Detail

      • authenticate

        public org.springframework.ldap.core.DirContextOperations authenticate​(Authentication authentication)
        Description copied from interface: LdapAuthenticator
        Authenticates as a user and obtains additional user information from the directory.
        the details of the successfully authenticated user.
      • handleBindException

        protected void handleBindException​(java.lang.String userDn,
                                           java.lang.String username,
                                           java.lang.Throwable cause)
        Allows subclasses to inspect the exception thrown by an attempt to bind with a particular DN. The default implementation just reports the failure to the debug logger.