public class TomlLdapPersonAttributeDao extends LdapPersonAttributeDao
LdaptivePersonAttributeDao that is able
to insert the ldap and context source settings from an external Toml file. To learn
more about the Toml format, please see this link:
https://github.com/mojombo/toml/blob/master/README.md
The configuration that is read and parsed is encapsulated inside the
TomlLdapPersonAttributeDao.TomlLdapConfiguration class. This dao will noy only prepare
for the resolution of person attributes, but also is able to construct
the necessary LdapContextSource via the settings that is provided in the file.
Sample TOML file:
[ldap]
baseDN = "ou=people,dc=school,dc=edu"
urls = ["ldap://ldap.server1.edu:389", "ldap://ldap.server2.edu:389"]
userDN = "cn=authSearch,ou=adminaccounts,dc=school,dc=edu"
password = "psw"
[ldap.queryAttributeMappings]
username = "uid"
[ldap.resultAttributeMappings]
displayName = "FullName"
uid = "uid"
CN = "Name"
[ldap.baseEnvironmentSettings]
com.sun.jndi.ldap.connect.timeout = 3000
com.sun.jndi.ldap.read.timeout = 3000
java.naming.security.authentication = "simple"
# Advanced settings
###################
#pooled = false
#queryTemplate = "uid={0}"
#unmappedUsernameAttribute = "CN"
#cacheEnvironmentProperties = false
#useAllQueryAttributes = true
#queryType = "AND"
#referral = "follow"
#ignoreNameNotFoundException = false
#ignorePartialResultException = true
#requireAllQueryAttributes = true
| Modifier and Type | Class and Description |
|---|---|
static class |
TomlLdapPersonAttributeDao.TomlLdapConfiguration
The Toml configuration file is encapsulated by this class.
|
DEFAULT_CASE_CANONICALIZATION_MODE, DEFAULT_USERNAME_CASE_CANONICALIZATION_MODEloggerWILDCARD, WILDCARD_PATTERN| Constructor and Description |
|---|
TomlLdapPersonAttributeDao(org.springframework.core.io.Resource tomlConfigFile) |
afterPropertiesSet, appendAttributeToQuery, getBaseDN, getContextSource, getPeopleForQuery, getQueryTemplate, getQueryType, getSearchControls, getTimeLimit, setBaseDN, setContextSource, setLdapTemplate, setQueryTemplate, setQueryType, setSearchControls, setTimeLimitappendCanonicalizedAttributeToQuery, canonicalizeAttribute, generateQuery, getAvailableQueryAttributes, getCaseCanonicalizationLocale, getCaseInsensitiveQueryAttributes, getCaseInsensitiveResultAttributes, getConfiguredUserNameAttribute, getDefaultCaseCanonicalizationMode, getPeopleWithMultivaluedAttributes, getPossibleUserAttributeNames, getQueryAttributeMapping, getResultAttributeMapping, getUnmappedUsernameAttribute, getUsernameCaseCanonicalizationMode, isRequireAllQueryAttributes, isUseAllQueryAttributes, isUserNameAttributeConfigured, mapPersonAttributes, setCaseCanonicalizationLocale, setCaseInsensitiveQueryAttributes, setCaseInsensitiveQueryAttributesAsCollection, setCaseInsensitiveResultAttributes, setCaseInsensitiveResultAttributesAsCollection, setDefaultCaseCanonicalizationMode, setQueryAttributeMapping, setRequireAllQueryAttributes, setResultAttributeMapping, setUnmappedUsernameAttribute, setUseAllQueryAttributes, setUsernameCaseCanonicalizationModegetPerson, getUsernameAttributeProvider, setUsernameAttributeProvider, toSeedMapgetPeople, toMultivaluedSeedflattenResults, getMultivaluedUserAttributes, getMultivaluedUserAttributes, getUserAttributes, getUserAttributesCopyright © 2015 Jasig. All Rights Reserved.