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

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