projects
/
mod_auth_kerb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f76f3c7
)
accepted ticket [1707336]: Include valid options when calling krb5_get_init_creds_passw
author
baalberith
<baalberith>
Sat, 11 Oct 2008 23:09:00 +0000
(23:09 +0000)
committer
baalberith
<baalberith>
Sat, 11 Oct 2008 23:09:00 +0000
(23:09 +0000)
src/mod_auth_kerb.c
patch
|
blob
|
history
diff --git
a/src/mod_auth_kerb.c
b/src/mod_auth_kerb.c
index
da5a1bc
..
8801f8d
100644
(file)
--- 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_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;
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);
}
free(name);
}
+ krb5_get_init_creds_opt_init(&options);
ret = krb5_get_init_creds_password(context, &creds, principal,
(char *)password, NULL,
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",
if (ret) {
log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
"krb5_get_init_creds_password() failed: %s",