public class LdapServiceImpl extends FaxToMailServiceSupport implements LdapService
serviceContext| Constructor and Description |
|---|
LdapServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
FaxToMailUser |
authenticateUser(String login,
String password)
Authenticate and update ldap user.
|
protected String |
getGroupCompleteName(String groupCN)
Transform group CN to group path.
|
List<Contact> |
getUserAndEmails() |
FaxToMailUser |
getUserBean(String userTopiaId)
Return user for given user id.
|
FaxToMailUser |
getUserFromPrincipal(String login)
Retreive user from principal and updated user database instance.
|
void |
updateLdapData()
Update all user and group from ldap.
|
protected FaxToMailUser |
updateUserFormLdap(com.unboundid.ldap.sdk.LDAPConnection adminConnect,
com.unboundid.ldap.sdk.SearchResultEntry searchEntry,
String login,
Map<String,FaxToMailUserGroup> groupCache)
Update user (or create) in database from ldap search result entry.
|
getApplicationConfig, getClientService, getConfigurationService, getDecoratorService, getEmailService, getMailFolderService, getNow, getPersistenceContext, getReferentielService, newService, setServiceContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetServiceContextpublic void updateLdapData()
updateLdapData in interface LdapServiceprotected String getGroupCompleteName(String groupCN)
groupCN - public FaxToMailUser getUserBean(String userTopiaId)
getUserBean in interface LdapServiceuserTopiaId - userTopiaIdpublic FaxToMailUser authenticateUser(String login, String password) throws AuthenticationException
authenticateUser in interface LdapServicelogin - loginpassword - passwordAuthenticationException - if authentication failspublic FaxToMailUser getUserFromPrincipal(String login) throws AuthenticationException
getUserFromPrincipal in interface LdapServicelogin - user principal (without domain)AuthenticationException - is user can't be found in ldapprotected FaxToMailUser updateUserFormLdap(com.unboundid.ldap.sdk.LDAPConnection adminConnect, com.unboundid.ldap.sdk.SearchResultEntry searchEntry, String login, Map<String,FaxToMailUserGroup> groupCache) throws com.unboundid.ldap.sdk.LDAPException
adminConnect - admin connection used to load groups contentsearchEntry - entry containing datalogin - logingroupCache - group cache when mass update (can be null)com.unboundid.ldap.sdk.LDAPExceptionpublic List<Contact> getUserAndEmails()
getUserAndEmails in interface LdapServiceCopyright © 2014–2016 CodeLutin. All rights reserved.