IdentityStore that stores
caller credentials and identity attributes (together caller identities) in an
LDAP store, and make that implementation available as an enabled CDI bean.
The container-provided IdentityStore must support validating UsernamePasswordCredential,
and may support validating other credential types.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | LdapIdentityStoreDefinition.LdapSearchScope
Enum representing LDAP search scope values. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: The distinguished name for the application user.Distinguished name for the application or administrative user that will be used to make the initial connection to the LDAP and to perform searches and lookups. |
| public String | Returns: password for the application user.Password for the application/admin user defined by the bindDn member. |
| public String | Returns: The base distinguished name for callers.Base distinguished name for callers in the LDAP store
(e.g., " |
| public String | Returns: Name of the attribute that represents the caller nameName of the attribute that contains the callers name in the person object
(e.g., " |
| public String | Returns: Base DN for searching the LDAP tree for callers.Search base for looking up callers
(e.g., " |
| public String | Returns: Search expression to find callers.Search filter to find callers when callerSearchBase is set. |
| public LdapIdentityStoreDefinition. | Returns: The search scopeSearch scope for caller searches: determines depth of the search in the LDAP tree. |
| public String | Returns: the callerSearchScope EL expressionAllow callerSearchScope to be specified as an EL expression. |
| public String | Returns: Attribute for the group membersName of the attribute in a group object that identifies the
members of the group
(e.g., " |
| public String | Returns: Attribute for group membershipName of the attribute in a person object that identifies the groups
the caller belongs to
(e.g., " |
| public String | Returns: Name of the attribute that represents the group nameName of the attribute of a group object that represents the group name
(e.g., " |
| public String | Returns: Base DN for searching the LDAP tree for groups.Search base for looking up groups
(e.g., " |
| public String | Returns: Search expression to find groups.Search filter to find groups when groupSearchBase is set. |
| public LdapIdentityStoreDefinition. | Returns: The search scopeSearch scope for group searches, determines depth of the search in the LDAP tree. |
| public String | Returns: the groupSearchScope EL expressionAllow groupSearchScope to be specified as an EL expression. |
| public int | Returns: The maximum number of results the LDAP server should return.Set the maximum number of results (objects) the server should return in response to a search. |
| public String | Returns: The maxResults EL expressionAllow maxResults to be specified as an EL expression. |
| public int | |
| public String | Returns: The priority EL expressionAllow priority to be specified as an EL expression. |
| public int | Returns: The readTimeout value.Set the timeout value that should be used when waiting for the LDAP server to return results. |
| public String | Returns: The readTimeout EL expressionAllow readTimeout to be specified as an EL expression. |
| public String | |
| public IdentityStore. | Returns: The type the identity store is used forDetermines what the identity store is used for |
| public String | Returns: The useFor EL expressionAllow useFor to be specified as an EL expression. |
| bindDn | back to summary |
|---|---|
| public String bindDn() Distinguished name for the application or administrative user that will be used to make the initial connection to the LDAP and to perform searches and lookups. This value is needed if caller or group lookup will be done. It is not needed if the store will be used only to authenticate callers using direct binding (see callerBaseDn). This user needs search permission in the LDAP for persons and/or groups.
E.g.:
| |
| bindDnPassword | back to summary |
|---|---|
| public String bindDnPassword() Password for the application/admin user defined by the bindDn member. Only used when the member bindDn is filled in.
| |
| callerBaseDn | back to summary |
|---|---|
| public String callerBaseDn() Base distinguished name for callers in the LDAP store
(e.g., " When this member value is specified, and callerSearchBase is not, direct binding is attempted. The callerNameAttribute must be specified along with this attribute so that the runtime can create the "leaf" RDN needed to concatenate with the base DN to create the full DN of the caller.
| |
| callerNameAttribute | back to summary |
|---|---|
| public String callerNameAttribute() Name of the attribute that contains the callers name in the person object
(e.g., " This attribute will be used, with callerBaseDn, to construct caller DNs for direct binding. It is also used to retrieve the caller's name when the caller object is instead looked up using search. The value of this attribute is returned as the caller principal name for a successful credential validation. The following gives an example in ldif format:
| |
| callerSearchBase | back to summary |
|---|---|
| public String callerSearchBase() Search base for looking up callers
(e.g., " Overrides callerBaseDn, if configured, causing caller search to be used instead of direct binding. Requires that the bindDn member be filled in.
| |
| callerSearchFilter | back to summary |
|---|---|
| public String callerSearchFilter() Search filter to find callers when callerSearchBase is set. The search is performed starting from the callerSearchBase DN with the scope specified by callerSearchScope.
| |
| callerSearchScope | back to summary |
|---|---|
| public LdapIdentityStoreDefinition. Search scope for caller searches: determines depth of the search in the LDAP tree.
| |
| callerSearchScopeExpression | back to summary |
|---|---|
| public String callerSearchScopeExpression() Allow callerSearchScope to be specified as an EL expression. If set, overrides any value set with callerSearchScope.
| |
| groupMemberAttribute | back to summary |
|---|---|
| public String groupMemberAttribute() Name of the attribute in a group object that identifies the
members of the group
(e.g., " The value of this attribute must be the full DN of the caller. The following gives an example entry in ldif format:
| |
| groupMemberOfAttribute | back to summary |
|---|---|
| public String groupMemberOfAttribute() Name of the attribute in a person object that identifies the groups
the caller belongs to
(e.g., "
This attribute is used only if: a) group search is not configured
(i.e., no groupSearchBase and groupSearchFilter configured); and,
b) the caller's DN is available, either because groups are being returned
during the credential validation phase by an identity store that performs
both validation and group lookup, or because the DN is available in the
The value of this attribute must be the full DN of the group. The following gives an example entry in ldif format:
| |
| groupNameAttribute | back to summary |
|---|---|
| public String groupNameAttribute() Name of the attribute of a group object that represents the group name
(e.g., "
| |
| groupSearchBase | back to summary |
|---|---|
| public String groupSearchBase() Search base for looking up groups
(e.g., " Needed only for a store that performs group lookup. Requires that the bindDn member be filled in.
| |
| groupSearchFilter | back to summary |
|---|---|
| public String groupSearchFilter() Search filter to find groups when groupSearchBase is set. The search is performed starting from the groupSearchBase DN with the scope specified by groupSearchScope.
| |
| groupSearchScope | back to summary |
|---|---|
| public LdapIdentityStoreDefinition. Search scope for group searches, determines depth of the search in the LDAP tree.
| |
| groupSearchScopeExpression | back to summary |
|---|---|
| public String groupSearchScopeExpression() Allow groupSearchScope to be specified as an EL expression. If set, overrides any value set with groupSearchScope.
| |
| maxResults | back to summary |
|---|---|
| public int maxResults() Set the maximum number of results (objects) the server should return in response to a search. The default value is set to 1000, which corresponds to the maximum number of results most LDAP servers will return for in a single response. Most LDAP servers support paging through result sets larger than 1000, but doing so should rarely be necessary for normal validation and group lookup use cases. Implementations of the built-in LDAP IdentityStore MAY support paging through larger result sets, but are NOT REQUIRED to.
| |
| maxResultsExpression | back to summary |
|---|---|
| public String maxResultsExpression() Allow maxResults to be specified as an EL expression. If set, overrides any value set with maxResults.
| |
| priority | back to summary |
|---|---|
| public int priority() Determines the order in case multiple IdentityStores are found.
| |
| priorityExpression | back to summary |
|---|---|
| public String priorityExpression() Allow priority to be specified as an EL expression. If set, overrides any value set with priority.
| |
| readTimeout | back to summary |
|---|---|
| public int readTimeout() Set the timeout value that should be used when waiting for the LDAP server to return results. Note that this is different from the connection timeout for the underlying socket connection; The default value of 0 means wait forever (assuming the connection itself does not time out).
| |
| readTimeoutExpression | back to summary |
|---|---|
| public String readTimeoutExpression() Allow readTimeout to be specified as an EL expression. If set, overrides any value set with readTimeout.
| |
| url | back to summary |
|---|---|
| public String url() URL where the LDAP server can be reached.
E.g.:
| |
| useFor | back to summary |
|---|---|
| public IdentityStore. Determines what the identity store is used for
| |
| useForExpression | back to summary |
|---|---|
| public String useForExpression() Allow useFor to be specified as an EL expression. If set, overrides any value set with useFor.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final LdapIdentityStoreDefinition. | |
| public static final LdapIdentityStoreDefinition. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static LdapIdentityStoreDefinition. | |
| public static LdapIdentityStoreDefinition. |
| ONE_LEVEL | back to summary |
|---|---|
| public static final LdapIdentityStoreDefinition. | |
| SUBTREE | back to summary |
|---|---|
| public static final LdapIdentityStoreDefinition. | |
| LdapSearchScope | back to summary |
|---|---|
| private LdapSearchScope() | |
| valueOf | back to summary |
|---|---|
| public static LdapIdentityStoreDefinition. | |
| values | back to summary |
|---|---|
| public static LdapIdentityStoreDefinition. | |