@Retention(value=RUNTIME) @Target(value=TYPE) public @interface LdapIdentityStoreDefinition
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.Modifier and Type | Optional Element and Description |
---|---|
String |
baseDn
Base of the distinguished name for the application user that will be used to make the initial connection to the LDAP.
|
String |
callerBaseDn
Base of the distinguished name that contains the caller name.
|
String |
callerNameAttribute
Name of the attribute that contains the caller name in the node
just below the one identified by
callerBaseDn() . |
String |
groupBaseDn
Base of the distinguished name that contains the groups
E.g.
|
String |
groupCallerDnAttribute
DN attribute for the group DN that identifies the callers that are in that group.
|
String |
groupNameAttribute
Name of the attribute that contains the group name in the node
just below the one identified by
groupBaseDn() . |
String |
password
Password for the application user defined by the baseDn member.
|
int |
priority
Determines the order in case multiple IdentityStores are found.
|
String |
searchBase
Search base for finding the user.
|
String |
searchExpression
Search expression to find
Only used when the member baseDN is filled in.
|
String |
url
URL where the LDAP server can be reached.
|
IdentityStore.ValidationType[] |
useFor
Determines what the identity store is used for
|
public abstract String url
ldap://localhost:33389"
public abstract String callerBaseDn
ou=caller,dc=jsr375,dc=net
When this member value is specified, direct binding is attempted, see also baseDnpublic abstract String callerNameAttribute
callerBaseDn()
.
E.g. uid
Example for the relationship with callerBaseDn()
and the name
of the caller that needs to be authenticated:
Given the DN uid=peter,ou=caller,dc=jsr375,dc=net
,
callerNameAttribute()
corresponds to uid
callerBaseDn()
corresponds to ou=caller,dc=jsr375,dc=net
peter
is the caller name that needs to be authenticated The following gives an example in ldif format:
dn: uid=peter,ou=caller,dc=jsr375,dc=net
objectclass: top
objectclass: uidObject
objectclass: person
uid: peter
cn: Peter Smith
sn: Peter
userPassword: secret1
public abstract String groupBaseDn
ou=group,dc=jsr375,dc=net
public abstract String groupNameAttribute
groupBaseDn()
.
E.g. cn
Example for the relationship with groupBaseDn()
and the role name
Given the DN cn=foo,ou=group,dc=jsr375,dc=net
,
groupNameAttribute()
corresponds to cn
groupBaseDn()
corresponds to ou=group,dc=jsr375,dc=net
foo
is the group name that will be returned by the store when authentication succeedspublic abstract String groupCallerDnAttribute
member
The value of this attribute has to the full DN of the caller. The following gives an example entry in ldif format:
dn: cn=foo,ou=group,dc=jsr375,dc=net
objectclass: top
objectclass: groupOfNames
cn: foo
member: uid=pete,ou=caller,dc=jsr375,dc=net
member: uid=john,ou=caller,dc=jsr375,dc=net
public abstract String baseDn
E.g. uid=ldap,ou=apps,dc=jsr375,dc=net
public abstract String password
public abstract String searchBase
public abstract String searchExpression
public abstract int priority
public abstract IdentityStore.ValidationType[] useFor
Copyright © 2015–2017. All rights reserved.