|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.util.LdapUtil
public final class LdapUtil
Classe utilitaire de connexion au LDAP
| Method Summary | |
|---|---|
static DirContext |
bindUser(String strLDAPContext,
String strLDAPUrl,
String strDN,
String strPassword)
Connects an user to the ldap |
static void |
freeContext(DirContext context)
Free the context |
static DirContext |
getContext(String strLDAPContext,
String strLDAPUrl,
String strAdminDN,
String strAdminPassword)
Search LDAP context |
static NamingEnumeration |
searchUsers(DirContext context,
String strFilter,
String strUserDN,
String strDNBase,
SearchControls sc)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static DirContext getContext(String strLDAPContext,
String strLDAPUrl,
String strAdminDN,
String strAdminPassword)
throws NamingException
strLDAPContext - the ldap contextstrLDAPUrl - the ldap urlstrAdminDN - the admin dnstrAdminPassword - the admin password
NamingException - in case of error
public static void freeContext(DirContext context)
throws NamingException
context - the context to free
NamingException - in case of error
public static DirContext bindUser(String strLDAPContext,
String strLDAPUrl,
String strDN,
String strPassword)
throws NamingException
strLDAPContext - the ldap contextstrLDAPUrl - the ldap urlstrDN - the dnstrPassword - the password
NamingException - in case of error
public static NamingEnumeration searchUsers(DirContext context,
String strFilter,
String strUserDN,
String strDNBase,
SearchControls sc)
throws NamingException
context - the ldap contextstrFilter - the filterstrUserDN - the user dnstrDNBase - the base dnsc - the search controls
NamingException - in case of error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||