summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-11-12 14:39:27 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-11-15 20:33:33 +0100
commit1914ad0701e58706ab277c822b5f057e34c00011 (patch)
tree261c9079f6611024f993d9716dc5a3e8c55d6b51
parent6f9b5e7ebfe037795afbae0c5b25a6337c94c4c6 (diff)
downloadsssd-1914ad0701e58706ab277c822b5f057e34c00011.tar.gz
sssd-1914ad0701e58706ab277c822b5f057e34c00011.tar.xz
sssd-1914ad0701e58706ab277c822b5f057e34c00011.zip
SYSDB: Skip malformed netgroup attribute.
It was not easy find out why netgroup could not be covert into result entries. Problem was that nisNetgroupTriple contained unexpected string "(,user01)" This patch will ignore only malformed attribute and processing of netgroup will not fail. Resolves: https://fedorahosted.org/sssd/ticket/2137
-rw-r--r--src/db/sysdb_search.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/db/sysdb_search.c b/src/db/sysdb_search.c
index 8dfaf1f2a..d15fc73ce 100644
--- a/src/db/sysdb_search.c
+++ b/src/db/sysdb_search.c
@@ -728,7 +728,11 @@ errno_t sysdb_netgr_to_entries(TALLOC_CTX *mem_ctx,
&tmp_entry[c]->value.triple.username,
&tmp_entry[c]->value.triple.domainname);
if (ret != EOK) {
- goto done;
+ DEBUG(SSSDBG_IMPORTANT_INFO,
+ ("Cannot split netgroup triple [%s], "
+ "this attribute will be skipped \n",
+ triple_str));
+ continue;
}
c++;