Blame SOURCES/0001-tools-disable-SSSD-s-locator-plugin.patch

c3d619
From 50d580c58dab5928cadfc6ca82aedccee58eaced Mon Sep 17 00:00:00 2001
c3d619
From: Sumit Bose <sbose@redhat.com>
c3d619
Date: Fri, 5 Jun 2020 17:28:28 +0200
c3d619
Subject: [PATCH] tools: disable SSSD's locator plugin
c3d619
c3d619
MIT's libkrb5 checks available locator plugins first before checking the
c3d619
config file. This might cause issues when the locator plugin returns a
c3d619
different DC than the one used for the LDAP connection if some data must
c3d619
be replicated.
c3d619
c3d619
This patch sets the SSSD_KRB5_LOCATOR_DISABLE environment variable to
c3d619
'true' to disable SSSD's locator plugin for adcli.
c3d619
c3d619
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1762633
c3d619
---
c3d619
 tools/tools.c | 2 ++
c3d619
 1 file changed, 2 insertions(+)
c3d619
c3d619
diff --git a/tools/tools.c b/tools/tools.c
c3d619
index 9d422f2..1b6d879 100644
c3d619
--- a/tools/tools.c
c3d619
+++ b/tools/tools.c
c3d619
@@ -296,6 +296,7 @@ cleanup_krb5_conf_directory (void)
c3d619
 	}
c3d619
 
c3d619
 	unsetenv ("KRB5_CONFIG");
c3d619
+	unsetenv ("SSSD_KRB5_LOCATOR_DISABLE");
c3d619
 }
c3d619
 
c3d619
 static void
c3d619
@@ -394,6 +395,7 @@ setup_krb5_conf_directory (adcli_conn *conn)
c3d619
 		adcli_krb5_conf_filename = filename;
c3d619
 		adcli_krb5_d_directory = snippets;
c3d619
 		setenv ("KRB5_CONFIG", adcli_krb5_conf_filename, 1);
c3d619
+		setenv ("SSSD_KRB5_LOCATOR_DISABLE", "true", 1);
c3d619
 
c3d619
 	} else {
c3d619
 		free (filename);
c3d619
-- 
c3d619
2.26.2
c3d619