From 22e5845a1330c7d3db73533377640b14eff22128 Mon Sep 17 00:00:00 2001 From: baalberith Date: Sat, 11 Oct 2008 23:09:00 +0000 Subject: [PATCH] accepted ticket [1707336]: Include valid options when calling krb5_get_init_creds_passw --- src/mod_auth_kerb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mod_auth_kerb.c b/src/mod_auth_kerb.c index da5a1bc..8801f8d 100644 --- a/src/mod_auth_kerb.c +++ b/src/mod_auth_kerb.c @@ -681,6 +681,7 @@ verify_krb5_user(request_rec *r, krb5_context context, krb5_principal principal, krb5_keytab keytab, int krb_verify_kdc, krb5_ccache *ccache) { krb5_creds creds; + krb5_get_init_creds_opt options; krb5_error_code ret; krb5_ccache ret_ccache = NULL; char *name = NULL; @@ -698,9 +699,10 @@ verify_krb5_user(request_rec *r, krb5_context context, krb5_principal principal, free(name); } + krb5_get_init_creds_opt_init(&options); ret = krb5_get_init_creds_password(context, &creds, principal, (char *)password, NULL, - NULL, 0, NULL, NULL); + NULL, 0, NULL, &options); if (ret) { log_rerror(APLOG_MARK, APLOG_ERR, 0, r, "krb5_get_init_creds_password() failed: %s", -- 2.1.4