Class LdaptiveAuthenticationProperties
java.lang.Object
org.bremersee.spring.security.ldaptive.authentication.LdaptiveAuthenticationProperties
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
LdaptiveAuthenticationProperties.WithDefaults
The ldaptive authentication properties.
- Author:
- Christian Bremer
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe group fetch strategy.static classThe role mapping.static classThe string replacement.static classThe ldaptive authentication properties with defaults. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AccountControlEvaluatorPropertyThe account control evaluator.The default roles.protected StringThe email attribute of the user.protected StringThe first name attribute of the user.protected StringThe group base dn (like 'ou=groups,dc=example,dc=org').The group fetch strategy.protected StringThe group id attribute.protected StringThe group member attribute.protected StringThe group member format.protected StringThe group object class.protected org.ldaptive.SearchScopeThe group search scope.protected StringThe last name attribute of the user.protected StringThe member attribute.protected StringThe password attribute of the user (like 'userPassword').protected StringThe password last set attribute (like 'pwdLastSet') can be used to activate the remember-me functionality.A list with refused usernames.protected org.bremersee.spring.security.core.authority.mapping.CaseTransformationThe role case transformation.protected List<LdaptiveAuthenticationProperties.RoleMapping> The role mappings.protected StringThe role prefix (like 'ROLE_').The string replacements for roles.protected StringThe user base dn (like 'ou=people,dc=example,dc=org').protected StringThe filter to find the user.protected org.ldaptive.SearchScopeThe scope to find a user.protected StringThe username attribute of the user (like 'uid' or 'sAMAccountName').protected UsernameToBindDnConverterPropertyThe username (like 'anna') to bind dn (like 'cn=anna,ou=people,dc=example,dc=org') converter.protected StringThe object class of the user (like 'inetOrgPerson').protected StringApplies only for simple bind. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTo role mappings map.To role string replacements map.
-
Field Details
-
usernameToBindDnConverter
The username (like 'anna') to bind dn (like 'cn=anna,ou=people,dc=example,dc=org') converter. -
userBaseDn
The user base dn (like 'ou=people,dc=example,dc=org'). This value is always required. -
refusedUsernames
A list with refused usernames. -
userObjectClass
The object class of the user (like 'inetOrgPerson'). The selected template contains a default. -
usernameAttribute
The username attribute of the user (like 'uid' or 'sAMAccountName'). The selected template contains a default. -
userRdnAttribute
Applies only for simple bind. The rdn attribute of the user. This is normally the same as the username attribute. -
passwordAttribute
The password attribute of the user (like 'userPassword'). If it is empty, a simple user bind will be done with the credentials of the user for authentication. If it is present, the connection to the ldap server must be done by a 'global' user and a password encoder that fits your requirements must be present. The default password encoder only supports SHA, that is insecure. -
passwordLastSetAttribute
The password last set attribute (like 'pwdLastSet') can be used to activate the remember-me functionality. -
userFindOneFilter
The filter to find the user. If it is empty, it will be generated fromuserObjectClassandusernameAttributelike this(&(objectClass=inetOrgPerson)(uid={0})). -
userFindOneSearchScope
protected org.ldaptive.SearchScope userFindOneSearchScopeThe scope to find a user. Default is 'one level'. -
firstNameAttribute
The first name attribute of the user. Default is 'givenName'. -
lastNameAttribute
The last name attribute of the user. Default is 'sn'. -
emailAttribute
The email attribute of the user. Default is 'mail'; -
accountControlEvaluator
The account control evaluator. -
groupFetchStrategy
The group fetch strategy. -
memberAttribute
The member attribute. -
groupBaseDn
The group base dn (like 'ou=groups,dc=example,dc=org'). It's only required, ifgroupFetchStrategyis set toGROUP_CONTAINS_USERS. -
groupSearchScope
protected org.ldaptive.SearchScope groupSearchScopeThe group search scope. It's only required, ifgroupFetchStrategyis set toGROUP_CONTAINS_USERS, -
groupObjectClass
The group object class. It's only required, ifgroupFetchStrategyis set toGROUP_CONTAINS_USERS -
groupIdAttribute
The group id attribute. It's only required, ifgroupFetchStrategyis set toGROUP_CONTAINS_USERS -
groupMemberAttribute
The group member attribute. It's only required, ifgroupFetchStrategyis set toGROUP_CONTAINS_USERS -
groupMemberFormat
The group member format. It's only required, ifgroupFetchStrategyis set toGROUP_CONTAINS_USERS -
roleMapping
The role mappings. -
defaultRoles
The default roles. -
rolePrefix
The role prefix (like 'ROLE_'). -
roleCaseTransformation
protected org.bremersee.spring.security.core.authority.mapping.CaseTransformation roleCaseTransformationThe role case transformation. -
roleStringReplacements
The string replacements for roles.
-
-
Constructor Details
-
LdaptiveAuthenticationProperties
public LdaptiveAuthenticationProperties()
-
-
Method Details
-
toRoleMappings
To role mappings map.- Returns:
- the map
-
toRoleStringReplacements
To role string replacements map.- Returns:
- the map
-