Class PamUserAuthenticator
java.lang.Object
org.apache.drill.exec.rpc.user.security.PamUserAuthenticator
- All Implemented Interfaces:
Closeable,AutoCloseable,UserAuthenticator
Implement
UserAuthenticator based on Pluggable Authentication
Module (PAM) configuration. Configure the PAM profiles using "drill.exec.security.user.auth.pam_profiles" BOOT
option. Ex. value [ "login", "sudo" ] (value is an array of strings).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidauthenticate(String user, String password) Authenticate the given user and password combination.voidclose()Close the authenticator.voidsetup(DrillConfig drillConfig) Setup for authenticating user credentials.
-
Constructor Details
-
PamUserAuthenticator
public PamUserAuthenticator()
-
-
Method Details
-
setup
Description copied from interface:UserAuthenticatorSetup for authenticating user credentials.- Specified by:
setupin interfaceUserAuthenticator- Throws:
DrillbitStartupException
-
authenticate
Description copied from interface:UserAuthenticatorAuthenticate the given user and password combination.- Specified by:
authenticatein interfaceUserAuthenticator- Parameters:
user-password-- Throws:
UserAuthenticationException- if authentication fails for given user and password.
-
close
Description copied from interface:UserAuthenticatorClose the authenticator. Used to release resources. Ex. LDAP authenticator opens connections to LDAP server, such connections resources are released in a safe manner as part of close.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceUserAuthenticator- Throws:
IOException
-