diff options
| author | Lukas Slebodnik <lslebodn@redhat.com> | 2013-11-12 14:39:27 +0100 |
|---|---|---|
| committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-11-15 20:27:46 +0100 |
| commit | 9c83da3f27cb4473bd6bbc0167b471ed88acd842 (patch) | |
| tree | 579d392e8f6e64dcd2bbe043160962dfe60ea456 /src | |
| parent | e2ac9be4f293b96f3c8992f1171e44bc1da5cfca (diff) | |
| download | sssd-9c83da3f27cb4473bd6bbc0167b471ed88acd842.tar.gz sssd-9c83da3f27cb4473bd6bbc0167b471ed88acd842.tar.xz sssd-9c83da3f27cb4473bd6bbc0167b471ed88acd842.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
Diffstat (limited to 'src')
| -rw-r--r-- | src/db/sysdb_search.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/db/sysdb_search.c b/src/db/sysdb_search.c index 99506614..f2599a18 100644 --- a/src/db/sysdb_search.c +++ b/src/db/sysdb_search.c @@ -720,7 +720,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++; |
