org.esupportail.portal.channels.CWebdav.userManagement
Class LdapUsersManagement

java.lang.Object
  extended byorg.esupportail.portal.channels.CWebdav.userManagement.LdapUsersManagement

public class LdapUsersManagement
extends java.lang.Object

Id: LdapUsersManagement.java,v 1.0 15 oct. 2004 Copyright (c) 2004 Esup Portail (www.esup-portail.org) Classes: LdapUsersManagement Original Author: Yohan Colmant Manage the ldap users.


Field Summary
protected static org.apache.commons.logging.Log log
          Logger object
 
Constructor Summary
LdapUsersManagement()
           
 
Method Summary
static java.lang.String getUserDisplayName(java.lang.String serverUrl, java.lang.String baseDn, java.lang.String attributeKey, java.lang.String attributeValue, java.lang.String displayNameAttribute)
          Get a user display name from its key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.commons.logging.Log log
Logger object

Constructor Detail

LdapUsersManagement

public LdapUsersManagement()
Method Detail

getUserDisplayName

public static java.lang.String getUserDisplayName(java.lang.String serverUrl,
                                                  java.lang.String baseDn,
                                                  java.lang.String attributeKey,
                                                  java.lang.String attributeValue,
                                                  java.lang.String displayNameAttribute)
                                           throws javax.naming.NamingException
Get a user display name from its key

Parameters:
serverUrl - url of the ldap server
baseDn - the base dn for the search
attributeKey - the attribute key. for example, it is the attribute containing the user key in the ldap
attributeValue - the user key
displayNameAttribute - the display name attribute in the server
Returns:
the good display name
Throws:
javax.naming.NamingException