Class LdapAuthorizationProperties
java.lang.Object
org.apereo.cas.configuration.model.support.ldap.LdapAuthorizationProperties
- All Implemented Interfaces:
Serializable
@RequiresModule(name="cas-server-support-ldap")
public class LdapAuthorizationProperties
extends Object
implements Serializable
This is
LdapAuthorizationProperties
.- Since:
- 5.0.0
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionBase DN to start the search.Attribute expected to be found on the entry resulting from the group search whose value is going to be used to construct roles.Base DN to start the search looking for groups.Search filter to begin looking for groups.A prefix that is prepended to the group attribute value to construct an authorized role.Attribute expected to be found on the entry whose value is going to be used to construct roles.Prefix for the role.LDAP search filter to locate accounts.boolean
Indicate whether the LDAP search query is allowed to return multiple entries.setAllowMultipleResults
(boolean allowMultipleResults) Indicate whether the LDAP search query is allowed to return multiple entries.Base DN to start the search.setGroupAttribute
(String groupAttribute) Attribute expected to be found on the entry resulting from the group search whose value is going to be used to construct roles.setGroupBaseDn
(String groupBaseDn) Base DN to start the search looking for groups.setGroupFilter
(String groupFilter) Search filter to begin looking for groups.setGroupPrefix
(String groupPrefix) A prefix that is prepended to the group attribute value to construct an authorized role.setRoleAttribute
(String roleAttribute) Attribute expected to be found on the entry whose value is going to be used to construct roles.setRolePrefix
(String rolePrefix) Prefix for the role.setSearchFilter
(String searchFilter) LDAP search filter to locate accounts.
-
Field Details
-
DEFAULT_ROLE_PREFIX
Default role prefix.- See Also:
-
-
Constructor Details
-
LdapAuthorizationProperties
public LdapAuthorizationProperties()
-
-
Method Details
-
getRoleAttribute
Attribute expected to be found on the entry whose value is going to be used to construct roles. The final value is always prefixed withrolePrefix
. This is useful in scenarios where you wish to grant access to a resource to all users who carry a special attribute. -
getRolePrefix
Prefix for the role. -
isAllowMultipleResults
public boolean isAllowMultipleResults()Indicate whether the LDAP search query is allowed to return multiple entries. -
getGroupAttribute
Attribute expected to be found on the entry resulting from the group search whose value is going to be used to construct roles. The final value is always prefixed withgroupPrefix
. This is useful in scenarios where you wish to grant access to a resource to all users who a member of a given group. -
getGroupPrefix
A prefix that is prepended to the group attribute value to construct an authorized role. -
getGroupFilter
Search filter to begin looking for groups. -
getGroupBaseDn
Base DN to start the search looking for groups. -
getBaseDn
Base DN to start the search. -
getSearchFilter
LDAP search filter to locate accounts. -
setRoleAttribute
Attribute expected to be found on the entry whose value is going to be used to construct roles. The final value is always prefixed withrolePrefix
. This is useful in scenarios where you wish to grant access to a resource to all users who carry a special attribute.- Returns:
this
.
-
setRolePrefix
Prefix for the role.- Returns:
this
.
-
setAllowMultipleResults
Indicate whether the LDAP search query is allowed to return multiple entries.- Returns:
this
.
-
setGroupAttribute
Attribute expected to be found on the entry resulting from the group search whose value is going to be used to construct roles. The final value is always prefixed withgroupPrefix
. This is useful in scenarios where you wish to grant access to a resource to all users who a member of a given group.- Returns:
this
.
-
setGroupPrefix
A prefix that is prepended to the group attribute value to construct an authorized role.- Returns:
this
.
-
setGroupFilter
Search filter to begin looking for groups.- Returns:
this
.
-
setGroupBaseDn
Base DN to start the search looking for groups.- Returns:
this
.
-
setBaseDn
Base DN to start the search.- Returns:
this
.
-
setSearchFilter
LDAP search filter to locate accounts.- Returns:
this
.
-