edu.vt.middleware.ldap.auth.NoopDnResolver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vt-ldap Show documentation
Show all versions of vt-ldap Show documentation
Library for performing common LDAP operations
/*
$Id: NoopDnResolver.java 1330 2010-05-23 22:10:53Z dfisher $
Copyright (C) 2003-2010 Virginia Tech.
All rights reserved.
SEE LICENSE FOR MORE INFORMATION
Author: Middleware Services
Email: [email protected]
Version: $Revision: 1330 $
Updated: $Date: 2010-05-23 18:10:53 -0400 (Sun, 23 May 2010) $
*/
package edu.vt.middleware.ldap.auth;
import java.io.Serializable;
import javax.naming.NamingException;
/**
* NoopDnResolver
returns the user as the LDAP DN.
*
* @author Middleware Services
* @version $Revision: 1330 $ $Date: 2010-05-23 18:10:53 -0400 (Sun, 23 May 2010) $
*/
public class NoopDnResolver implements DnResolver, Serializable
{
/** serial version uid. */
private static final long serialVersionUID = -7832850056696716639L;
/** Default constructor. */
public NoopDnResolver() {}
/**
* This method is not implemented.
*
* @param authConfig AuthenticatorConfig
*/
public void setAuthenticatorConfig(final AuthenticatorConfig authConfig) {}
/**
* This method is not implemented.
*
* @return null
*/
public AuthenticatorConfig getAuthenticatorConfig()
{
return null;
}
/**
* Returns the user as the LDAP DN.
*
* @param user String
to find dn for
*
* @return String
- user's dn
*
* @throws NamingException if the LDAP search fails
*/
public String resolve(final String user)
throws NamingException
{
return user;
}
/** {@inheritDoc} */
public void close() {}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy