/** * Authenticate using Using Unix Pluggable Authentication Modules (PAM) * * @param userName * @param password * @return List<String> list of groups to which this user belongs * @throws hudson.util.jna.Native.NativeExecutionException */ public Set<String> pamAuthenticate(String serviceName, String userName, String password) throws NativeAccessException { ensureUnixSupport(NativeFunction.PAM); return nativeUnixSupport.pamAuthenticate(serviceName, userName, password); }