pam_exec: Use program exit status as return code
authorPeter Avalos <pavalos@dragonflybsd.org>
Wed, 11 Jul 2012 10:01:44 +0000 (03:01 -0700)
committerPeter Avalos <pavalos@dragonflybsd.org>
Wed, 11 Jul 2012 10:01:44 +0000 (03:01 -0700)
commitf37265ed2a9f1e685c6bcbe8ffe212f4d4d450b0
tree87fbeb814b12d47551fb7d40992194e62be502f3
parent9067f1156c0d79090899ba20bd32e0d450028e6e
pam_exec: Use program exit status as return code

pam_exec(8) now accepts a new option "return_prog_exit_status". When
set, the program exit status is used as the pam_exec return code. It
allows the program to tell why the step failed (eg. user unknown).
However, if it exits with a code not allowed by the calling PAM service
module function (see $PAM_SM_FUNC below), a warning is logged and
PAM_SERVICE_ERR is returned.

Obtained-from:  FreeBSD
lib/pam_module/pam_exec/pam_exec.8
lib/pam_module/pam_exec/pam_exec.c