DragonFly commits List (threaded) for 2012-07
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
git: pam_exec: Use program exit status as return code
commit f37265ed2a9f1e685c6bcbe8ffe212f4d4d450b0
Author: Peter Avalos <pavalos@dragonflybsd.org>
Date: Wed Jul 11 03:01:44 2012 -0700
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
Summary of changes:
lib/pam_module/pam_exec/pam_exec.8 | 86 ++++++++-
lib/pam_module/pam_exec/pam_exec.c | 364 ++++++++++++++++++++++++++++++++----
2 files changed, 410 insertions(+), 40 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f37265ed2a9f1e685c6bcbe8ffe212f4d4d450b0
--
DragonFly BSD source repository
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]