summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2005-01-23 15:57:07 +0000
committerrwatson <rwatson@FreeBSD.org>2005-01-23 15:57:07 +0000
commit8cc1e1c0d7b11a96e264a5cfa850f95b365ff802 (patch)
tree8a5be11cdcd1298324d8afecc07493340358fe09 /lib
parente52e82773be5e182ecba0a89989d618d37462ca5 (diff)
downloadFreeBSD-src-8cc1e1c0d7b11a96e264a5cfa850f95b365ff802.zip
FreeBSD-src-8cc1e1c0d7b11a96e264a5cfa850f95b365ff802.tar.gz
The final argument to verify_krb_v5_tgt() is the debug flag, not the
ticket forwardable flag, so key generation of debugging output to "debug" rather than "forwardable". Update copyright. MFC after: 3 days
Diffstat (limited to 'lib')
-rw-r--r--lib/libpam/modules/pam_krb5/pam_krb5.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libpam/modules/pam_krb5/pam_krb5.c b/lib/libpam/modules/pam_krb5/pam_krb5.c
index b1b97e5..d977ea1 100644
--- a/lib/libpam/modules/pam_krb5/pam_krb5.c
+++ b/lib/libpam/modules/pam_krb5/pam_krb5.c
@@ -6,7 +6,7 @@
* Copyright (c) Nicolas Williams, 2001. All rights reserved.
* Copyright (c) Perot Systems Corporation, 2001. All rights reserved.
* Copyright (c) Mark R V Murray, 2001. All rights reserved.
- * Copyright (c) Networks Associates Technology, Inc., 2002-2003.
+ * Copyright (c) Networks Associates Technology, Inc., 2002-2005.
* All rights reserved.
*
* Portions of this software were developed for the FreeBSD Project by
@@ -86,6 +86,7 @@ static void compat_free_data_contents(krb5_context, krb5_data *);
#define NEW_PASSWORD_PROMPT "New Password:"
#define PAM_OPT_CCACHE "ccache"
+#define PAM_OPT_DEBUG "debug"
#define PAM_OPT_FORWARDABLE "forwardable"
#define PAM_OPT_NO_CCACHE "no_ccache"
#define PAM_OPT_REUSE_CCACHE "reuse_ccache"
@@ -270,7 +271,7 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags __unused,
goto cleanup;
}
krbret = verify_krb_v5_tgt(pam_context, ccache, srvdup,
- openpam_get_option(pamh, PAM_OPT_FORWARDABLE) ? 1 : 0);
+ openpam_get_option(pamh, PAM_OPT_DEBUG) ? 1 : 0);
free(srvdup);
if (krbret == -1) {
PAM_VERBOSE_ERROR("Kerberos 5 error");
OpenPOWER on IntegriCloud