s3:idmap_tdb: move idmap_tdb_init_hwm up.
[amitay/samba.git] / source3 / winbindd / winbindd_domain.c
index 8c52df3e16a180025b435c8438483c73d8a8cb35..d82db19adc570742509b9bc4b8c3515f52c5478f 100644 (file)
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_WINBIND
 
-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,
-                   "log.wb", domain->name);
-
-       child->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,
-       },{
-               .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,
@@ -69,10 +38,6 @@ static const struct winbindd_child_dispatch_table domain_dispatch_table[] = {
                .name           = "INIT_CONNECTION",
                .struct_cmd     = WINBINDD_INIT_CONNECTION,
                .struct_fn      = winbindd_dual_init_connection,
-       },{
-               .name           = "GETDCNAME",
-               .struct_cmd     = WINBINDD_GETDCNAME,
-               .struct_fn      = winbindd_dual_getdcname,
        },{
                .name           = "SHOW_SEQUENCE",
                .struct_cmd     = WINBINDD_SHOW_SEQUENCE,
@@ -98,30 +63,16 @@ static const struct winbindd_child_dispatch_table domain_dispatch_table[] = {
                .struct_cmd     = WINBINDD_PAM_CHAUTHTOK,
                .struct_fn      = winbindd_dual_pam_chauthtok,
        },{
-               .name           = "CHECK_MACHACC",
-               .struct_cmd     = WINBINDD_CHECK_MACHACC,
-               .struct_fn      = winbindd_dual_check_machine_acct,
-       },{
-               .name           = "DUAL_USERINFO",
-               .struct_cmd     = WINBINDD_DUAL_USERINFO,
-               .struct_fn      = winbindd_dual_userinfo,
-       },{
-               .name           = "GETUSERDOMGROUPS",
-               .struct_cmd     = WINBINDD_GETUSERDOMGROUPS,
-               .struct_fn      = winbindd_dual_getuserdomgroups,
-       },{
-               .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,
        }
 };
+
+void setup_domain_child(struct winbindd_domain *domain)
+{
+       setup_child(domain, &domain->child, domain_dispatch_table,
+                   "log.wb", domain->name);
+}