s4:rpc_server: only pass dcesrv_auth to auth_state.session_key_fn()
[samba.git] / source4 / rpc_server / wscript_build
1 #!/usr/bin/env python
2
3 bld.SAMBA_SUBSYSTEM('DCERPC_SHARE',
4         source='common/share_info.c',
5         autoproto='common/share.h',
6         deps='ldb share',
7         enabled=bld.CONFIG_SET('WITH_NTVFS_FILESERVER'),
8         )
9
10 bld.SAMBA_SUBSYSTEM('DCERPC_SID_HELPER',
11         source='common/sid_helper.c',
12         autoproto='common/sid_helper.h',
13         deps='ldb',
14         enabled=bld.AD_DC_BUILD_IS_ENABLED(),
15         )
16
17 bld.SAMBA_SUBSYSTEM('DCERPC_COMMON',
18         source='common/server_info.c common/forward.c common/loadparm.c',
19         autoproto='common/proto.h',
20         deps='ldb DCERPC_SHARE DCERPC_SID_HELPER',
21         enabled=bld.AD_DC_BUILD_IS_ENABLED()
22         )
23
24 bld.SAMBA_LIBRARY('dcerpc_server',
25         source='dcerpc_server.c dcesrv_auth.c dcesrv_mgmt.c handles.c common/reply.c',
26         pc_files='dcerpc_server.pc',
27         deps='LIBCLI_AUTH ndr samba_server_gensec service auth',
28         public_deps='dcerpc',
29         autoproto='dcerpc_server_proto.h',
30         public_headers='dcerpc_server.h',
31         vnum='0.0.1',
32         enabled=bld.AD_DC_BUILD_IS_ENABLED()
33         )
34
35 bld.SAMBA_MODULE('dcerpc_rpcecho',
36         source='echo/rpc_echo.c',
37         subsystem='dcerpc_server',
38         init_function='dcerpc_server_rpcecho_init',
39         deps='ndr-standard events'
40         )
41
42
43 bld.SAMBA_MODULE('dcerpc_epmapper',
44         source='epmapper/rpc_epmapper.c',
45         subsystem='dcerpc_server',
46         init_function='dcerpc_server_epmapper_init',
47         deps='NDR_EPMAPPER'
48         )
49
50
51 bld.SAMBA_MODULE('dcerpc_remote',
52         source='remote/dcesrv_remote.c',
53         subsystem='dcerpc_server',
54         init_function='dcerpc_server_remote_init',
55         deps='LIBCLI_SMB ndr-table'
56         )
57
58
59 bld.SAMBA_MODULE('dcerpc_srvsvc',
60         source='srvsvc/dcesrv_srvsvc.c srvsvc/srvsvc_ntvfs.c',
61         autoproto='srvsvc/proto.h',
62         subsystem='dcerpc_server',
63         init_function='dcerpc_server_srvsvc_init',
64         deps='DCERPC_COMMON NDR_SRVSVC share ntvfs',
65         enabled=bld.CONFIG_SET('WITH_NTVFS_FILESERVER')
66         )
67
68
69 bld.SAMBA_MODULE('dcerpc_wkssvc',
70         source='wkssvc/dcesrv_wkssvc.c',
71         subsystem='dcerpc_server',
72         init_function='dcerpc_server_wkssvc_init',
73         deps='DCERPC_COMMON ndr-standard'
74         )
75
76
77 bld.SAMBA_MODULE('dcerpc_unixinfo',
78         source='unixinfo/dcesrv_unixinfo.c',
79         subsystem='dcerpc_server',
80         init_function='dcerpc_server_unixinfo_init',
81         deps='DCERPC_COMMON samdb NDR_UNIXINFO LIBWBCLIENT_OLD'
82         )
83
84
85 bld.SAMBA_MODULE('dcesrv_samr',
86         source='samr/dcesrv_samr.c samr/samr_password.c',
87         autoproto='samr/proto.h',
88         subsystem='dcerpc_server',
89         init_function='dcerpc_server_samr_init',
90         deps='samdb DCERPC_COMMON ndr-standard auth4_sam'
91         )
92
93
94 bld.SAMBA_MODULE('dcerpc_winreg',
95         source='winreg/rpc_winreg.c',
96         subsystem='dcerpc_server',
97         init_function='dcerpc_server_winreg_init',
98         deps='registry ndr-standard',
99         internal_module=True,
100         enabled=bld.CONFIG_SET('WITH_NTVFS_FILESERVER')
101         )
102
103
104 bld.SAMBA_MODULE('dcerpc_netlogon',
105         source='netlogon/dcerpc_netlogon.c',
106         subsystem='dcerpc_server',
107         init_function='dcerpc_server_netlogon_init',
108         deps='''DCERPC_COMMON RPC_NDR_IRPC COMMON_SCHANNEL ndr-standard auth4_sam samba-hostconfig DSDB_MODULE_HELPERS
109         util_str_escape'''
110         )
111
112
113 bld.SAMBA_MODULE('dcerpc_lsarpc',
114         source='lsa/dcesrv_lsa.c lsa/lsa_init.c lsa/lsa_lookup.c',
115         autoproto='lsa/proto.h',
116         subsystem='dcerpc_server',
117         init_function='dcerpc_server_lsa_init',
118         deps='samdb DCERPC_COMMON ndr-standard LIBCLI_AUTH NDR_DSSETUP com_err samba-security UTIL_LSARPC'
119         )
120
121
122 if bld.CONFIG_SET('HAVE_GNUTLS_3_4_7'):
123         bld.SAMBA_MODULE('dcerpc_backupkey',
124                 source='backupkey/dcesrv_backupkey.c ',
125                 autoproto='backupkey/proto.h',
126                 subsystem='dcerpc_server',
127                 init_function='dcerpc_server_backupkey_init',
128                 deps='samdb DCERPC_COMMON NDR_BACKUPKEY RPC_NDR_BACKUPKEY gnutls',
129                 )
130 else:
131         bld.SAMBA_MODULE('dcerpc_backupkey',
132                 source='backupkey/dcesrv_backupkey_heimdal.c ',
133                 autoproto='backupkey/proto.h',
134                 subsystem='dcerpc_server',
135                 init_function='dcerpc_server_backupkey_init',
136                 deps='samdb DCERPC_COMMON NDR_BACKUPKEY RPC_NDR_BACKUPKEY krb5 hx509 hcrypto gnutls gcrypt DCERPC_COMMON',
137                 )
138
139
140 bld.SAMBA_MODULE('dcerpc_drsuapi',
141         source='drsuapi/dcesrv_drsuapi.c drsuapi/updaterefs.c drsuapi/getncchanges.c drsuapi/addentry.c drsuapi/writespn.c drsuapi/drsutil.c',
142         subsystem='dcerpc_server',
143         init_function='dcerpc_server_drsuapi_init',
144         deps='samdb DCERPC_COMMON NDR_DRSUAPI samba-security'
145         )
146
147
148 bld.SAMBA_MODULE('dcerpc_browser',
149         source='browser/dcesrv_browser.c',
150         subsystem='dcerpc_server',
151         init_function='dcerpc_server_browser_init',
152         deps='DCERPC_COMMON NDR_BROWSER'
153         )
154
155 bld.SAMBA_MODULE('dcerpc_eventlog',
156         source='eventlog/dcesrv_eventlog6.c',
157         subsystem='dcerpc_server',
158         init_function='dcerpc_server_eventlog6_init',
159         deps='DCERPC_COMMON'
160         )
161
162 bld.SAMBA_MODULE('dcerpc_dnsserver',
163     source='dnsserver/dcerpc_dnsserver.c dnsserver/dnsutils.c dnsserver/dnsdata.c dnsserver/dnsdb.c',
164     subsystem='dcerpc_server',
165     init_function='dcerpc_server_dnsserver_init',
166     deps='DCERPC_COMMON dnsserver_common netif'
167     )
168
169
170 bld.SAMBA_MODULE('service_dcerpc',
171         source='service_rpc.c',
172         autoproto='service_rpc.h',
173         subsystem='service',
174         init_function='server_service_rpc_init',
175         internal_module=False,
176         deps='dcerpc_server'
177         )
178
179 if bld.CONFIG_GET('ENABLE_SELFTEST'):
180     bld.SAMBA_BINARY(
181         'test_rpc_dns_server_dnsutils',
182         source='tests/rpc_dns_server_dnsutils_test.c',
183         deps='''
184             dnsserver_common
185             dcerpc_server
186             cmocka
187             talloc
188         ''',
189         install=False,
190         enabled=bld.AD_DC_BUILD_IS_ENABLED()
191     )