summaryrefslogtreecommitdiff
path: root/auth/credentials
diff options
context:
space:
mode:
Diffstat (limited to 'auth/credentials')
-rw-r--r--auth/credentials/credentials_krb5.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/auth/credentials/credentials_krb5.c b/auth/credentials/credentials_krb5.c
index 40ae454a9d..74dbb0a5d8 100644
--- a/auth/credentials/credentials_krb5.c
+++ b/auth/credentials/credentials_krb5.c
@@ -690,9 +690,12 @@ _PUBLIC_ int cli_credentials_get_keytab(struct cli_credentials *cred,
return ENOMEM;
}
- ret = smb_krb5_create_memory_keytab(mem_ctx, cred,
- smb_krb5_context,
- &keytab, &keytab_name);
+ ret = smb_krb5_create_memory_keytab(mem_ctx, smb_krb5_context,
+ cli_credentials_get_password(cred),
+ cli_credentials_get_username(cred),
+ cli_credentials_get_realm(cred),
+ cli_credentials_get_kvno(cred),
+ &keytab, &keytab_name);
if (ret) {
talloc_free(mem_ctx);
return ret;