public class LdapUserDAO extends Object implements ILdapUserDAO
| Constructor and Description |
|---|
LdapUserDAO() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkOldPassword(String strUid,
String strOldPassword)
check if the Old Password equals the password associete to the uid
|
void |
closeConnexion(DirContext ldapContext)
Close connexion to the ldap
|
String |
getContextFactory() |
Properties |
getLdapAttributes() |
LdapUser |
getLdapUserByUid(javax.servlet.http.HttpServletRequest request,
String strUid)
Return the ldapuser if exist
|
String |
getLogin() |
String |
getOu() |
String |
getPassword() |
String |
getPoolMaxSize() |
String |
getPoolPrefSize() |
String |
getPoolTimeout() |
String |
getProviderUrl() |
String |
getSecurityAuthentication() |
void |
modification(LdapUser ldapUser)
Modify the attribute of the ldapUser in the ldap
|
DirContext |
openConnexion()
Open connexion to the ldap
|
void |
registration(LdapUser ldapUser)
Add an user into the ldap
|
void |
setContextFactory(String strContextFactory) |
void |
setLdapAttributes(Properties ldapAttributes) |
void |
setLogin(String strLogin) |
void |
setOu(String strOu) |
void |
setPassword(String strPassword) |
void |
setPoolMaxSize(String strPoolMaxSize) |
void |
setPoolPrefSize(String strPoolPrefSize) |
void |
setPoolTimeout(String strPoolTimeout) |
void |
setProviderUrl(String strProviderUrl) |
void |
setSecurityAuthentication(String strSecurityAuthentication) |
boolean |
uidExit(String strUid)
Test if user exist
|
public DirContext openConnexion() throws NamingException
openConnexion in interface ILdapUserDAONamingException - the namming exceptionpublic void closeConnexion(DirContext ldapContext) throws NamingException
closeConnexion in interface ILdapUserDAOldapContext - the ldap contextNamingException - the namming exceptionpublic void registration(LdapUser ldapUser) throws NamingException
registration in interface ILdapUserDAOldapUser - the user to add in ldapNamingException - the namming exceptionpublic boolean uidExit(String strUid) throws NamingException
uidExit in interface ILdapUserDAOstrUid - the uid of userNamingException - the namming exceptionpublic boolean checkOldPassword(String strUid, String strOldPassword) throws NamingException
checkOldPassword in interface ILdapUserDAOstrUid - the uid of userstrOldPassword - the password to checkNamingException - the namming exceptionpublic LdapUser getLdapUserByUid(javax.servlet.http.HttpServletRequest request, String strUid) throws NamingException
getLdapUserByUid in interface ILdapUserDAOstrUid - the uid of userrequest - the http requestNamingException - the namming exceptionpublic void modification(LdapUser ldapUser) throws NamingException
modification in interface ILdapUserDAOldapUser - the ldapUserNamingException - the namming exceptionpublic String getLogin()
public void setLogin(String strLogin)
strLogin - the _strLogin to setpublic String getPassword()
public void setPassword(String strPassword)
strPassword - the _strPassword to setpublic String getContextFactory()
public void setContextFactory(String strContextFactory)
strContextFactory - the _strContextFactory to setpublic String getPoolMaxSize()
public void setPoolMaxSize(String strPoolMaxSize)
strPoolMaxSize - the _strPoolMaxSize to setpublic String getPoolPrefSize()
public void setPoolPrefSize(String strPoolPrefSize)
strPoolPrefSize - the _strPoolPrefSize to setpublic String getPoolTimeout()
public void setPoolTimeout(String strPoolTimeout)
strPoolTimeout - the _strPoolTimeout to setpublic String getProviderUrl()
public void setProviderUrl(String strProviderUrl)
strProviderUrl - the _strProviderUrl to setpublic String getSecurityAuthentication()
public void setSecurityAuthentication(String strSecurityAuthentication)
strSecurityAuthentication - the _strSecurityAuthentication to setpublic String getOu()
public void setOu(String strOu)
strOu - the _strOu to setpublic Properties getLdapAttributes()
public void setLdapAttributes(Properties ldapAttributes)
ldapAttributes - the ldapAttributes to setCopyright © 2017 City of Paris. All rights reserved.