mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
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)
This commit is contained in:
parent
532fd56b3f
commit
d4e019f42f
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user