|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.util.ldap.LdapUtil
public final class LdapUtil
This class provides LDAP generic connection methods
| Method Summary | |
|---|---|
static javax.naming.directory.DirContext |
bindUser(java.lang.String strLDAPContext,
java.lang.String strLDAPUrl,
java.lang.String strDN,
java.lang.String strPassword)
|
static void |
freeContext(javax.naming.directory.DirContext context)
Close the context given in parameter |
static javax.naming.directory.DirContext |
getContext(java.lang.String strLDAPContext,
java.lang.String strLDAPUrl,
java.lang.String strAdminDN,
java.lang.String strAdminPassword)
LDAP Context search |
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 contextstrLDAPUrl - the urlstrAdminDN - the admin dn to usestrAdminPassword - the admin password to use
javax.naming.NamingException - in case of error
public static void freeContext(javax.naming.directory.DirContext context)
throws javax.naming.NamingException
context - the LDAP context as a DirContext object
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 contextstrLDAPUrl - the urlstrDN - the dn of the user to connectstrPassword - the password of the user to connect
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 contextstrFilter - the filter for the searchstrUserDN - the user dnstrDNBase - the base dnsc - the SearchControls
javax.naming.NamingException - in case of error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||