summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-11-12 14:39:27 +0100
committerJakub Hrozek <jhrozek@redhat.com>2015-10-11 11:13:32 +0200
commitf8dae171cffe904df0695cb0638511adb8c5c3c6 (patch)
tree8f4312242bd41eb71574710b9c3cae763d3739c8
parent637813b1ce506d4396832032f0cce6800ab5753d (diff)
downloadsssd-srvbackport.tar.gz
sssd-srvbackport.tar.xz
sssd-srvbackport.zip
SYSDB: Skip malformed netgroup attribute.srvbackport
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 3558c3594..829f67642 100644
--- a/src/db/sysdb_search.c
+++ b/src/db/sysdb_search.c
@@ -738,7 +738,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(1,
+ ("Cannot split netgroup triple [%s], "
+ "this attribute will be skipped \n",
+ triple_str));
+ continue;
}
c++;