diff options
author | Sumit Bose <sbose@redhat.com> | 2010-07-21 10:38:00 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-07-23 10:14:29 -0400 |
commit | 1598d6523bbb05028f3c8ab14f6a4e68ce698901 (patch) | |
tree | 81fa27f27c763e0d93d22775215bdf9e419522d4 /src/providers | |
parent | 0e4e37dc0f64ad2f576491fd3d5407b513e0ece1 (diff) | |
download | sssd-1598d6523bbb05028f3c8ab14f6a4e68ce698901.tar.gz sssd-1598d6523bbb05028f3c8ab14f6a4e68ce698901.tar.bz2 sssd-1598d6523bbb05028f3c8ab14f6a4e68ce698901.zip |
Do not treat missing HBAC rules as an error
Diffstat (limited to 'src/providers')
-rw-r--r-- | src/providers/ipa/ipa_access.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/providers/ipa/ipa_access.c b/src/providers/ipa/ipa_access.c index 7e2bf8df..42731f24 100644 --- a/src/providers/ipa/ipa_access.c +++ b/src/providers/ipa/ipa_access.c @@ -145,6 +145,11 @@ static errno_t hbac_sysdb_data_recv(TALLOC_CTX *mem_ctx, ret = sysdb_search_custom(mem_ctx, sysdb, domain, filter, subtree_name, search_attrs, count, &msgs); if (ret != EOK) { + if (ret == ENOENT) { + *count = 0; + *reply_attrs = NULL; + return EOK; + } DEBUG(1, ("sysdb_search_custom failed.\n")); return ret; } |