uPortal 2.4.1
API Documentation

org.jasig.portal.ldap
Interface ILdapServer


public interface ILdapServer

The ILdapServer interface defines a set of methods to be used to create a connection to an LDAP server, release the connection and get information about the connection.

Version:
$Revision $
Author:
Eric Dalquist edalquist@unicon.net

Method Summary
 java.lang.String getBaseDN()
          Gets the base DN used to search the LDAP directory context.
 javax.naming.directory.DirContext getConnection()
          Gets an LDAP directory context.
 java.lang.String getUidAttribute()
          Gets the uid attribute used to search the LDAP directory context.
 void releaseConnection(javax.naming.directory.DirContext conn)
          Releases an LDAP directory context.
 

Method Detail

getConnection

public javax.naming.directory.DirContext getConnection()
Gets an LDAP directory context.

Returns:
an LDAP directory context object.

getBaseDN

public java.lang.String getBaseDN()
Gets the base DN used to search the LDAP directory context.

Returns:
a DN to use as reference point or context for queries

getUidAttribute

public java.lang.String getUidAttribute()
Gets the uid attribute used to search the LDAP directory context.

Returns:
a DN to use as reference point or context for queries

releaseConnection

public void releaseConnection(javax.naming.directory.DirContext conn)
Releases an LDAP directory context.

Parameters:
conn - an LDAP directory context object

uPortal 2.4.1
API Documentation