summaryrefslogtreecommitdiff
path: root/source4/auth
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-04-27 13:57:39 +1000
committerAndrew Bartlett <abartlet@samba.org>2010-04-27 16:41:51 +1000
commit8c6147715371e88c425ff8530f9bd7f44cd4cafb (patch)
tree38f7dd4e1a3573965f663685b77aba0bd69c4c27 /source4/auth
parent8219c4f69c2fd2d1f0f795a5dc28dec6dfeb0079 (diff)
downloadsamba-8c6147715371e88c425ff8530f9bd7f44cd4cafb.tar.gz
samba-8c6147715371e88c425ff8530f9bd7f44cd4cafb.tar.bz2
samba-8c6147715371e88c425ff8530f9bd7f44cd4cafb.zip
s4:kerberos Give a better error message than "Could not allocate memory"
Andrew Bartlett
Diffstat (limited to 'source4/auth')
-rw-r--r--source4/auth/credentials/credentials_krb5.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/auth/credentials/credentials_krb5.c b/source4/auth/credentials/credentials_krb5.c
index 1e0db3cb36..d76073093b 100644
--- a/source4/auth/credentials/credentials_krb5.c
+++ b/source4/auth/credentials/credentials_krb5.c
@@ -423,7 +423,7 @@ _PUBLIC_ int cli_credentials_get_client_gss_creds(struct cli_credentials *cred,
} else {
ret = EINVAL;
}
- (*error_string) = error_message(ENOMEM);
+ (*error_string) = talloc_asprintf(cred, "gss_krb5_import_cred failed: %s", error_message(ret));
return ret;
}
@@ -455,7 +455,7 @@ _PUBLIC_ int cli_credentials_get_client_gss_creds(struct cli_credentials *cred,
} else {
ret = EINVAL;
}
- (*error_string) = error_message(ENOMEM);
+ (*error_string) = talloc_asprintf(cred, "gss_krb5_set_allowable_enctypes failed: %s", error_message(ret));
return ret;
}
}
@@ -471,7 +471,7 @@ _PUBLIC_ int cli_credentials_get_client_gss_creds(struct cli_credentials *cred,
} else {
ret = EINVAL;
}
- (*error_string) = error_message(ENOMEM);
+ (*error_string) = talloc_asprintf(cred, "gss_set_cred_option failed: %s", error_message(ret));
return ret;
}