From 1598d6523bbb05028f3c8ab14f6a4e68ce698901 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Wed, 21 Jul 2010 10:38:00 +0200 Subject: Do not treat missing HBAC rules as an error --- src/providers/ipa/ipa_access.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/providers/ipa') 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; } -- cgit