Package jenkins.security.plugins.ldap
Class FromUserRecordLDAPGroupMembershipStrategy
java.lang.Object
hudson.model.AbstractDescribableImpl<LDAPGroupMembershipStrategy>
jenkins.security.plugins.ldap.LDAPGroupMembershipStrategy
jenkins.security.plugins.ldap.FromUserRecordLDAPGroupMembershipStrategy
- All Implemented Interfaces:
Describable<LDAPGroupMembershipStrategy>
This strategy is rumoured to work for Active Directory!
- Since:
- 1.10
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends org.springframework.security.core.GrantedAuthority>
getGrantedAuthorities
(org.springframework.ldap.core.DirContextOperations userData, String username) Returns theGrantedAuthority
s that the specified user belongs to.getGroupMembers
(String groupDn, LDAPConfiguration conf) Returns aSet
of all members in the specified group.Methods inherited from class jenkins.security.plugins.ldap.LDAPGroupMembershipStrategy
getAuthoritiesPopulator, setAuthoritiesPopulator
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
FromUserRecordLDAPGroupMembershipStrategy
-
-
Method Details
-
getAttributeName
-
getGrantedAuthorities
public Collection<? extends org.springframework.security.core.GrantedAuthority> getGrantedAuthorities(org.springframework.ldap.core.DirContextOperations userData, String username) Description copied from class:LDAPGroupMembershipStrategy
Returns theGrantedAuthority
s that the specified user belongs to.- Specified by:
getGrantedAuthorities
in classLDAPGroupMembershipStrategy
- Parameters:
userData
- as in- Returns:
- the
GrantedAuthority
s that the specified user belongs to.
-
getGroupMembers
Description copied from class:LDAPGroupMembershipStrategy
Returns aSet
of all members in the specified group.- Overrides:
getGroupMembers
in classLDAPGroupMembershipStrategy
- Parameters:
groupDn
- the DN of the group whose members will be returned.conf
- theLDAPConfiguration
that controls some search variables.- Returns:
- a set of all members in the specified group, or null if the members could not be found.
-