|
|
bb7cd1 |
From 522dffca552146c0af74325b6ceab0ca950bbc1a Mon Sep 17 00:00:00 2001
|
|
|
bb7cd1 |
From: Justin Stephenson <jstephen@redhat.com>
|
|
|
bb7cd1 |
Date: Tue, 25 Apr 2017 13:02:10 -0400
|
|
|
bb7cd1 |
Subject: [PATCH 113/118] IPA: Improve s2n debug message for missing
|
|
|
bb7cd1 |
ipaNTSecurityIdentifier
|
|
|
bb7cd1 |
MIME-Version: 1.0
|
|
|
bb7cd1 |
Content-Type: text/plain; charset=UTF-8
|
|
|
bb7cd1 |
Content-Transfer-Encoding: 8bit
|
|
|
bb7cd1 |
|
|
|
bb7cd1 |
This patch improves the log message to be more information for
|
|
|
bb7cd1 |
the SSSD user troubleshooting issues.
|
|
|
bb7cd1 |
|
|
|
bb7cd1 |
If the IDM POSIX group used for AD trust HBAC/SUDO operation is missing
|
|
|
bb7cd1 |
the ipaNTSecurityIdentifier it can cause client s2n operations failures
|
|
|
bb7cd1 |
resolving the group which resulted in the inability to login for the AD
|
|
|
bb7cd1 |
user.
|
|
|
bb7cd1 |
|
|
|
bb7cd1 |
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
|
|
|
bb7cd1 |
(cherry picked from commit 0c5f463e9629ac08d647c70cffb30bccdd57ae96)
|
|
|
bb7cd1 |
---
|
|
|
bb7cd1 |
src/providers/ipa/ipa_s2n_exop.c | 8 +++++++-
|
|
|
bb7cd1 |
1 file changed, 7 insertions(+), 1 deletion(-)
|
|
|
bb7cd1 |
|
|
|
bb7cd1 |
diff --git a/src/providers/ipa/ipa_s2n_exop.c b/src/providers/ipa/ipa_s2n_exop.c
|
|
|
bb7cd1 |
index 55ec904ca3188c7cf10ac41972e9ecf94ebf44bb..f5f4401f86615dc7f81f844e1096ad43e965c384 100644
|
|
|
bb7cd1 |
--- a/src/providers/ipa/ipa_s2n_exop.c
|
|
|
bb7cd1 |
+++ b/src/providers/ipa/ipa_s2n_exop.c
|
|
|
bb7cd1 |
@@ -2580,7 +2580,13 @@ static errno_t ipa_s2n_save_objects(struct sss_domain_info *dom,
|
|
|
bb7cd1 |
ret = sysdb_attrs_get_string(attrs->sysdb_attrs, SYSDB_SID_STR, &sid_str);
|
|
|
bb7cd1 |
if (ret != EOK) {
|
|
|
bb7cd1 |
DEBUG(SSSDBG_CRIT_FAILURE,
|
|
|
bb7cd1 |
- "Cannot find SID of object with override.\n");
|
|
|
bb7cd1 |
+ "Cannot find SID of object.\n");
|
|
|
bb7cd1 |
+ if (name != NULL) {
|
|
|
bb7cd1 |
+ DEBUG(SSSDBG_CRIT_FAILURE,
|
|
|
bb7cd1 |
+ "Object [%s] has no SID, please check the "
|
|
|
bb7cd1 |
+ "ipaNTSecurityIdentifier attribute on the server-side.\n",
|
|
|
bb7cd1 |
+ name);
|
|
|
bb7cd1 |
+ }
|
|
|
bb7cd1 |
goto done;
|
|
|
bb7cd1 |
}
|
|
|
bb7cd1 |
|
|
|
bb7cd1 |
--
|
|
|
bb7cd1 |
2.9.3
|
|
|
bb7cd1 |
|