uPortal 2.3.2
API Documentation

org.jasig.portal
Class LdapServices

java.lang.Object
  extended byorg.jasig.portal.LdapServices

public class LdapServices
extends java.lang.Object

Provides LDAP access in a way similar to a relational DBMS.

Version:
$Revision: 1.8.4.1 $
Author:
Russell Tokuyama (University of Hawaii)

Constructor Summary
LdapServices()
          Constructor that loads LDAP parameters from property file upon first invocation.
 
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdapServices

public LdapServices()
Constructor that loads LDAP parameters from property file upon first invocation.

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.3.2
API Documentation