Package | Description |
---|---|
com.communote.server.core.common.ldap | |
com.communote.server.core.security.authentication.ldap |
Modifier and Type | Class and Description |
---|---|
class |
RequiredAttributeNotContainedException
Exception to be thrown if a required attribute was not contained in the response of an LDAP query
and thus could not be mapped back.
|
Modifier and Type | Method and Description |
---|---|
protected String |
LdapAttributesMapper.getAttributeValue(Attributes attributes,
String ldapAttributeName)
Returns the value for the named LDAP attribute.
|
protected String |
LdapAttributesMapper.getAttributeValueForKenmeiAttributeName(String dn,
Attributes attributes,
String communoteAttributeName)
Similar to
LdapAttributesMapper.getAttributeValue(Attributes, String) but expects a Communote attribute
name which will be automatically mapped to the LDAP attribute name. |
static List<String> |
LdapUtils.getAttributeValues(Attributes attributes,
String ldapAttributeName)
Returns the values for the named LDAP attribute.
|
ExternalGroupVO |
LdapGroupSearch.getGroup(String groupDN)
Retrieves a group by its DN if the group exists
|
protected void |
LdapUserAttributesMapper.init(Map<String,String> mapping)
Initializes the mapper and validates that all required properties are contained in the
mapping.
|
protected void |
LdapAttributesMapper.init(Map<String,String> mapping)
Initializes the mapper and validates that all required properties are contained in the
mapping.
|
ExternalUserVO |
LdapUserAttributesMapper.mapAttributes(String dn,
Attributes ldapAttributes)
Maps the LDAP attributes to the generic type.
|
ExternalGroupVO |
LdapGroupAttributesMapper.mapAttributes(String dn,
Attributes attributes)
Constructs an ExernalGroupVO from the given attributes.
|
abstract T |
LdapAttributesMapper.mapAttributes(String dn,
Attributes ldapAttributes)
Maps the LDAP attributes to the generic type.
|
static <T> T |
LdapSearchUtils.retrieveEntry(org.springframework.ldap.core.support.LdapContextSource contextFactory,
String dn,
String searchFilter,
String[] attributesToReturn,
Collection<LdapSearchBaseDefinition> searchBaseDefs,
LdapAttributesMapper<T> mapper)
Retrieve an entry with the named attributes from the LDAP directory and convert it with the
provided attributes mapper.
|
ExternalUserVO |
CommunoteLdapUserSearch.searchForUserTransformed(String username)
Same as
CommunoteLdapUserSearch.searchForUser(String) but automatically transforms the LdapUserDetails to
the VO by invoking CommunoteLdapUserSearch.transformResult(DirContextOperations) . |
ExternalUserVO |
CommunoteLdapUserSearch.transformResult(org.springframework.ldap.core.DirContextOperations details)
Transforms the LdapUserDetails into a VO.
|
Constructor and Description |
---|
CommunoteLdapUserSearch(LdapConfiguration config,
LdapUserAttribute communoteAttributeName)
Creates a search for retrieving LDAP users.
|
LdapAttributesMapper(Map<String,String> mapping)
Creates a mapper based on a mapping from Communote attribute names to LDAP attribute names.
|
LdapAttributesMapper(String mapping)
Convenience constructor to initialize the mapper from a string based mapping definition.
|
LdapGroupAttributesMapper(Map<String,String> mapping,
String externalSystemId,
boolean binaryGroupId) |
LdapGroupAttributesMapper(String mapping,
String externalSystemId,
boolean binaryGroupId) |
LdapGroupSearch(LdapConfiguration configuration)
Constructor.
|
LdapUserAttributesMapper(LdapConfiguration config)
Creates a mapper from a string based mapping definition.
|
Modifier and Type | Method and Description |
---|---|
ExternalUserVO |
LdapAuthenticator.authenticate(String username,
String password,
LdapUserAttribute usernameAttribute)
Tries to authenticate the user.
|
Copyright © 2019 Communote team. All rights reserved.