public class LdapAuthenticationProvider extends BaseAuthenticationProvider
| Constructor and Description |
|---|
LdapAuthenticationProvider() |
createToken, isEnabled, setEnabled, storeAuthenticationpublic boolean doAuthenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
AuthenticationChain authenticationChain,
String username,
String password)
throws AuthenticationSystemException,
BadCredentialsException
AuthenticationProviderrequest - HTTP Requestresponse - HTTP ResponseauthenticationChain - Authentication chainusername - username to authenticatepassword - passwordAuthenticationSystemException - general authentication system errorBadCredentialsException - given credentials are badprotected boolean upsertUserGroup(String groupName, String username, AuthenticationChain authenticationChain)
public String getLdapUrl()
public void setLdapUrl(String ldapUrl)
public String getLdapPassword()
public void setLdapPassword(String ldapPassword)
public String getLdapUsername()
public void setLdapUsername(String ldapUsername)
public String getLdapBaseContext()
public void setLdapBaseContext(String ldapBaseContext)
public String getUsernameLdapAttribute()
public void setUsernameLdapAttribute(String usernameLdapAttribute)
public String getFirstNameLdapAttribute()
public void setFirstNameLdapAttribute(String firstNameLdapAttribute)
public String getLastNameLdapAttribute()
public void setLastNameLdapAttribute(String lastNameLdapAttribute)
public String getGroupNameLdapAttribute()
public void setGroupNameLdapAttribute(String groupNameLdapAttribute)
public String getGroupNameLdapAttributeRegex()
public void setGroupNameLdapAttributeRegex(String groupNameLdapAttributeRegex)
public int getGroupNameLdapAttributeMatchIndex()
public void setGroupNameLdapAttributeMatchIndex(int groupNameLdapAttributeMatchIndex)
public String getEmailLdapAttribute()
public void setEmailLdapAttribute(String emailLdapAttribute)
Copyright © 2022 CrafterCMS. All rights reserved.