org.dsmltools
Class DSMLLDAPConnection

java.lang.Object
  extended by org.dsmltools.DSMLLDAPConnection
Direct Known Subclasses:
DSMLLDAPReader, DSMLLDAPWriter

public class DSMLLDAPConnection
extends java.lang.Object

This class manages the connection to an LDAP server. It is a superclass of DSMLLDAPReader and DSMLLDAPWriter.


Field Summary
protected  LDAPConnection m_conn
          The object which controls the LDAP connection
 
Constructor Summary
DSMLLDAPConnection()
           
 
Method Summary
 void connect(java.lang.String xiHostname, int xiPort, java.lang.String xiUsername, java.lang.String xiPassword)
          This function connects to an LDAP database
 void disconnect()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_conn

protected LDAPConnection m_conn
The object which controls the LDAP connection

Constructor Detail

DSMLLDAPConnection

public DSMLLDAPConnection()
Method Detail

connect

public void connect(java.lang.String xiHostname,
                    int xiPort,
                    java.lang.String xiUsername,
                    java.lang.String xiPassword)
This function connects to an LDAP database

Parameters:
xiHostname - The name of the host to connect to
xiPort - The port to connect on
xiUsername - The directory entry DN to use as the username
xiPassword - The password to give

disconnect

public void disconnect()