s3:winbind: Convert WINBINDD_LIST_GROUPS to the new API
[sfrench/samba-autobuild/.git] / source3 / winbindd / winbindd_domain.c
index 1fc3ce7304dc84c3395814caf114ead5b5d43ed3..107c83ac80866082f5f0a2ab9672878f3e9cbba7 100644 (file)
@@ -30,7 +30,7 @@ static const struct winbindd_child_dispatch_table domain_dispatch_table[];
 void setup_domain_child(struct winbindd_domain *domain,
                        struct winbindd_child *child)
 {
-       setup_child(child, domain_dispatch_table,
+       setup_child(domain, child, domain_dispatch_table,
                    "log.wb", domain->name);
 
        child->domain = domain;
@@ -38,6 +38,10 @@ void setup_domain_child(struct winbindd_domain *domain,
 
 static const struct winbindd_child_dispatch_table domain_dispatch_table[] = {
        {
+               .name           = "PING",
+               .struct_cmd     = WINBINDD_PING,
+               .struct_fn      = winbindd_dual_ping,
+       },{
                .name           = "LOOKUPSID",
                .struct_cmd     = WINBINDD_LOOKUPSID,
                .struct_fn      = winbindd_dual_lookupsid,
@@ -45,18 +49,6 @@ static const struct winbindd_child_dispatch_table domain_dispatch_table[] = {
                .name           = "LOOKUPNAME",
                .struct_cmd     = WINBINDD_LOOKUPNAME,
                .struct_fn      = winbindd_dual_lookupname,
-       },{
-               .name           = "LOOKUPRIDS",
-               .struct_cmd     = WINBINDD_LOOKUPRIDS,
-               .struct_fn      = winbindd_dual_lookuprids,
-       },{
-               .name           = "LIST_USERS",
-               .struct_cmd     = WINBINDD_LIST_USERS,
-               .struct_fn      = winbindd_dual_list_users,
-       },{
-               .name           = "LIST_GROUPS",
-               .struct_cmd     = WINBINDD_LIST_GROUPS,
-               .struct_fn      = winbindd_dual_list_groups,
        },{
                .name           = "LIST_TRUSTDOM",
                .struct_cmd     = WINBINDD_LIST_TRUSTDOM,
@@ -117,6 +109,10 @@ static const struct winbindd_child_dispatch_table domain_dispatch_table[] = {
                .name           = "CCACHE_NTLM_AUTH",
                .struct_cmd     = WINBINDD_CCACHE_NTLMAUTH,
                .struct_fn      = winbindd_dual_ccache_ntlm_auth,
+       },{
+               .name           = "NDRCMD",
+               .struct_cmd     = WINBINDD_DUAL_NDRCMD,
+               .struct_fn      = winbindd_dual_ndrcmd,
        },{
                .name           = NULL,
        }