summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2005-11-07 14:16:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:20 -0500
commitf99b429446595944991bd2b3e9f4e6a9dd2c13cb (patch)
tree4b67a4c1d53d056e3a873f72870f35b9baee6871 /source3/libads
parent07084805678a90389d672b27c382786d81d53b67 (diff)
downloadsamba-f99b429446595944991bd2b3e9f4e6a9dd2c13cb.tar.gz
samba-f99b429446595944991bd2b3e9f4e6a9dd2c13cb.tar.bz2
samba-f99b429446595944991bd2b3e9f4e6a9dd2c13cb.zip
r11551: Add a few more initialize_krb5_error_table
(This used to be commit d92c83aa42fe64a0e996094d1a983f0279c7c707)
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/kerberos.c2
-rw-r--r--source3/libads/krb5_setpw.c2
2 files changed, 4 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)));