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