1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
|
#!/usr/bin/env python
### RPC_SERVER
bld.SAMBA3_SUBSYSTEM('rpc',
source='',
deps='dcerpc-server-core')
bld.SAMBA_BINARY('samba-dcerpcd',
source='rpc_host.c',
deps='''
samba3core
CMDLINE_S3
dcerpc-binding
npa_tstream
AUTH_COMMON
RPC_SOCK_HELPER
NDR_RPC_HOST
''',
install_path='${SAMBA_LIBEXECDIR}')
bld.SAMBA_LIBRARY('RPC_WORKER',
private_library=True,
source='''
rpc_worker.c
''',
deps='''
smbd_base
CMDLINE_S3
NDR_RPC_HOST
RPC_SERVER
RPC_NCACN_NP
npa_tstream
''')
bld.SAMBA3_BINARY('rpcd_rpcecho',
source='rpcd_rpcecho.c',
deps='''
RPC_WORKER
RPC_RPCECHO
''',
for_selftest=True,
install_path='${SAMBA_LIBEXECDIR}')
bld.SAMBA3_BINARY('rpcd_classic',
source='rpcd_classic.c',
deps='''
CMDLINE_S3
RPC_WORKER
RPC_SERVICE
RPC_SOCK_HELPER
smbd_base
''',
install_path='${SAMBA_LIBEXECDIR}')
bld.SAMBA3_BINARY('rpcd_lsad',
source='rpcd_lsad.c',
deps='''
CMDLINE_S3
RPC_WORKER
RPC_LSARPC
RPC_SAMR
RPC_DSSETUP
RPC_NETLOGON
RPC_SOCK_HELPER
smbd_base
''',
install_path='${SAMBA_LIBEXECDIR}')
bld.SAMBA3_BINARY('rpcd_winreg',
source='rpcd_winreg.c',
deps='''
CMDLINE_S3
RPC_WORKER
RPC_WINREG
smbd_base
''',
install_path='${SAMBA_LIBEXECDIR}')
bld.SAMBA3_BINARY('rpcd_spoolss',
source='rpcd_spoolss.c',
deps='''
CMDLINE_S3
RPC_WORKER
RPC_SPOOLSS
smbd_base
''',
install_path='${SAMBA_LIBEXECDIR}')
bld.SAMBA3_BINARY('rpcd_epmapper',
source='rpcd_epmapper.c',
deps='''
CMDLINE_S3
RPC_WORKER
RPC_EPMAPPER
smbd_base
''',
install_path='${SAMBA_LIBEXECDIR}')
bld.SAMBA3_BINARY('rpcd_fsrvp',
source='rpcd_fsrvp.c',
deps='''
CMDLINE_S3
RPC_WORKER
RPC_FSS_AGENT
smbd_base
''',
install_path='${SAMBA_LIBEXECDIR}')
bld.SAMBA3_BINARY('rpcd_witness',
source='rpcd_witness.c',
deps='''
CMDLINE_S3
RPC_WORKER
RPC_WITNESS
''',
install_path='${SAMBA_LIBEXECDIR}',
enabled=bld.env.with_ctdb)
bld.SAMBA3_SUBSYSTEM('RPC_CONFIG',
source='rpc_config.c',
deps='talloc')
bld.SAMBA3_SUBSYSTEM('RPC_NCACN_NP',
source='rpc_ncacn_np.c rpc_handles.c',
deps='auth common_auth npa_tstream')
bld.SAMBA3_LIBRARY('RPC_SERVER_LOOP',
private_library=True,
source='rpc_server.c',
deps='''
LIBTSOCKET
dcerpc-server-core
npa_tstream
auth
RPC_NCACN_NP
samba3-util
''')
bld.SAMBA3_SUBSYSTEM('SRV_ACCESS_CHECK',
source='srv_access_check.c',
deps='samba-util')
bld.SAMBA3_SUBSYSTEM('RPC_SERVER',
source='',
deps='''
dcerpc-server-core
RPC_CONFIG
RPC_SERVER_LOOP
NDR_NAMED_PIPE_AUTH
''')
### RPC_SERVICES
bld.SAMBA3_SUBSYSTEM('RPC_DSSETUP',
source='''dssetup/srv_dssetup_nt.c''',
deps='samba-util')
bld.SAMBA3_SUBSYSTEM('RPC_EPMAPPER',
source='''epmapper/srv_epmapper.c''',
deps='samba-util')
bld.SAMBA3_SUBSYSTEM('RPC_FSS_STATE',
source='''fss/srv_fss_state.c''',
deps='samba-util NDR_FSRVP_STATE')
bld.SAMBA3_SUBSYSTEM('RPC_FSS_AGENT',
source='''fss/srv_fss_agent.c''',
deps='samba-util RPC_FSS_STATE')
bld.SAMBA3_SUBSYSTEM('RPC_EVENTLOG',
source='''eventlog/srv_eventlog_nt.c
eventlog/srv_eventlog_reg.c''',
deps='LIBEVENTLOG LIBCLI_WINREG_INTERNAL')
bld.SAMBA3_SUBSYSTEM('RPC_INITSHUTDOWN',
source='''initshutdown/srv_initshutdown_nt.c''',
deps='samba-util')
bld.SAMBA3_SUBSYSTEM('RPC_LSARPC',
source='''lsa/srv_lsa_nt.c''',
deps='SRV_ACCESS_CHECK LIBLSA GNUTLS_HELPERS')
bld.SAMBA3_SUBSYSTEM('RPC_NETDFS',
source='''dfs/srv_dfs_nt.c''',
deps='samba-util')
bld.SAMBA3_SUBSYSTEM('RPC_NETLOGON',
source='''netlogon/srv_netlog_nt.c''',
deps='LIBCLI_AUTH DCERPC_SERVER_NETLOGON')
bld.SAMBA3_SUBSYSTEM('RPC_NTSVCS',
source='''ntsvcs/srv_ntsvcs_nt.c''',
deps='samba-util')
bld.SAMBA3_SUBSYSTEM('RPC_RPCECHO',
source='''echo/srv_echo_nt.c''',
deps='samba-util')
bld.SAMBA3_SUBSYSTEM('RPC_SAMR',
source='''samr/srv_samr_nt.c
samr/srv_samr_util.c
samr/srv_samr_chgpasswd.c''',
deps='PLAINTEXT_AUTH SRV_ACCESS_CHECK DCERPC_HELPER')
bld.SAMBA3_SUBSYSTEM('RPC_SPOOLSS',
source='''spoolss/srv_spoolss_nt.c
spoolss/srv_spoolss_util.c''',
deps='PRINTING PRINTBACKEND LIBCLI_WINREG_INTERNAL')
bld.SAMBA3_SUBSYSTEM('RPC_IREMOTEWINSPOOL',
source='''
spoolss/srv_iremotewinspool_nt.c
spoolss/srv_iremotewinspool.c
spoolss/iremotewinspool_util.c
''',
deps='RPC_SPOOLSS')
bld.SAMBA3_SUBSYSTEM('RPC_SRVSVC',
source='''srvsvc/srv_srvsvc_nt.c''',
deps='samba-util tdb')
bld.SAMBA3_SUBSYSTEM('RPC_SVCCTL',
source='''svcctl/srv_svcctl_nt.c
svcctl/srv_svcctl_reg.c''',
deps='SERVICES LIBCLI_WINREG_INTERNAL')
bld.SAMBA3_SUBSYSTEM('RPC_WINREG',
source='''winreg/srv_winreg_nt.c''',
deps='REG_FULL REGFIO NDR_PERFCOUNT')
bld.SAMBA3_SUBSYSTEM('RPC_WKSSVC',
source='''wkssvc/srv_wkssvc_nt.c''',
deps='LIBNET')
bld.SAMBA3_SUBSYSTEM('RPC_WITNESS',
source='''witness/srv_witness_nt.c''',
deps='samba-util samba-cluster-support samba3core',
enabled=bld.env.with_ctdb)
bld.SAMBA3_SUBSYSTEM('mdssvc',
source='''
mdssvc/dalloc.c
mdssvc/marshalling.c
''')
rpc_mdssvc_sources = '''
mdssvc/mdssvc.c
mdssvc/mdssvc_noindex.c
mdssvc/srv_mdssvc_nt.c
'''
rpc_mdssvc_deps = 'mdssvc samba-util smbd_base '
if bld.env.spotlight_backend_tracker:
rpc_mdssvc_sources += '''
mdssvc/mdssvc_tracker.c
mdssvc/sparql_mapping.c
mdssvc/sparql_parser.y
mdssvc/sparql_lexer.l
'''
rpc_mdssvc_deps += 'tevent-glib-glue ' + bld.env['libtracker']
if bld.env.spotlight_backend_es:
rpc_mdssvc_sources += '''
mdssvc/mdssvc_es.c
mdssvc/es_mapping.c
mdssvc/es_parser.y
mdssvc/es_lexer.l
'''
rpc_mdssvc_deps += ' http jansson'
bld.INSTALL_FILES(bld.env.SAMBA_DATADIR,
'mdssvc/elasticsearch_mappings.json')
bld.SAMBA3_BINARY('rpcd_mdssvc',
source='rpcd_mdssvc.c ' + rpc_mdssvc_sources,
deps='''
CMDLINE_S3
RPC_WORKER
smbd_base
''' + rpc_mdssvc_deps,
install_path='${SAMBA_LIBEXECDIR}')
bld.SAMBA3_SUBSYSTEM('RPC_SERVICE',
source='',
deps='''
rpc
RPC_SERVER
RPC_SAMR
RPC_LSARPC
RPC_WINREG
RPC_INITSHUTDOWN
RPC_DSSETUP
RPC_WKSSVC
RPC_SVCCTL
RPC_NTSVCS
RPC_NETLOGON
RPC_NETDFS
RPC_SRVSVC
RPC_IREMOTEWINSPOOL
RPC_EVENTLOG
RPC_RPCECHO
RPC_EPMAPPER
RPC_FSS_AGENT
''')
# RPC_DAEMONS
bld.SAMBA3_SUBSYSTEM('RPC_SOCK_HELPER',
source='rpc_sock_helper.c',
deps='')
|