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