From a5b55bdfcda8bfce8cb2ced981773998093d7857 Mon Sep 17 00:00:00 2001 From: Pavel Reichl Date: Thu, 30 Oct 2014 11:54:54 +0000 Subject: SYSDB: sysdb_idmap_get_mappings returns ENOENT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit sysdb_idmap_get_mappings returns ENOENT if no results were found. Part od solution for: https://fedorahosted.org/sssd/ticket/1991 Reviewed-by: Lukáš Slebodník --- src/providers/ldap/sdap_idmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/providers') diff --git a/src/providers/ldap/sdap_idmap.c b/src/providers/ldap/sdap_idmap.c index 382603554..0a82e61f7 100644 --- a/src/providers/ldap/sdap_idmap.c +++ b/src/providers/ldap/sdap_idmap.c @@ -230,7 +230,7 @@ sdap_idmap_init(TALLOC_CTX *mem_ctx, goto done; } - if (ret == EOK && res->count > 0) { + if (ret == EOK) { DEBUG(SSSDBG_CONF_SETTINGS, "Initializing [%d] domains for ID-mapping\n", res->count); -- cgit