public final class LdapUserHome extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkOldPassword(String strUid,
String strOldPassword)
check if the Old Password equals the password associete to the uid
|
static void |
closeConnexion(DirContext ldapContext)
Close connexion to the ldap
|
static LdapUser |
getLdapUserByUid(javax.servlet.http.HttpServletRequest request,
String strUid)
Return the ldapuser if exist
|
static void |
modification(LdapUser ldapUser)
Modify the attributes user into the ldap
|
static DirContext |
openConnexion()
Open connexion to the ldap
|
static void |
registration(LdapUser ldapUser)
Add an user into the ldap
|
static boolean |
uidExit(String strUid)
Test if user exist
|
public static DirContext openConnexion() throws NamingException
NamingException - the naming exceptionpublic static void closeConnexion(DirContext ldapContext) throws NamingException
ldapContext - the ldap contextNamingException - the naming exceptionpublic static void registration(LdapUser ldapUser) throws NamingException
ldapUser - the user to add in ldapNamingException - the naming exceptionpublic static boolean uidExit(String strUid) throws NamingException
strUid - the uid of userNamingException - the naming exceptionpublic static boolean checkOldPassword(String strUid, String strOldPassword) throws NamingException
strUid - the uid of userstrOldPassword - the password to checkNamingException - the naming exceptionpublic static LdapUser getLdapUserByUid(javax.servlet.http.HttpServletRequest request, String strUid) throws NamingException
request - the http requeststrUid - the uid of userNamingException - the naming exceptionpublic static void modification(LdapUser ldapUser) throws NamingException
ldapUser - the user to add in ldapNamingException - the naming exceptionCopyright © 2017 City of Paris. All rights reserved.