s3:winbind: Convert WINBINDD_LIST_GROUPS to the new API
[sfrench/samba-autobuild/.git] / source3 / winbindd / winbindd_domain.c
index 4d10f49ca217b8ee4bff3ddad98175feec0e8b0f..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,14 +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_GROUPS",
-               .struct_cmd     = WINBINDD_LIST_GROUPS,
-               .struct_fn      = winbindd_dual_list_groups,
        },{
                .name           = "LIST_TRUSTDOM",
                .struct_cmd     = WINBINDD_LIST_TRUSTDOM,
@@ -105,10 +101,18 @@ static const struct winbindd_child_dispatch_table domain_dispatch_table[] = {
                .name           = "GETSIDALIASES",
                .struct_cmd     = WINBINDD_DUAL_GETSIDALIASES,
                .struct_fn      = winbindd_dual_getsidaliases,
+       },{
+               .name           = "GETSIDALIASES",
+               .struct_cmd     = WINBINDD_GETSIDALIASES,
+               .struct_fn      = winbindd_dual_getsidaliases,
        },{
                .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,
        }