summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/libcli/auth/kerberos.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/libcli/auth/kerberos.c b/source4/libcli/auth/kerberos.c
index d70444d5bc..224e4abbdc 100644
--- a/source4/libcli/auth/kerberos.c
+++ b/source4/libcli/auth/kerberos.c
@@ -61,14 +61,17 @@ kerb_prompter(krb5_context ctx, void *data,
krb5_error_code code = 0;
krb5_principal me;
krb5_creds my_creds;
+ krb5_get_init_creds_opt options;
if ((code = krb5_parse_name(ctx, principal, &me))) {
return code;
}
-
+
+ ZERO_STRUCT(options);
+
if ((code = krb5_get_init_creds_password(ctx, &my_creds, me, password,
kerb_prompter,
- NULL, 0, NULL, NULL))) {
+ NULL, 0, NULL, &options))) {
krb5_free_principal(ctx, me);
return code;
}