summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-07-21 10:38:00 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-07-23 10:14:29 -0400
commit1598d6523bbb05028f3c8ab14f6a4e68ce698901 (patch)
tree81fa27f27c763e0d93d22775215bdf9e419522d4
parent0e4e37dc0f64ad2f576491fd3d5407b513e0ece1 (diff)
downloadsssd-1598d6523bbb05028f3c8ab14f6a4e68ce698901.tar.gz
sssd-1598d6523bbb05028f3c8ab14f6a4e68ce698901.tar.xz
sssd-1598d6523bbb05028f3c8ab14f6a4e68ce698901.zip
Do not treat missing HBAC rules as an error
-rw-r--r--src/providers/ipa/ipa_access.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/providers/ipa/ipa_access.c b/src/providers/ipa/ipa_access.c
index 7e2bf8df3..42731f244 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;
}