remove winbindd_dual_show_sequence()...
[metze/samba/wb-ndr.git] / source / winbindd / winbindd_domain.c
1 /*
2    Unix SMB/CIFS implementation.
3
4    Winbind domain child functions
5
6    Copyright (C) Stefan Metzmacher 2007
7
8    This program is free software; you can redistribute it and/or modify
9    it under the terms of the GNU General Public License as published by
10    the Free Software Foundation; either version 3 of the License, or
11    (at your option) any later version.
12
13    This program is distributed in the hope that it will be useful,
14    but WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16    GNU General Public License for more details.
17
18    You should have received a copy of the GNU General Public License
19    along with this program.  If not, see <http://www.gnu.org/licenses/>.
20 */
21
22 #include "includes.h"
23 #include "winbindd.h"
24
25 #undef DBGC_CLASS
26 #define DBGC_CLASS DBGC_WINBIND
27
28 static const struct winbindd_child_dispatch_table domain_dispatch_table[];
29
30 void setup_domain_child(struct winbindd_domain *domain,
31                         struct winbindd_child *child)
32 {
33         setup_child(child, domain_dispatch_table,
34                     "log.wb", domain->name);
35
36         child->domain = domain;
37 }
38
39 static const struct winbindd_child_dispatch_table domain_dispatch_table[] = {
40         {
41                 .name           = "LOOKUPSID",
42                 .struct_cmd     = WINBINDD_LOOKUPSID,
43                 .struct_fn      = winbindd_dual_lookupsid,
44         },{
45                 .name           = "LOOKUPNAME",
46                 .struct_cmd     = WINBINDD_LOOKUPNAME,
47                 .struct_fn      = winbindd_dual_lookupname,
48         },{
49                 .name           = "LOOKUPRIDS",
50                 .struct_cmd     = WINBINDD_LOOKUPRIDS,
51                 .struct_fn      = winbindd_dual_lookuprids,
52         },{
53                 .name           = "LIST_TRUSTDOM",
54                 .struct_cmd     = WINBINDD_LIST_TRUSTDOM,
55                 .struct_fn      = winbindd_dual_list_trusted_domains,
56         },{
57                 .name           = "PAM_AUTH",
58                 .struct_cmd     = WINBINDD_PAM_AUTH,
59                 .struct_fn      = winbindd_dual_pam_auth,
60         },{
61                 .name           = "AUTH_CRAP",
62                 .struct_cmd     = WINBINDD_PAM_AUTH_CRAP,
63                 .struct_fn      = winbindd_dual_pam_auth_crap,
64         },{
65                 .name           = "PAM_LOGOFF",
66                 .struct_cmd     = WINBINDD_PAM_LOGOFF,
67                 .struct_fn      = winbindd_dual_pam_logoff,
68         },{
69                 .name           = "CHNG_PSWD_AUTH_CRAP",
70                 .struct_cmd     = WINBINDD_PAM_CHNG_PSWD_AUTH_CRAP,
71                 .struct_fn      = winbindd_dual_pam_chng_pswd_auth_crap,
72         },{
73                 .name           = "PAM_CHAUTHTOK",
74                 .struct_cmd     = WINBINDD_PAM_CHAUTHTOK,
75                 .struct_fn      = winbindd_dual_pam_chauthtok,
76         },{
77                 .name           = "CHECK_MACHACC",
78                 .struct_cmd     = WINBINDD_CHECK_MACHACC,
79                 .struct_fn      = winbindd_dual_check_machine_acct,
80         },{
81                 .name           = "DUAL_USERINFO",
82                 .struct_cmd     = WINBINDD_DUAL_USERINFO,
83                 .struct_fn      = winbindd_dual_userinfo,
84         },{
85                 .name           = "GETUSERDOMGROUPS",
86                 .struct_cmd     = WINBINDD_GETUSERDOMGROUPS,
87                 .struct_fn      = winbindd_dual_getuserdomgroups,
88         },{
89                 .name           = "GETSIDALIASES",
90                 .struct_cmd     = WINBINDD_DUAL_GETSIDALIASES,
91                 .struct_fn      = winbindd_dual_getsidaliases,
92         },{
93                 .name           = "CCACHE_NTLM_AUTH",
94                 .struct_cmd     = WINBINDD_CCACHE_NTLMAUTH,
95                 .struct_fn      = winbindd_dual_ccache_ntlm_auth,
96         },{
97                 .name           = "PING",
98                 .struct_cmd     = WINBINDD_PING,
99                 .struct_fn      = winbindd_dual_ping,
100                 .ndr_opnum      = NDR_WINBIND_PING,
101                 .ndr_fn         = winbindd_ndr_child_ping,
102         },{
103                 .name           = "NDR_WINBIND_GET_DOMAIN_INFO",
104                 .ndr_opnum      = NDR_WINBIND_GET_DOMAIN_INFO,
105                 .ndr_fn         = winbindd_ndr_child_get_domain_info,
106         },{
107                 .name           = "NDR_WINBIND_GET_DC_INFO",
108                 .ndr_opnum      = NDR_WINBIND_GET_DC_INFO,
109                 .ndr_fn         = winbindd_ndr_domain_child_get_dc_info,
110         },{
111                 .name           = NULL,
112         }
113 };