From: baalberith Date: Sat, 11 Oct 2008 23:09:00 +0000 (+0000) Subject: accepted ticket [1707336]: Include valid options when calling krb5_get_init_creds_passw X-Git-Tag: v5.4~9 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mod_auth_kerb.git;a=commitdiff_plain;h=22e5845a1330c7d3db73533377640b14eff22128 accepted ticket [1707336]: Include valid options when calling krb5_get_init_creds_passw --- 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",