org.esupportail.portal.channels.CWebdav.userManagement
Class LdapUsersManagement
java.lang.Object
org.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 |
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 |
log
protected static final org.apache.commons.logging.Log log
- Logger object
LdapUsersManagement
public LdapUsersManagement()
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 serverbaseDn
- the base dn for the searchattributeKey
- the attribute key. for example, it is the attribute containing the user key in the ldapattributeValue
- the user keydisplayNameAttribute
- the display name attribute in the server
- Returns:
- the good display name
- Throws:
javax.naming.NamingException