diff options
author | des <des@FreeBSD.org> | 2003-02-16 13:01:03 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2003-02-16 13:01:03 +0000 |
commit | d1e778062c616537c4ddb01163b8412dcf0e48b8 (patch) | |
tree | cb4b814068236098d54f576347aa5109c12c3369 /lib/libpam/modules/pam_opieaccess/pam_opieaccess.c | |
parent | 4afefd34d163df68d81c11cbbe1dc4ddb8af335c (diff) | |
download | FreeBSD-src-d1e778062c616537c4ddb01163b8412dcf0e48b8.zip FreeBSD-src-d1e778062c616537c4ddb01163b8412dcf0e48b8.tar.gz |
Add an "allow_local" option which forces historical behaviour.
Diffstat (limited to 'lib/libpam/modules/pam_opieaccess/pam_opieaccess.c')
-rw-r--r-- | lib/libpam/modules/pam_opieaccess/pam_opieaccess.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libpam/modules/pam_opieaccess/pam_opieaccess.c b/lib/libpam/modules/pam_opieaccess/pam_opieaccess.c index 3201dc2..47d443d 100644 --- a/lib/libpam/modules/pam_opieaccess/pam_opieaccess.c +++ b/lib/libpam/modules/pam_opieaccess/pam_opieaccess.c @@ -74,7 +74,8 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags __unused, if (r != PAM_SUCCESS) return (r); if (rhost == NULL) - rhost = "localhost"; + rhost = openpam_get_option(pamh, "allow_local") ? + "" : "localhost"; if (opieaccessfile(rhost) != 0 && opiealways(pwent->pw_dir) != 0) return (PAM_SUCCESS); |