diff options
| author | Peter Shoults <Peter.Shoults@Sun.COM> | 2009-03-06 14:09:57 -0500 |
|---|---|---|
| committer | Peter Shoults <Peter.Shoults@Sun.COM> | 2009-03-06 14:09:57 -0500 |
| commit | 8ce3ffdfd4c1bd6be03a31b5019c67a6c920ca54 (patch) | |
| tree | 7ba77da4e3e2822ec4fbe24b108c3d6018304275 /usr/src/lib/pam_modules/krb5/krb5_authenticate.c | |
| parent | 7997e108b559ec4bb8a4c39fbfb6ca5606995a08 (diff) | |
| download | illumos-gate-8ce3ffdfd4c1bd6be03a31b5019c67a6c920ca54.tar.gz | |
6799884 pam_krb5 could allow authentication to an attacker's KDC
Diffstat (limited to 'usr/src/lib/pam_modules/krb5/krb5_authenticate.c')
| -rw-r--r-- | usr/src/lib/pam_modules/krb5/krb5_authenticate.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr/src/lib/pam_modules/krb5/krb5_authenticate.c b/usr/src/lib/pam_modules/krb5/krb5_authenticate.c index bc48b528cd..385de329f1 100644 --- a/usr/src/lib/pam_modules/krb5/krb5_authenticate.c +++ b/usr/src/lib/pam_modules/krb5/krb5_authenticate.c @@ -19,12 +19,10 @@ * CDDL HEADER END */ /* - * Copyright 2007 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - #include <security/pam_appl.h> #include <security/pam_modules.h> #include <security/pam_impl.h> @@ -349,7 +347,7 @@ attempt_krb5_auth( krb5_get_init_creds_opt_init(&opts); /* need to free context with krb5_free_context */ - if (code = krb5_init_context(&kmd->kcontext)) { + if (code = krb5_init_secure_context(&kmd->kcontext)) { __pam_log(LOG_AUTH | LOG_ERR, "PAM-KRB5 (auth): Error initializing " "krb5: %s", |
