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 theGrantedAuthoritys that the specified user belongs to.getGroupMembers(String groupDn, LDAPConfiguration conf) Returns aSetof all members in the specified group.Methods inherited from class jenkins.security.plugins.ldap.LDAPGroupMembershipStrategy
getAuthoritiesPopulator, setAuthoritiesPopulatorMethods 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:LDAPGroupMembershipStrategyReturns theGrantedAuthoritys that the specified user belongs to.- Specified by:
getGrantedAuthoritiesin classLDAPGroupMembershipStrategy- Parameters:
userData- as in- Returns:
- the
GrantedAuthoritys that the specified user belongs to.
-
getGroupMembers
Description copied from class:LDAPGroupMembershipStrategyReturns aSetof all members in the specified group.- Overrides:
getGroupMembersin classLDAPGroupMembershipStrategy- Parameters:
groupDn- the DN of the group whose members will be returned.conf- theLDAPConfigurationthat controls some search variables.- Returns:
- a set of all members in the specified group, or null if the members could not be found.
-