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/>.
26 #define DBGC_CLASS DBGC_WINBIND
28 static const struct winbindd_child_dispatch_table domain_dispatch_table
[];
30 void setup_domain_child(struct winbindd_domain
*domain
,
31 struct winbindd_child
*child
)
33 setup_child(child
, domain_dispatch_table
,
34 "log.wb", domain
->name
);
36 child
->domain
= domain
;
39 static const struct winbindd_child_dispatch_table domain_dispatch_table
[] = {
42 .struct_cmd
= WINBINDD_LOOKUPSID
,
43 .struct_fn
= winbindd_dual_lookupsid
,
46 .struct_cmd
= WINBINDD_LOOKUPNAME
,
47 .struct_fn
= winbindd_dual_lookupname
,
50 .struct_cmd
= WINBINDD_LOOKUPRIDS
,
51 .struct_fn
= winbindd_dual_lookuprids
,
54 .struct_cmd
= WINBINDD_LIST_USERS
,
55 .struct_fn
= winbindd_dual_list_users
,
57 .name
= "LIST_GROUPS",
58 .struct_cmd
= WINBINDD_LIST_GROUPS
,
59 .struct_fn
= winbindd_dual_list_groups
,
61 .name
= "LIST_TRUSTDOM",
62 .struct_cmd
= WINBINDD_LIST_TRUSTDOM
,
63 .struct_fn
= winbindd_dual_list_trusted_domains
,
65 .name
= "INIT_CONNECTION",
66 .struct_cmd
= WINBINDD_INIT_CONNECTION
,
67 .struct_fn
= winbindd_dual_init_connection
,
70 .struct_cmd
= WINBINDD_GETDCNAME
,
71 .struct_fn
= winbindd_dual_getdcname
,
73 .name
= "SHOW_SEQUENCE",
74 .struct_cmd
= WINBINDD_SHOW_SEQUENCE
,
75 .struct_fn
= winbindd_dual_show_sequence
,
78 .struct_cmd
= WINBINDD_PAM_AUTH
,
79 .struct_fn
= winbindd_dual_pam_auth
,
82 .struct_cmd
= WINBINDD_PAM_AUTH_CRAP
,
83 .struct_fn
= winbindd_dual_pam_auth_crap
,
86 .struct_cmd
= WINBINDD_PAM_LOGOFF
,
87 .struct_fn
= winbindd_dual_pam_logoff
,
89 .name
= "CHNG_PSWD_AUTH_CRAP",
90 .struct_cmd
= WINBINDD_PAM_CHNG_PSWD_AUTH_CRAP
,
91 .struct_fn
= winbindd_dual_pam_chng_pswd_auth_crap
,
93 .name
= "PAM_CHAUTHTOK",
94 .struct_cmd
= WINBINDD_PAM_CHAUTHTOK
,
95 .struct_fn
= winbindd_dual_pam_chauthtok
,
97 .name
= "CHECK_MACHACC",
98 .struct_cmd
= WINBINDD_CHECK_MACHACC
,
99 .struct_fn
= winbindd_dual_check_machine_acct
,
101 .name
= "DUAL_USERINFO",
102 .struct_cmd
= WINBINDD_DUAL_USERINFO
,
103 .struct_fn
= winbindd_dual_userinfo
,
105 .name
= "GETUSERDOMGROUPS",
106 .struct_cmd
= WINBINDD_GETUSERDOMGROUPS
,
107 .struct_fn
= winbindd_dual_getuserdomgroups
,
109 .name
= "GETSIDALIASES",
110 .struct_cmd
= WINBINDD_DUAL_GETSIDALIASES
,
111 .struct_fn
= winbindd_dual_getsidaliases
,
113 .name
= "CCACHE_NTLM_AUTH",
114 .struct_cmd
= WINBINDD_CCACHE_NTLMAUTH
,
115 .struct_fn
= winbindd_dual_ccache_ntlm_auth
,