diff options
author | Volker Lendecke <vlendec@samba.org> | 2005-11-07 14:16:50 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:05:20 -0500 |
commit | f99b429446595944991bd2b3e9f4e6a9dd2c13cb (patch) | |
tree | 4b67a4c1d53d056e3a873f72870f35b9baee6871 | |
parent | 07084805678a90389d672b27c382786d81d53b67 (diff) | |
download | samba-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)
-rw-r--r-- | source3/libads/kerberos.c | 2 | ||||
-rw-r--r-- | source3/libads/krb5_setpw.c | 2 | ||||
-rw-r--r-- | source3/libsmb/clikrb5.c | 1 | ||||
-rw-r--r-- | source3/utils/net_lookup.c | 1 |
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", |