summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2016-10-10 17:07:12 +0200
committerKarolin Seeger <kseeger@samba.org>2016-10-20 10:43:28 +0200
commitd4e019f42fa24cb9efc2d1463b5dbcaf7e752249 (patch)
tree66a49a7b6b866f7ac36c8dcd20899cc4fa003943
parent532fd56b3f16e72ea0f088f4cdfc03d23aa43435 (diff)
downloadsamba-d4e019f42fa24cb9efc2d1463b5dbcaf7e752249.tar.gz
s3:libads: don't use MEMORY:ads_sasl_gssapi_do_bind nor set "KRB5CCNAME"
Most callers just set "KRB5CCNAME", but leave ads->auth.ccache_name = NULL. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12369 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Günther Deschner <gd@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org> (cherry picked from commit 890b1bbdb8e965c4ff6e35214acc96ffbbff5dfd)
-rw-r--r--source3/libads/sasl.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/source3/libads/sasl.c b/source3/libads/sasl.c
index 85a2eb00e98..4e4486f20bf 100644
--- a/source3/libads/sasl.c
+++ b/source3/libads/sasl.c
@@ -1027,7 +1027,6 @@ static ADS_STATUS ads_sasl_gssapi_bind(ADS_STRUCT *ads)
{
ADS_STATUS status;
struct ads_service_principal p;
- const char *ccache_name = "MEMORY:ads_sasl_gssapi_do_bind";
status = ads_generate_service_principal(ads, &p);
if (!ADS_ERR_OK(status)) {
@@ -1046,10 +1045,6 @@ static ADS_STATUS ads_sasl_gssapi_bind(ADS_STRUCT *ads)
"calling kinit\n", ads_errstr(status)));
}
- if (ads->auth.ccache_name != NULL) {
- ccache_name = ads->auth.ccache_name;
- }
- setenv(KRB5_ENV_CCNAME, ccache_name, 1);
status = ADS_ERROR_KRB5(ads_kinit_password(ads));
if (ADS_ERR_OK(status)) {