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>
public class FromUserRecordLDAPGroupMembershipStrategy extends LDAPGroupMembershipStrategy
This strategy is rumoured to work for Active Directory!- Since:
- 1.10
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FromUserRecordLDAPGroupMembershipStrategy.DescriptorImpl
-
Constructor Summary
Constructors Constructor Description FromUserRecordLDAPGroupMembershipStrategy(String attributeName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAttributeName()
Collection<? extends org.springframework.security.core.GrantedAuthority>
getGrantedAuthorities(org.springframework.ldap.core.DirContextOperations userData, String username)
Returns theGrantedAuthority
s that the specified user belongs to.Set<String>
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 Detail
-
FromUserRecordLDAPGroupMembershipStrategy
@DataBoundConstructor public FromUserRecordLDAPGroupMembershipStrategy(String attributeName)
-
-
Method Detail
-
getAttributeName
public String 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
public Set<String> getGroupMembers(String groupDn, LDAPConfiguration conf)
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.
-
-