Module Rpam
In: rpam.c

initialize

Methods

authpam  

Public Class methods

Authenticates a user and returns TRUE on success, FALSE on failure

authpam(username, password) -> boolean

raises RuntimeError in case of PAM error raises SecurityError in case of missing rights (e.g. run as non-root)

[Source]

/*
 * Authenticates a user and returns TRUE on success, FALSE on failure
 * 
 * authpam(username, password) -> boolean
 * 
 * raises RuntimeError in case of PAM error
 * raises SecurityError in case of missing rights (e.g. run as non-root)
 */

VALUE method_authpam(VALUE self, VALUE username, VALUE password) {

[Validate]