summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/libads/kerberos.c2
-rw-r--r--source3/libads/krb5_setpw.c2
-rw-r--r--source3/libsmb/clikrb5.c1
-rw-r--r--source3/utils/net_lookup.c1
4 files changed, 6 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)));
diff --git a/source3/libads/krb5_setpw.c b/source3/libads/krb5_setpw.c
index 5488c5908f..31d0a02cad 100644
--- a/source3/libads/krb5_setpw.c
+++ b/source3/libads/krb5_setpw.c
@@ -472,6 +472,7 @@ ADS_STATUS ads_krb5_set_password(const char *kdc_host, const char *princ,
ZERO_STRUCT(creds);
+ initialize_krb5_error_table();
ret = krb5_init_context(&context);
if (ret) {
DEBUG(1,("Failed to init krb5 context (%s)\n", error_message(ret)));
@@ -604,6 +605,7 @@ static ADS_STATUS ads_krb5_chg_password(const char *kdc_host,
krb5_creds creds;
char *chpw_princ = NULL, *password;
+ initialize_krb5_error_table();
ret = krb5_init_context(&context);
if (ret) {
DEBUG(1,("Failed to init krb5 context (%s)\n", error_message(ret)));
diff --git a/source3/libsmb/clikrb5.c b/source3/libsmb/clikrb5.c
index e87ec32197..67e9f539ad 100644
--- a/source3/libsmb/clikrb5.c
+++ b/source3/libsmb/clikrb5.c
@@ -542,6 +542,7 @@ int cli_krb5_get_ticket(const char *principal, time_t time_offset,
ENCTYPE_DES_CBC_CRC,
ENCTYPE_NULL};
+ initialize_krb5_error_table();
retval = krb5_init_context(&context);
if (retval) {
DEBUG(1,("cli_krb5_get_ticket: krb5_init_context failed (%s)\n",
diff --git a/source3/utils/net_lookup.c b/source3/utils/net_lookup.c
index 7f79b6d4f1..3a6781f762 100644
--- a/source3/utils/net_lookup.c
+++ b/source3/utils/net_lookup.c
@@ -186,6 +186,7 @@ static int net_lookup_kdc(int argc, const char **argv)
krb5_data realm;
char **realms;
+ initialize_krb5_error_table();
rc = krb5_init_context(&ctx);
if (rc) {
DEBUG(1,("krb5_init_context failed (%s)\n",