public class LdapService extends FaxToMailServiceSupport
serviceContext| Constructor and Description |
|---|
LdapService() |
| Modifier and Type | Method and Description |
|---|---|
FaxToMailUser |
authenticateUser(String login,
String password)
Authenticate user.
|
Collection<LdapUser> |
getAllLdapUsers()
Get all user from ldap.
|
protected String |
getGroupFullPath(String groupCN)
Transform group CN to group path.
|
protected com.unboundid.ldap.sdk.LDAPConnection |
getLDAPConnection()
Get ldap connection.
|
FaxToMailUser |
getUserBean(String userTopiaId)
Return user for given user id.
|
void |
updateLdapData()
Recupere les utilisateurs/groupes du ldap et met à jour la base locale.
|
getApplicationConfig, getClientService, getConfigurationService, getDecoratorService, getEmailService, getMailFolderService, getNow, getPersistenceContext, getReferentielService, getWebApplicationContext, newService, setServiceContextprotected com.unboundid.ldap.sdk.LDAPConnection getLDAPConnection()
throws com.unboundid.ldap.sdk.LDAPException
com.unboundid.ldap.sdk.LDAPExceptionpublic Collection<LdapUser> getAllLdapUsers()
public void updateLdapData()
protected String getGroupFullPath(String groupCN)
groupCN - public FaxToMailUser getUserBean(String userTopiaId)
userTopiaId - userTopiaIdpublic FaxToMailUser authenticateUser(String login, String password) throws AuthenticationException
login - loginpassword - passwordAuthenticationException - if authentication failsCopyright © 2014 CodeLutin. All rights reserved.