public class PAMSecurityRealm extends AbstractPasswordBasedSecurityRealm
SecurityRealm
that uses Unix PAM authentication.Modifier and Type | Class and Description |
---|---|
static class |
PAMSecurityRealm.DescriptorImpl |
SecurityRealm.SecurityComponents
ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Field and Description |
---|---|
String |
serviceName |
AUTHENTICATED_AUTHORITY, AUTHENTICATED_AUTHORITY2, LIST, NO_AUTHENTICATION
Constructor and Description |
---|
PAMSecurityRealm(String serviceName) |
Modifier and Type | Method and Description |
---|---|
protected UserDetails |
authenticate(String username,
String password) |
IdStrategy |
getGroupIdStrategy() |
IdStrategy |
getUserIdStrategy() |
static PAMSecurityRealm.DescriptorImpl |
install() |
GroupDetails |
loadGroupByGroupname(String groupName) |
UserDetails |
loadUserByUsername(String username) |
authenticate2, createSecurityComponents, loadGroupByGroupname2, loadUserByUsername2
all, allowsSignup, canLogOut, commenceSignup, commonFilters, createCliAuthenticator, createFilter, doCaptcha, doLogout, getAuthenticationGatewayUrl, getCaptchaSupport, getCaptchaSupportDescriptors, getDescriptor, getFrom, getLoginUrl, getPostLogOutUrl, getPostLogOutUrl2, getSecurityComponents, loadGroupByGroupname, setCaptchaSupport, validateCaptcha
public final String serviceName
@DataBoundConstructor public PAMSecurityRealm(String serviceName)
protected UserDetails authenticate(String username, String password) throws AuthenticationException
authenticate
in class AbstractPasswordBasedSecurityRealm
AuthenticationException
public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException, DataAccessException
loadUserByUsername
in class AbstractPasswordBasedSecurityRealm
UsernameNotFoundException
DataAccessException
public GroupDetails loadGroupByGroupname(String groupName) throws UsernameNotFoundException, DataAccessException
loadGroupByGroupname
in class AbstractPasswordBasedSecurityRealm
UsernameNotFoundException
DataAccessException
public IdStrategy getUserIdStrategy()
getUserIdStrategy
in class SecurityRealm
public IdStrategy getGroupIdStrategy()
getGroupIdStrategy
in class SecurityRealm
@Extension public static PAMSecurityRealm.DescriptorImpl install()
Copyright © 2016–2022. All rights reserved.