Blame SOURCES/0001-SYSDB-Skip-malformed-netgroup-attribute.patch
|
|
2fc102 |
From d0eeff900d721a0e147b3513d075dbb64b002dc1 Mon Sep 17 00:00:00 2001
|
|
|
2fc102 |
From: Lukas Slebodnik <lslebodn@redhat.com>
|
|
|
2fc102 |
Date: Tue, 12 Nov 2013 14:39:27 +0100
|
|
|
2fc102 |
Subject: [PATCH 1/6] SYSDB: Skip malformed netgroup attribute.
|
|
|
2fc102 |
|
|
|
2fc102 |
It was not easy find out why netgroup could not be covert into result entries.
|
|
|
2fc102 |
Problem was that nisNetgroupTriple contained unexpected string "(,user01)"
|
|
|
2fc102 |
This patch will ignore only malformed attribute and processing of netgroup
|
|
|
2fc102 |
will not fail.
|
|
|
2fc102 |
|
|
|
2fc102 |
Resolves:
|
|
|
2fc102 |
https://fedorahosted.org/sssd/ticket/2137
|
|
|
2fc102 |
---
|
|
|
2fc102 |
src/db/sysdb_search.c | 6 +++++-
|
|
|
2fc102 |
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
2fc102 |
|
|
|
2fc102 |
diff --git a/src/db/sysdb_search.c b/src/db/sysdb_search.c
|
|
|
2fc102 |
index 8dfaf1f2ada22db5e70ebe18bee1ee299e4767dd..d15fc73ce2272bff53650ae9dd0dbdad99a849e6 100644
|
|
|
2fc102 |
--- a/src/db/sysdb_search.c
|
|
|
2fc102 |
+++ b/src/db/sysdb_search.c
|
|
|
2fc102 |
@@ -728,7 +728,11 @@ errno_t sysdb_netgr_to_entries(TALLOC_CTX *mem_ctx,
|
|
|
2fc102 |
&tmp_entry[c]->value.triple.username,
|
|
|
2fc102 |
&tmp_entry[c]->value.triple.domainname);
|
|
|
2fc102 |
if (ret != EOK) {
|
|
|
2fc102 |
- goto done;
|
|
|
2fc102 |
+ DEBUG(SSSDBG_IMPORTANT_INFO,
|
|
|
2fc102 |
+ ("Cannot split netgroup triple [%s], "
|
|
|
2fc102 |
+ "this attribute will be skipped \n",
|
|
|
2fc102 |
+ triple_str));
|
|
|
2fc102 |
+ continue;
|
|
|
2fc102 |
}
|
|
|
2fc102 |
|
|
|
2fc102 |
c++;
|
|
|
2fc102 |
--
|
|
|
2fc102 |
1.8.4.2
|
|
|
2fc102 |
|