edu.vt.middleware.ldap
Interface BaseLdap

All Known Implementing Classes:
AbstractLdap, Ldap, SearchDnResolver

public interface BaseLdap

BaseLdap provides a base interface for all ldap implementations.

Version:
$Revision: 1330 $ $Date: 2010-05-23 18:10:53 -0400 (Sun, 23 May 2010) $
Author:
Middleware Services

Method Summary
 void close()
          This will close the connection to the LDAP.
 boolean connect()
          This will establish a connection to the ldap.
 boolean reconnect()
          This will close the connection to the LDAP and establish a new connection.
 

Method Detail

connect

boolean connect()
                throws NamingException
This will establish a connection to the ldap.

Returns:
boolean - whether the connection was successfull
Throws:
NamingException - if the LDAP cannot be reached

reconnect

boolean reconnect()
                  throws NamingException
This will close the connection to the LDAP and establish a new connection.

Returns:
boolean - whether the connection was successfull
Throws:
NamingException - if the LDAP cannot be reached

close

void close()
This will close the connection to the LDAP.



Copyright © 2003-2010 Virginia Tech. All Rights Reserved.