[SSSD] [PATCH] USe sysdb_serch_service() in sss_cacahe

Pavel Březina pbrezina at redhat.com
Thu Jan 10 10:22:39 UTC 2013


On 01/08/2013 05:10 AM, Simo Sorce wrote:
> In the patches that fix the sdap_reinit functions I introduced a new
> service search helper sysdb_search_services()
>
> Use this helper in sss_cache instead of a home grown one with poor-man
> filter parser.
>
> Simo.

Hi,
I don't think these functions are identical.

-    if (strcmp(sub_filter, "*") == 0) {
-        /* All services */
-        ret = sysdb_enumservent(mem_ctx, sysdb, &res);
-    } else {
-        /* Get service by name */
-        ret = sysdb_getservbyname(mem_ctx, sysdb, sub_filter,
-                                  NULL, &res);
-    }

The sub_filter is not a valid ldb filter, but '*' or name.




More information about the sssd-devel mailing list