s3: Lift the server_messaging_context from notify_job_status
[Samba/gbeck.git] / source3 / winbindd / winbindd_domain.c
blobd82db19adc570742509b9bc4b8c3515f52c5478f
1 /*
2 Unix SMB/CIFS implementation.
4 Winbind domain child functions
6 Copyright (C) Stefan Metzmacher 2007
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.
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.
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/>.
22 #include "includes.h"
23 #include "winbindd.h"
25 #undef DBGC_CLASS
26 #define DBGC_CLASS DBGC_WINBIND
28 static const struct winbindd_child_dispatch_table domain_dispatch_table[] = {
30 .name = "PING",
31 .struct_cmd = WINBINDD_PING,
32 .struct_fn = winbindd_dual_ping,
33 },{
34 .name = "LIST_TRUSTDOM",
35 .struct_cmd = WINBINDD_LIST_TRUSTDOM,
36 .struct_fn = winbindd_dual_list_trusted_domains,
37 },{
38 .name = "INIT_CONNECTION",
39 .struct_cmd = WINBINDD_INIT_CONNECTION,
40 .struct_fn = winbindd_dual_init_connection,
41 },{
42 .name = "SHOW_SEQUENCE",
43 .struct_cmd = WINBINDD_SHOW_SEQUENCE,
44 .struct_fn = winbindd_dual_show_sequence,
45 },{
46 .name = "PAM_AUTH",
47 .struct_cmd = WINBINDD_PAM_AUTH,
48 .struct_fn = winbindd_dual_pam_auth,
49 },{
50 .name = "AUTH_CRAP",
51 .struct_cmd = WINBINDD_PAM_AUTH_CRAP,
52 .struct_fn = winbindd_dual_pam_auth_crap,
53 },{
54 .name = "PAM_LOGOFF",
55 .struct_cmd = WINBINDD_PAM_LOGOFF,
56 .struct_fn = winbindd_dual_pam_logoff,
57 },{
58 .name = "CHNG_PSWD_AUTH_CRAP",
59 .struct_cmd = WINBINDD_PAM_CHNG_PSWD_AUTH_CRAP,
60 .struct_fn = winbindd_dual_pam_chng_pswd_auth_crap,
61 },{
62 .name = "PAM_CHAUTHTOK",
63 .struct_cmd = WINBINDD_PAM_CHAUTHTOK,
64 .struct_fn = winbindd_dual_pam_chauthtok,
65 },{
66 .name = "NDRCMD",
67 .struct_cmd = WINBINDD_DUAL_NDRCMD,
68 .struct_fn = winbindd_dual_ndrcmd,
69 },{
70 .name = NULL,
74 void setup_domain_child(struct winbindd_domain *domain)
76 setup_child(domain, &domain->child, domain_dispatch_table,
77 "log.wb", domain->name);