mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r11551: Add a few more initialize_krb5_error_table
This commit is contained in:
parent
26e9c1c1fa
commit
d92c83aa42
@ -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)));
|
||||
|
@ -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)));
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user