summaryrefslogtreecommitdiff
path: root/source3/libads/kerberos.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/libads/kerberos.c')
-rw-r--r--source3/libads/kerberos.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/libads/kerberos.c b/source3/libads/kerberos.c
index 004079529f..7f855add06 100644
--- a/source3/libads/kerberos.c
+++ b/source3/libads/kerberos.c
@@ -70,6 +70,7 @@ int kerberos_kinit_password(const char *principal,
krb5_principal me;
krb5_creds my_creds;
+ initialize_krb5_error_table();
if ((code = krb5_init_context(&ctx)))
return code;
@@ -155,6 +156,7 @@ int ads_kdestroy(const char *cc_name)
krb5_context ctx = NULL;
krb5_ccache cc = NULL;
+ initialize_krb5_error_table();
if ((code = krb5_init_context (&ctx))) {
DEBUG(3, ("ads_kdestroy: kdb5_init_context failed: %s\n",
error_message(code)));