3 from samba_utils
import *
5 TDB_LIB_SRC
= '''lib/util_tdb.c ../lib/util/util_tdb.c
6 lib/dbwrap.c lib/dbwrap_tdb.c
11 TDB_VALIDATE_SRC
= '''lib/tdb_validate.c'''
13 SMBLDAP
= bld
.env
.SMBLDAP
or ""
14 SMBLDAPUTIL
= bld
.env
.SMBLDAPUTIL
or ""
16 SMBLDAP_SRC
= '''${SMBLDAP} ${SMBLDAPUTIL}'''
18 VERSION_SRC
= '''lib/version.c'''
20 WBCOMMON_SRC
= '../nsswitch/wb_common.c'
24 AFS_SETTOKEN_SRC
= 'lib/afs_settoken.c'
26 AVAHI_SRC
= 'lib/avahi.c smbd/avahi_register.c'
28 SERVER_MUTEX_SRC
= 'lib/server_mutex.c'
30 PASSCHANGE_SRC
= '''libsmb/passchange.c'''
32 LIBNDR_DRSUAPI_SRC
= '''../librpc/ndr/ndr_drsuapi.c
33 ../librpc/ndr/ndr_compression.c
34 ../librpc/gen_ndr/ndr_drsuapi.c
35 ../librpc/ndr/ndr_drsblobs.c
36 ../librpc/gen_ndr/ndr_drsblobs.c'''
38 COMPRESSION_SRC
= '../lib/compression/mszip.c ../lib/compression/lzxpress.c'
40 DRSUAPI_SRC
= '''${LIBNDR_DRSUAPI_SRC}
43 LIBNDR_NTLMSSP_SRC
= '''../librpc/gen_ndr/ndr_ntlmssp.c
44 ../librpc/ndr/ndr_ntlmssp.c'''
46 LIBNDR_SRC
= '''../librpc/ndr/ndr_basic.c
48 ../librpc/ndr/ndr_misc.c
49 ../librpc/gen_ndr/ndr_misc.c
50 ../librpc/ndr/ndr_string.c
54 LIBNDR_GEN_SRC0
= '''../librpc/gen_ndr/ndr_samr.c'''
56 LIBNDR_NETLOGON_SRC
= '''../librpc/gen_ndr/ndr_netlogon.c
57 ../librpc/ndr/ndr_netlogon.c'''
59 LIBNDR_SCHANNEL_SRC
= '''../librpc/gen_ndr/ndr_schannel.c
60 ../librpc/ndr/ndr_schannel.c'''
62 LIBNDR_SPOOLSS_SRC
= '''../librpc/gen_ndr/ndr_spoolss.c
63 ../librpc/ndr/ndr_spoolss_buf.c'''
65 LIBCLI_SPOOLSS_SRC
= '''
66 ../librpc/gen_ndr/cli_spoolss.c
67 ../librpc/gen_ndr/ndr_spoolss_c.c
68 rpc_client/cli_spoolss.c
69 rpc_client/init_spoolss.c'''
71 LIBCLI_EVENTLOG_SRC
= '''
72 ../librpc/gen_ndr/cli_eventlog.c
73 ../librpc/gen_ndr/ndr_eventlog_c.c'''
75 LIBCLI_NTSVCS_SRC
= '''
76 ../librpc/gen_ndr/cli_ntsvcs.c
77 ../librpc/gen_ndr/ndr_ntsvcs_c.c'''
79 LIBCLI_DRSUAPI_SRC
= '''
80 ../librpc/gen_ndr/cli_drsuapi.c
81 ../librpc/gen_ndr/ndr_drsuapi_c.c'''
84 ../librpc/gen_ndr/cli_dfs.c
85 ../librpc/gen_ndr/ndr_dfs_c.c'''
88 ../librpc/gen_ndr/cli_echo.c
89 ../librpc/gen_ndr/ndr_echo_c.c'''
91 LIBCLI_INITSHUTDOWN_SRC
= '''
92 ../librpc/gen_ndr/cli_initshutdown.c
93 ../librpc/gen_ndr/ndr_initshutdown_c.c'''
95 LIBCLI_DSSETUP_SRC
= '''
96 ../librpc/gen_ndr/cli_dssetup.c
97 ../librpc/gen_ndr/ndr_dssetup_c.c'''
99 LIBCLI_SVCCTL_SRC
= '''
100 ../librpc/gen_ndr/cli_svcctl.c
101 ../librpc/gen_ndr/ndr_svcctl_c.c'''
103 LIBCLI_WKSSVC_SRC
= '''
104 ../librpc/gen_ndr/cli_wkssvc.c
105 ../librpc/gen_ndr/ndr_wkssvc_c.c'''
107 LIBCLI_SRVSVC_SRC
= '''
108 ../librpc/gen_ndr/cli_srvsvc.c
109 ../librpc/gen_ndr/ndr_srvsvc_c.c'''
112 ../librpc/gen_ndr/cli_lsa.c
113 ../librpc/gen_ndr/ndr_lsa_c.c
114 rpc_client/cli_lsarpc.c
115 rpc_client/init_lsa.c'''
117 LIBCLI_SAMR_SRC
= '''
118 ../librpc/gen_ndr/cli_samr.c
119 ../librpc/gen_ndr/ndr_samr_c.c
120 rpc_client/cli_samr.c'''
122 LIBCLI_NETLOGON_SRC
= '''
123 ../librpc/gen_ndr/cli_netlogon.c
124 ../librpc/gen_ndr/ndr_netlogon_c.c
125 rpc_client/cli_netlogon.c'''
127 LIBCLI_EPMAPPER_SRC
= '''
128 ../librpc/gen_ndr/cli_epmapper.c
129 ../librpc/gen_ndr/ndr_epmapper_c.c'''
131 LIBNDR_GEN_SRC
= '''../librpc/gen_ndr/ndr_wkssvc.c
133 ../librpc/gen_ndr/ndr_dfs.c
134 ../librpc/gen_ndr/ndr_echo.c
135 ../librpc/gen_ndr/ndr_winreg.c
136 ../librpc/gen_ndr/ndr_initshutdown.c
137 ../librpc/gen_ndr/ndr_srvsvc.c
138 ${LIBNDR_NETLOGON_SRC}
139 ../librpc/gen_ndr/ndr_dssetup.c
140 ../librpc/gen_ndr/ndr_epmapper.c
141 ../librpc/gen_ndr/ndr_ntsvcs.c
142 ${LIBNDR_SPOOLSS_SRC}'''
144 # this includes only the low level parse code, not stuff
145 # that requires knowledge of security contexts
146 REG_PARSE_PRS_SRC
= '''registry/reg_parse_prs.c'''
148 LIBREPLACE_SRC
= '''${LIBREPLACE_SRCS}'''
150 LIBSAMBAUTIL_SRC
= '''${LIBREPLACE_SRC}'''
152 UTIL_SRC
= '''../lib/util/rbtree.c ../lib/util/signal.c ../lib/util/time.c
153 ../lib/util/xfile.c ../lib/util/util_strlist.c
154 ../lib/util/util_file.c ../lib/util/data_blob.c
155 ../lib/util/util.c ../lib/util/fsusage.c
156 ../lib/util/params.c ../lib/util/talloc_stack.c
157 ../lib/util/genrand.c ../lib/util/util_net.c
158 ../lib/util/become_daemon.c ../lib/util/system.c
159 ../lib/util/tevent_unix.c ../lib/util/tevent_ntstatus.c
160 ../lib/util/smb_threads.c ../lib/util/util_id.c
161 ../lib/util/blocking.c ../lib/util/rfc1738.c
162 ../lib/util/select.c'''
172 LIB_SRC
= '''${LIBSAMBAUTIL_SRC} ${UTIL_SRC}
173 lib/messages.c lib/messages_local.c
174 lib/messages_ctdbd.c lib/packet.c lib/ctdbd_conn.c
175 lib/interfaces.c lib/memcache.c
179 lib/util_transfer_file.c ../lib/async_req/async_sock.c
181 ${VERSION_SRC} lib/charcnv.c lib/debug.c lib/fault.c
182 lib/interface.c lib/pidfile.c
183 lib/system.c lib/sendfile.c lib/recvfile.c lib/time.c
185 ../libds/common/flag_mapping.c
186 lib/util_pw.c lib/access.c lib/smbrun.c
187 lib/bitmap.c lib/dprintf.c ${UTIL_REG_SRC}
189 lib/util_str.c lib/clobber.c lib/util_sid.c
190 lib/util_unistr.c lib/util_file.c
191 lib/util.c lib/util_names.c
192 lib/util_sock.c lib/sock_exec.c lib/util_sec.c
193 lib/substitute.c lib/dbwrap_util.c
194 lib/ms_fnmatch.c lib/errmap_unix.c
195 lib/tallocmsg.c lib/dmallocmsg.c
196 libsmb/clisigning.c libsmb/smb_signing.c
197 lib/iconv.c lib/pam_errors.c intl/lang_tdb.c
198 lib/conn_tdb.c lib/adt_tree.c lib/gencache.c
200 lib/module.c lib/events.c ${LIBTEVENT_SRC0}
201 lib/server_contexts.c
203 lib/secdesc.c lib/util_seaccess.c ../libcli/security/secace.c
204 ../libcli/security/sddl.c
205 ../libcli/security/secacl.c ${PTHREADPOOL_SRC}
207 libads/krb5_errs.c lib/system_smbd.c lib/audit.c
208 lib/file_id.c lib/idmap_cache.c
209 ../libcli/security/dom_sid.c ../libcli/security/security_descriptor.c'''
211 LIB_DUMMY_SRC
= '''lib/dummysmbd.c lib/dummyroot.c'''
212 LIB_NONSMBD_SRC
= '''${LIB_DUMMY_SRC}'''
214 POPT_LIB_SRC
= '''lib/popt_common.c'''
216 PARAM_WITHOUT_REG_SRC
= '''param/loadparm.c param/util.c param/loadparm_server_role.c
217 lib/sharesec.c lib/ldap_debug_handler.c'''
218 PARAM_REG_ADD_SRC
= '''${REG_SMBCONF_SRC} ${LIBSMBCONF_SRC} ${PRIVILEGES_BASIC_SRC}'''
219 PARAM_SRC
= '''${PARAM_REG_ADD_SRC}'''
221 KRBCLIENT_SRC
= '''libads/kerberos.c libads/ads_status.c'''
223 LIBADDNS_SRC0
= '''libaddns/dnsrecord.c libaddns/dnsutils.c libaddns/dnssock.c
224 libaddns/dnsgss.c libaddns/dnsmarshall.c'''
225 LIBADDNS_SRC
= '''${LIBADDNS_SRC0}'''
227 LIBGPO_SRC0
= '''../libgpo/gpo_ldap.c ../libgpo/gpo_ini.c ../libgpo/gpo_util.c
228 ../libgpo/gpo_fetch.c libgpo/gpo_filesync.c ../libgpo/gpo_sec.c
230 LIBGPO_SRC
= '''${LIBGPO_SRC0}'''
232 LIBADS_SRC
= '''libads/ldap.c
233 libads/sasl.c libads/sasl_wrapping.c
235 libads/kerberos_util.c
237 libads/ads_struct.c libads/kerberos_keytab.c
238 libads/disp_sec.c libads/ldap_utils.c
239 libads/ldap_schema.c libads/util.c libads/ndr.c'''
241 LIBADS_SERVER_SRC
= '''libads/kerberos_verify.c libads/authdata.c'''
243 LIBADS_PRINTER_SRC
= '''libads/ldap_printer.c'''
245 SECRETS_SRC
= '''passdb/secrets.c passdb/machine_account_secrets.c
246 passdb/machine_sid.c'''
248 LIBNBT_SRC
= '''../libcli/nbt/nbtname.c
250 ../libcli/ndr_netlogon.c
251 ../librpc/gen_ndr/ndr_nbt.c
252 ../librpc/gen_ndr/ndr_svcctl.c
253 ../librpc/ndr/ndr_svcctl.c'''
255 LIBNMB_SRC
= '''libsmb/unexpected.c libsmb/namecache.c libsmb/nmblib.c
256 libsmb/namequery.c ../libcli/nbt/lmhosts.c libsmb/conncache.c
257 libads/dns.c libads/sitename_cache.c'''
259 NTERR_SRC
= '''libsmb/nterr.c libsmb/smberr.c'''
260 DOSERR_SRC
= '../libcli/util/doserr.c'
261 ERRORMAP_SRC
= 'libsmb/errormap.c'
262 DCE_RPC_ERR_SRC
= '../librpc/rpc/dcerpc_error.c'
264 LIBSMB_ERR_SRC0
= '''${NTERR_SRC} ${DOSERR_SRC} ${ERRORMAP_SRC} ${DCE_RPC_ERR_SRC}'''
266 LIBSMB_ERR_SRC1
= '''../libcli/auth/smbdes.c ../libcli/auth/smbencrypt.c ../libcli/auth/msrpc_parse.c ../libcli/auth/session.c'''
268 LIBSMB_ERR_SRC
= '${LIBSMB_ERR_SRC0} ${LIBSMB_ERR_SRC1}'
271 ../libcli/auth/ntlm_check.c
273 libsmb/ntlmssp_wrap.c
274 ../libcli/auth/ntlmssp.c
275 ../libcli/auth/ntlmssp_sign.c
276 ${LIBNDR_NTLMSSP_SRC}
277 ../libcli/auth/ntlmssp_ndr.c
278 ../libcli/auth/ntlmssp_server.c'''
280 LIBSAMBA_SRC
= '${LIBSMB_SRC0}'
282 LIBCLI_LDAP_MESSAGE_SRC
= '''../libcli/ldap/ldap_message.c'''
283 LIBCLI_LDAP_NDR_SRC
= '''../libcli/ldap/ldap_ndr.c lib/ldb_compat.c'''
285 CLDAP_SRC
= '''libads/cldap.c
286 ../libcli/cldap/cldap.c
287 ../lib/util/idtree.c'''
289 TLDAP_SRC
= '''lib/tldap.c lib/tldap_util.c lib/util_tsock.c'''
291 SCHANNEL_SRC
= '''../libcli/auth/credentials.c
292 ../libcli/auth/schannel_sign.c
293 ../libcli/auth/schannel_state_tdb.c
294 ${LIBNDR_SCHANNEL_SRC}'''
296 LIBSMB_SRC
= '''libsmb/clientgen.c libsmb/cliconnect.c libsmb/clifile.c
297 libsmb/clikrb5.c libsmb/clispnego.c
298 ../libcli/auth/spnego_parse.c
299 libsmb/clirap.c libsmb/clierror.c libsmb/climessage.c
300 libsmb/clireadwrite.c libsmb/clilist.c libsmb/cliprint.c
301 libsmb/clitrans.c libsmb/clisecdesc.c libsmb/clidgram.c
302 libsmb/clistr.c libsmb/cliquota.c libsmb/clifsinfo.c libsmb/clidfs.c
303 libsmb/clioplock.c libsmb/clirap2.c
304 libsmb/smb_seal.c libsmb/async_smb.c
311 rpc_client/cli_pipe.c
312 librpc/crypto/gse_krb5.c
314 librpc/crypto/cli_spnego.c
315 librpc/rpc/rpc_common.c
316 rpc_client/rpc_transport_np.c
317 rpc_client/rpc_transport_sock.c
318 rpc_client/rpc_transport_tstream.c
319 ../librpc/rpc/binding.c
320 ../librpc/rpc/dcerpc_util.c
321 librpc/rpc/dcerpc_helpers.c
322 ../librpc/rpc/binding_handle.c
323 ${LIBCLI_EPMAPPER_SRC}'''
326 # registry-related objects
328 UTIL_REG_SRC
= '''../libcli/registry/util_reg.c'''
330 REG_INIT_BASIC_SRC
= '''registry/reg_init_basic.c'''
331 REG_INIT_SMBCONF_SRC
= '''registry/reg_init_smbconf.c'''
332 REG_INIT_FULL_SRC
= '''registry/reg_init_full.c'''
334 REGFIO_SRC
= '''registry/regfio.c ${REG_PARSE_PRS_SRC}'''
336 REG_API_REGF_SRC
= '''registry/reg_api_regf.c'''
338 REGSRCS_SRC
= '''registry/reg_objects.c'''
340 REG_BACKENDS_BASE_SRC
= '''registry/reg_backend_db.c'''
342 REG_BACKENDS_SMBCONF_SRC
= '''registry/reg_backend_smbconf.c'''
344 REG_BACKENDS_EXTRA_SRC
= '''registry/reg_backend_printing.c
345 registry/reg_backend_shares.c
346 registry/reg_backend_netlogon_params.c
347 registry/reg_backend_prod_options.c
348 registry/reg_backend_tcpip_params.c
349 registry/reg_backend_hkpt_params.c
350 registry/reg_backend_current_version.c
351 registry/reg_backend_perflib.c'''
353 REG_BASE_SRC
= '''registry/reg_api.c
354 registry/reg_dispatcher.c
355 registry/reg_cachehook.c
357 registry/reg_util_internal.c
359 ${REG_BACKENDS_BASE_SRC}
360 ${REG_INIT_BASIC_SRC}'''
362 REG_SMBCONF_SRC
= '''${REG_BASE_SRC}
363 ${REG_BACKENDS_SMBCONF_SRC}
364 ${REG_INIT_SMBCONF_SRC}
365 registry/reg_util_token.c
366 registry/reg_api_util.c'''
368 REG_FULL_SRC
= '''${REG_SMBCONF_SRC}
369 ${REG_BACKENDS_EXTRA_SRC}
371 registry/reg_eventlog.c
372 registry/reg_perfcount.c'''
374 SERVICES_SRC
= '''services/svc_spoolss.c
375 services/svc_rcinit.c
376 services/services_db.c
377 services/svc_netlogon.c
378 services/svc_winreg.c
379 services/svc_wins.c'''
381 LIB_EVENTLOG_SRC
= '''lib/eventlog/eventlog.c'''
385 RPC_LSARPC_SRC
= '''rpc_server/srv_lsa_nt.c
386 ../librpc/gen_ndr/srv_lsa.c'''
388 RPC_NETLOGON_SRC
= '''rpc_server/srv_netlog_nt.c
389 ../librpc/gen_ndr/srv_netlogon.c'''
391 RPC_SAMR_SRC
= '''rpc_server/srv_samr_nt.c
392 rpc_server/srv_samr_util.c
393 rpc_server/srv_samr_chgpasswd.c
394 ../librpc/gen_ndr/srv_samr.c'''
396 RPC_INITSHUTDOWN_SRC
= ''' ../librpc/gen_ndr/srv_initshutdown.c rpc_server/srv_initshutdown_nt.c'''
398 RPC_WINREG_SRC
= '''rpc_server/srv_winreg_nt.c
399 ../librpc/gen_ndr/srv_winreg.c'''
401 RPC_DSSETUP_SRC
= ''' rpc_server/srv_dssetup_nt.c ../librpc/gen_ndr/srv_dssetup.c'''
403 RPC_SRVSVC_SRC
= '''rpc_server/srv_srvsvc_nt.c
404 ../librpc/gen_ndr/srv_srvsvc.c'''
406 RPC_WKSSVC_SRC
= '''../librpc/gen_ndr/srv_wkssvc.c
407 rpc_server/srv_wkssvc_nt.c'''
409 RPC_SVCCTL_SRC
= ''' rpc_server/srv_svcctl_nt.c
410 ../librpc/gen_ndr/srv_svcctl.c'''
412 RPC_NTSVCS_SRC
= '''rpc_server/srv_ntsvcs_nt.c
413 ../librpc/gen_ndr/srv_ntsvcs.c'''
415 RPC_NETDFS_SRC
= '''../librpc/gen_ndr/srv_dfs.c
416 rpc_server/srv_dfs_nt.c'''
418 RPC_SPOOLSS_SRC
= '''rpc_server/srv_spoolss_nt.c
419 rpc_server/srv_spoolss_util.c
420 ../librpc/gen_ndr/srv_spoolss.c'''
422 RPC_EVENTLOG_SRC
= '''rpc_server/srv_eventlog_nt.c
423 ../librpc/gen_ndr/srv_eventlog.c'''
425 NPA_TSTREAM_SRC
= '''../libcli/named_pipe_auth/npa_tstream.c
426 ../librpc/gen_ndr/ndr_named_pipe_auth.c'''
428 RPC_NCACN_NP
= '''rpc_server/srv_pipe_register.c rpc_server/rpc_ncacn_np.c
429 rpc_server/rpc_handles.c'''
431 RPC_SERVICE
= '''rpc_server/rpc_server.c'''
433 RPC_CRYPTO
= '''rpc_server/dcesrv_ntlmssp.c
434 rpc_server/dcesrv_gssapi.c
435 rpc_server/dcesrv_spnego.c'''
437 RPC_PIPE_SRC
= '''rpc_server/srv_pipe_hnd.c rpc_server/srv_pipe.c
438 ${RPC_NCACN_NP} ${RPC_SERVICE} ${RPC_CRYPTO}'''
440 RPC_RPCECHO_SRC
= '''rpc_server/srv_echo_nt.c ../librpc/gen_ndr/srv_echo.c'''
442 RPC_SERVER_SRC
= '''${RPC_PIPE_SRC} ${NPA_TSTREAM_SRC} ${RPC_STATIC}'''
444 RPC_CLIENT_SCHANNEL_SRC
= '''rpc_client/cli_pipe_schannel.c'''
446 LOCKING_SRC
= '''locking/locking.c locking/brlock.c locking/posix.c'''
448 PRIVILEGES_BASIC_SRC
= '''../libcli/security/privileges.c'''
450 PRIVILEGES_SRC
= '''lib/privileges.c'''
452 PASSDB_GET_SET_SRC
= '''passdb/pdb_get_set.c'''
454 PASSDB_SRC
= '''${PASSDB_GET_SET_SRC} passdb/passdb.c passdb/pdb_interface.c
455 passdb/util_wellknown.c passdb/util_builtin.c passdb/pdb_compat.c
456 passdb/util_unixsids.c passdb/lookup_sid.c
458 passdb/account_pol.c ${PRIVILEGES_SRC}
459 lib/util_nscd.c lib/winbind_util.c ${SERVER_MUTEX_SRC}'''
460 #FIXME: lib/winbind_util.c probably is not part of PASSDB_SRC
462 GROUPDB_SRC
= '''groupdb/mapping.c groupdb/mapping_tdb.c'''
464 PROFILE_SRC
= '''profile/profile.c'''
465 PROFILES_SRC
= '''utils/profiles.c'''
467 OPLOCK_SRC
= '''smbd/oplock.c smbd/oplock_irix.c smbd/oplock_linux.c
468 smbd/oplock_onefs.c'''
470 NOTIFY_SRC
= '''smbd/notify.c smbd/notify_inotify.c smbd/notify_internal.c
471 librpc/gen_ndr/ndr_notify.c'''
473 FNAME_UTIL_SRC
= '''smbd/filename_util.c'''
476 PLAINTEXT_AUTH_SRC
= '''auth/pampass.c auth/pass_check.c'''
478 SLCACHE_SRC
= '''libsmb/samlogon_cache.c'''
480 DCUTIL_SRC
= '''libsmb/namequery_dc.c libsmb/trustdom_cache.c libsmb/trusts_util.c libsmb/dsgetdcname.c'''
482 WINBINDD_SRC1
= '''winbindd/winbindd.c
483 winbindd/winbindd_group.c
484 winbindd/winbindd_util.c
485 winbindd/winbindd_cache.c
486 winbindd/winbindd_pam.c
487 winbindd/winbindd_misc.c
488 winbindd/winbindd_cm.c
489 winbindd/winbindd_wins.c
490 winbindd/winbindd_msrpc.c
491 winbindd/winbindd_rpc.c
492 winbindd/winbindd_reconnect.c
493 winbindd/winbindd_ads.c
494 winbindd/winbindd_samr.c
495 winbindd/winbindd_dual.c
496 winbindd/winbindd_dual_ndr.c
497 winbindd/winbindd_dual_srv.c
498 winbindd/winbindd_async.c
499 winbindd/winbindd_creds.c
500 winbindd/winbindd_cred_cache.c
501 winbindd/winbindd_ccache_access.c
502 winbindd/winbindd_domain.c
503 winbindd/winbindd_idmap.c
504 winbindd/winbindd_locator.c
505 winbindd/winbindd_ndr.c
507 winbindd/wb_lookupsid.c
508 winbindd/wb_lookupname.c
509 winbindd/wb_sid2uid.c
510 winbindd/wb_sid2gid.c
511 winbindd/wb_uid2sid.c
512 winbindd/wb_gid2sid.c
513 winbindd/wb_queryuser.c
514 winbindd/wb_lookupuseraliases.c
515 winbindd/wb_lookupusergroups.c
516 winbindd/wb_getpwsid.c
517 winbindd/wb_gettoken.c
519 winbindd/wb_seqnums.c
520 winbindd/wb_group_members.c
521 winbindd/wb_getgrsid.c
522 winbindd/wb_query_user_list.c
523 winbindd/wb_fill_pwent.c
524 winbindd/wb_next_pwent.c
525 winbindd/wb_next_grent.c
526 winbindd/wb_dsgetdcname.c
527 winbindd/winbindd_lookupsid.c
528 winbindd/winbindd_lookupname.c
529 winbindd/winbindd_sid_to_uid.c
530 winbindd/winbindd_sid_to_gid.c
531 winbindd/winbindd_uid_to_sid.c
532 winbindd/winbindd_gid_to_sid.c
533 winbindd/winbindd_allocate_uid.c
534 winbindd/winbindd_allocate_gid.c
535 winbindd/winbindd_getpwsid.c
536 winbindd/winbindd_getpwnam.c
537 winbindd/winbindd_getpwuid.c
538 winbindd/winbindd_getsidaliases.c
539 winbindd/winbindd_getuserdomgroups.c
540 winbindd/winbindd_getgroups.c
541 winbindd/winbindd_show_sequence.c
542 winbindd/winbindd_getgrgid.c
543 winbindd/winbindd_getgrnam.c
544 winbindd/winbindd_getusersids.c
545 winbindd/winbindd_lookuprids.c
546 winbindd/winbindd_setpwent.c
547 winbindd/winbindd_getpwent.c
548 winbindd/winbindd_endpwent.c
549 winbindd/winbindd_setgrent.c
550 winbindd/winbindd_getgrent.c
551 winbindd/winbindd_endgrent.c
552 winbindd/winbindd_dsgetdcname.c
553 winbindd/winbindd_getdcname.c
554 winbindd/winbindd_list_users.c
555 winbindd/winbindd_list_groups.c
556 winbindd/winbindd_check_machine_acct.c
557 winbindd/winbindd_change_machine_acct.c
558 winbindd/winbindd_ping_dc.c
559 winbindd/winbindd_pam_auth.c
560 winbindd/winbindd_pam_logoff.c
561 winbindd/winbindd_pam_chauthtok.c
562 winbindd/winbindd_pam_auth_crap.c
563 winbindd/winbindd_pam_chng_pswd_auth_crap.c
569 auth/server_info_sam.c
572 rpc_server/srv_samr_chgpasswd.c
573 ../nsswitch/libwbclient/wb_reqtrans.c'''
575 WINBINDD_SRC
= '''${WINBINDD_SRC1}
576 ${RPC_NCACN_NP} ${NPA_TSTREAM_SRC} ${RPC_SAMR_SRC} ${RPC_LSARPC_SRC}
578 ${LIBCLI_DSSETUP_SRC}
581 ${LIBCLI_NETLOGON_SRC}
582 rpc_client/init_netlogon.c'''
584 MANGLE_SRC
= '''smbd/mangle.c smbd/mangle_hash.c smbd/mangle_hash2.c'''
586 SMBD_SRC_MAIN
= '''smbd/server.c smbd/server_exit.c'''
588 BUILDOPT_SRC
= '''smbd/build_options.c'''
590 SMBD_SRC_SRV
= '''smbd/server_reload.c smbd/files.c smbd/connection.c
591 smbd/utmp.c smbd/session.c
592 smbd/dfree.c smbd/dir.c smbd/password.c smbd/conn.c
593 smbd/share_access.c smbd/fileio.c
594 smbd/ipc.c smbd/lanman.c smbd/negprot.c
595 smbd/message.c smbd/nttrans.c smbd/pipes.c
596 smbd/reply.c smbd/sesssetup.c smbd/trans2.c smbd/uid.c
597 smbd/dosmode.c smbd/filename.c smbd/open.c smbd/close.c
598 smbd/blocking.c smbd/sec_ctx.c smbd/srvstr.c
599 smbd/vfs.c smbd/perfcount.c smbd/statcache.c smbd/seal.c
600 smbd/posix_acls.c lib/sysacls.c
601 smbd/process.c smbd/service.c smbd/error.c
602 printing/printspoolss.c
603 lib/sysquotas.c lib/sysquotas_linux.c
604 lib/sysquotas_xfs.c lib/sysquotas_4A.c
607 smbd/quotas.c smbd/ntquotas.c smbd/msdfs.c
608 smbd/aio.c smbd/statvfs.c
609 smbd/dmapi.c smbd/signing.c
611 smbd/dnsregister.c smbd/globals.c
616 smbd/smb2_sesssetup.c
625 smbd/smb2_keepalive.c
631 ../libcli/smb/smb2_create_blob.c
634 SMBD_SRC_BASE
= '''${SMBD_SRC_SRV}
636 ${OPLOCK_SRC} ${NOTIFY_SRC} ${FNAME_UTIL_SRC}
640 ${LIBCLI_SPOOLSS_SRC}
644 ${LIBCLI_NETLOGON_SRC}
645 ${RPC_CLIENT_SCHANNEL_SRC}
646 rpc_client/init_netlogon.c
647 rpc_client/init_samr.c
648 ${PRIVILEGES_BASIC_SRC}'''
650 PRINTING_SRC
= '''printing/pcap.c printing/print_svid.c printing/print_aix.c
651 printing/print_cups.c printing/print_generic.c
652 printing/lpq_parse.c printing/load.c printing/print_standard.c
653 printing/print_iprint.c printing/printer_list.c'''
655 PRINTBASE_SRC
= '''printing/notify.c printing/printing_db.c'''
656 PRINTBACKEND_SRC
= '''printing/printing.c
657 printing/nt_printing.c
658 printing/nt_printing_tdb.c
659 printing/nt_printing_migrate.c
660 printing/nt_printing_ads.c'''
662 SMBD_SRC
= '''${SMBD_SRC_BASE} ${SMBD_SRC_MAIN}'''
664 NMBD_SRC1
= '''nmbd/asyncdns.c nmbd/nmbd.c nmbd/nmbd_become_dmb.c
665 nmbd/nmbd_become_lmb.c nmbd/nmbd_browserdb.c
666 nmbd/nmbd_browsesync.c nmbd/nmbd_elections.c
667 nmbd/nmbd_incomingdgrams.c nmbd/nmbd_incomingrequests.c
668 nmbd/nmbd_lmhosts.c nmbd/nmbd_logonnames.c nmbd/nmbd_mynames.c
669 nmbd/nmbd_namelistdb.c nmbd/nmbd_namequery.c
670 nmbd/nmbd_nameregister.c nmbd/nmbd_namerelease.c
671 nmbd/nmbd_nodestatus.c nmbd/nmbd_packets.c
672 nmbd/nmbd_processlogon.c nmbd/nmbd_responserecordsdb.c
673 nmbd/nmbd_sendannounce.c nmbd/nmbd_serverlistdb.c
674 nmbd/nmbd_subnetdb.c nmbd/nmbd_winsproxy.c nmbd/nmbd_winsserver.c
675 nmbd/nmbd_workgroupdb.c nmbd/nmbd_synclists.c'''
677 NMBD_SRC
= '${NMBD_SRC1}'
679 SWAT_SRC1
= '''web/cgi.c web/diagnose.c web/startstop.c web/statuspage.c
680 web/swat.c web/neg_lang.c'''
682 SWAT_SRC
= '''${SWAT_SRC1}
683 ${PASSCHANGE_SRC} ${FNAME_UTIL_SRC}
685 rpc_client/init_lsa.c'''
687 STATUS_SRC
= '''utils/status.c utils/status_profile.c
690 SMBCONTROL_SRC
= '''utils/smbcontrol.c'''
692 SMBTREE_SRC
= '''utils/smbtree.c
693 ${LIBCLI_SRVSVC_SRC}'''
695 TESTPARM_SRC
= 'utils/testparm.c'
697 SMBTA_UTIL_SRC
= '''utils/smbta-util.c ${FNAME_UTIL_SRC}'''
699 TEST_LP_LOAD_SRC
= '''param/test_lp_load.c'''
701 PASSWD_UTIL_SRC
= 'utils/passwd_util.c'
703 SMBPASSWD_SRC
= '''utils/smbpasswd.c ${PASSCHANGE_SRC}
705 rpc_client/init_lsa.c'''
707 PDBEDIT_SRC
= '''utils/pdbedit.c'''
709 SMBGET_SRC
= '''utils/smbget.c'''
711 DISPLAY_SEC_SRC
= '../libcli/security/display_sec.c'
713 RPCCLIENT_SRC1
= '''rpcclient/rpcclient.c rpcclient/cmd_lsarpc.c
714 rpcclient/cmd_samr.c rpcclient/cmd_spoolss.c
715 rpcclient/cmd_netlogon.c rpcclient/cmd_srvsvc.c
716 rpcclient/cmd_dfs.c rpcclient/cmd_epmapper.c
717 rpcclient/cmd_dssetup.c rpcclient/cmd_echo.c
718 rpcclient/cmd_shutdown.c rpcclient/cmd_test.c
719 rpcclient/cmd_wkssvc.c rpcclient/cmd_ntsvcs.c
720 rpcclient/cmd_drsuapi.c rpcclient/cmd_eventlog.c
721 rpcclient/cmd_winreg.c'''
723 RPCCLIENT_SRC
= '''${RPCCLIENT_SRC1}
724 ${LIBCLI_SPOOLSS_SRC}
725 ${LIBCLI_EVENTLOG_SRC}
727 ${LIBCLI_DRSUAPI_SRC}
730 ${LIBCLI_DSSETUP_SRC}
735 ${LIBCLI_NETLOGON_SRC}
736 ${RPC_CLIENT_SCHANNEL_SRC}
737 rpc_client/init_netlogon.c
738 rpc_client/init_samr.c'''
740 PAM_WINBIND_SRC
= '../nsswitch/pam_winbind.c ${WBCOMMON_SRC} ${LIBREPLACE_SRC}'
742 LIBSMBCLIENT_THREAD_SRC
= '''libsmb/libsmb_thread_impl.c
743 libsmb/libsmb_thread_posix.c'''
745 LIBSMBCLIENT_SRC0
= '''libsmb/libsmb_cache.c
746 libsmb/libsmb_compat.c
747 libsmb/libsmb_context.c
752 libsmb/libsmb_printjob.c
753 libsmb/libsmb_server.c
755 libsmb/libsmb_xattr.c
756 libsmb/libsmb_setget.c'''
758 LIBSMBCLIENT_SRC1
= '''${LIBSMBCLIENT_SRC0}
762 LIBSMBCLIENT_SRC
= '${LIBSMBCLIENT_SRC1}'
764 LIBSMBSHAREMODES_SRC0
= 'libsmb/smb_share_modes.c'
766 LIBSMBSHAREMODES_SRC
= '${LIBSMBSHAREMODES_SRC0}'
768 LIBNETAPI_SRC0
= '''lib/netapi/netapi.c
770 lib/netapi/libnetapi.c
771 lib/netapi/joindomain.c
772 lib/netapi/serverinfo.c
776 lib/netapi/localgroup.c
781 lib/netapi/shutdown.c
782 lib/netapi/netlogon.c'''
784 LIBNETAPI_SRC
= '''${LIBNETAPI_SRC0}
787 ${PRIVILEGES_BASIC_SRC}
789 ${LIBCLI_INITSHUTDOWN_SRC}
794 ${LIBCLI_NETLOGON_SRC}
795 ${RPC_CLIENT_SCHANNEL_SRC}
796 rpc_client/init_netlogon.c
797 rpc_client/init_samr.c'''
799 # FIXME: bigballofmud
801 CLIENT_SRC1
= '''client/client.c client/clitar.c
802 client/dnsbrowse.c'''
804 CLIENT_SRC
= '''${CLIENT_SRC1}
806 rpc_client/init_lsa.c'''
808 LIBSMBCONF_SRC
= '''../lib/smbconf/smbconf.c ../lib/smbconf/smbconf_util.c
809 ../lib/smbconf/smbconf_txt.c lib/smbconf/smbconf_reg.c
810 lib/smbconf/smbconf_init.c'''
812 SMBCONFTORT_SRC0
= 'lib/smbconf/testsuite.c'
814 SMBCONFTORT_SRC
= '''${SMBCONFTORT_SRC0}'''
816 LIBNET_SRC
= 'libnet/libnet_join.c libnet/libnet_keytab.c'
819 LIBNET_DSSYNC_SRC
= '''libnet/libnet_dssync.c
820 libnet/libnet_dssync_keytab.c
821 ../libcli/drsuapi/repl_decrypt.c'''
823 LIBNET_SAMSYNC_SRC
= '''libnet/libnet_samsync.c
824 libnet/libnet_samsync_ldif.c
825 libnet/libnet_samsync_passdb.c
826 libnet/libnet_samsync_display.c
827 libnet/libnet_samsync_keytab.c
828 ../libcli/samsync/decrypt.c'''
830 NET_SRC1
= '''utils/net.c utils/net_ads.c utils/net_help.c
831 utils/net_rap.c utils/net_rpc.c utils/net_rpc_samsync.c
832 utils/net_rpc_join.c utils/net_time.c utils/net_lookup.c
833 utils/net_cache.c utils/net_groupmap.c utils/net_idmap.c
834 utils/net_status.c utils/net_rpc_printer.c utils/net_rpc_rights.c
835 utils/net_rpc_service.c utils/net_rpc_registry.c utils/net_usershare.c
836 utils/netlookup.c utils/net_sam.c utils/net_rpc_shell.c
837 utils/net_util.c utils/net_rpc_sh_acct.c utils/net_rpc_audit.c
838 utils/net_dns.c utils/net_ads_gpo.c
839 utils/net_conf.c utils/net_join.c utils/net_user.c
840 utils/net_group.c utils/net_file.c utils/net_registry.c
841 auth/token_util.c utils/net_dom.c utils/net_share.c
846 ${LIBCLI_SPOOLSS_SRC}
847 ${LIBCLI_DRSUAPI_SRC}
848 ${LIBCLI_INITSHUTDOWN_SRC}
849 ${LIBCLI_DSSETUP_SRC}
855 ${LIBCLI_NETLOGON_SRC}
856 ${RPC_CLIENT_SCHANNEL_SRC}
857 rpc_client/init_netlogon.c
858 rpc_client/init_samr.c
859 registry/reg_parse.c registry/reg_format.c
860 registry/reg_parse_internal.c registry/reg_import.c
861 lib/cbuf.c lib/srprs.c'''
863 NET_SRC2
= 'utils/net_registry_util.c utils/net_help_common.c'
865 NET_SRC
= '''${NET_SRC1}
868 CUPS_SRC
= '''client/smbspool.c'''
870 NMBLOOKUP_SRC
= '''utils/nmblookup.c ${LIBNMB_SRC}'''
872 SMBTORTURE_SRC1
= '''torture/torture.c torture/nbio.c torture/scanner.c torture/utable.c
873 torture/denytest.c torture/mangle_test.c
875 torture/test_posix_append.c'''
877 SMBTORTURE_SRC
= '''${SMBTORTURE_SRC1} ${TLDAP_SRC}
878 ../nsswitch/libwbclient/wbc_async.c
879 ../nsswitch/libwbclient/wb_reqtrans.c'''
881 MASKTEST_SRC
= '''torture/masktest.c'''
883 MSGTEST_SRC
= '''torture/msgtest.c'''
885 LOCKTEST_SRC
= '''torture/locktest.c ${FNAME_UTIL_SRC}'''
887 NSSTEST_SRC
= '''torture/nsstest.c ${LIBSAMBAUTIL_SRC}'''
889 PDBTEST_SRC
= '''torture/pdbtest.c'''
891 VFSTEST_SRC
= '''torture/cmd_vfs.c torture/vfstest.c'''
893 SMBICONV_SRC
= '''torture/smbiconv.c'''
895 LOG2PCAP_SRC
= '''utils/log2pcaphex.c'''
897 LOCKTEST2_SRC
= '''torture/locktest2.c ${FNAME_UTIL_SRC}'''
899 SMBCACLS_SRC
= '''utils/smbcacls.c
902 SMBCQUOTAS_SRC
= '''utils/smbcquotas.c
905 EVTLOGADM_SRC0
= 'utils/eventlogadm.c'
907 EVTLOGADM_SRC
= '''${EVTLOGADM_SRC0}
908 registry/reg_eventlog.c'''
910 SHARESEC_SRC0
= 'utils/sharesec.c'
911 SHARESEC_SRC
= '''${SHARESEC_SRC0}'''
913 DEBUG2HTML_SRC
= '''utils/debug2html.c utils/debugparse.c'''
915 SMBFILTER_SRC
= '''utils/smbfilter.c'''
917 WINBIND_WINS_NSS_SRC
= '''../nsswitch/wins.c ${PARAM_SRC}
918 ${LIB_NONSMBD_SRC} ${LIBSMB_ERR_SRC} ${LIBNMB_SRC}'''
920 WBINFO_SRC
= '''../nsswitch/wbinfo.c'''
922 WINBIND_NSS_SRC
= '''${WBCOMMON_SRC} ${LIBREPLACE_SRC}'''
924 WINBIND_KRB5_LOCATOR_SRC1
= '../nsswitch/winbind_krb5_locator.c'
925 WINBIND_KRB5_LOCATOR_SRC
= '''${WINBIND_KRB5_LOCATOR_SRC1} ${LIBREPLACE_SRC}'''
927 POPT_SRC
= '''../lib/popt/findme.c ../lib/popt/popt.c ../lib/popt/poptconfig.c \
928 ../lib/popt/popthelp.c ../lib/popt/poptparse.c'''
930 NTLM_AUTH_SRC1
= '''utils/ntlm_auth.c utils/ntlm_auth_diagnostics.c'''
932 NTLM_AUTH_SRC
= '''${NTLM_AUTH_SRC1}
933 ../libcli/auth/spnego_parse.c libsmb/clikrb5.c libads/kerberos.c
934 libsmb/samlogon_cache.c
936 ${LIBNDR_NETLOGON_SRC}'''
939 VLP_SRC
= '''printing/tests/vlp.c
940 ../lib/util/util_tdb.c
944 RPC_OPEN_TCP_SRC
= 'torture/rpc_open_tcp.c'
946 DBWRAP_TOOL_SRC
= 'utils/dbwrap_tool.c'
948 DBWRAP_TORTURE_SRC
= 'utils/dbwrap_torture.c'
950 SPLIT_TOKENS_SRC
= 'utils/split_tokens.c'
954 bld
.SAMBA_GENERATOR('build_options',
955 source
='include/config.h script/mkbuildoptions-waf.awk',
956 target
='smbd/build_options.c',
957 rule
='${AWK} -f ${SRC[1].abspath(env)} > ${TGT} < ${SRC[0].abspath(env)}')
959 t
= bld
.SAMBA_GENERATOR('build_env.h',
960 source
='script/build_env.sh',
961 target
='include/build_env.h',
962 rule
='${SRC} ${SRCDIR} ${BUILDDIR} ${CC} > ${TGT}')
963 # todo: work out what is really wanted here
964 t
.env
.SRCDIR
= bld
.path
.abspath()
965 t
.env
.BUILDDIR
= bld
.path
.abspath()
968 bld
.SETUP_BUILD_GROUPS()
970 bld
.RECURSE('../lib/replace')
971 bld
.RECURSE('../libcli/smbreadline')
972 print "SBINDIR=%s" % bld
.env
.SBINDIR
975 bld
.RECURSE('../librpc')
976 bld
.RECURSE('librpc/idl')
977 bld
.RECURSE('librpc')
979 bld
.SAMBA_MKVERSION('include/version.h')
981 for prefix
in bld
.env
.MODULE_PREFIXES
:
983 if prefix
== 'auth': continue
984 if prefix
== 'pdb': continue
985 if prefix
== 'idmap': continue
986 if prefix
== 'charset': continue
987 if prefix
== 'perfcount': continue
988 if prefix
== 'gpext': continue
989 if prefix
== 'vfs': continue
990 if prefix
== 'nss_info': continue
992 static_key
= "%s_STATIC" % prefix
.upper()
993 shared_key
= "%s_SHARED" % prefix
.upper()
995 for module
in bld
.env
[static_key
]:
996 bld
.SAMBA_SUBSYSTEM(module
,
997 source
="${%s_SRC}" % module
,
1000 # Set up subsystems for the shared modules
1001 for module
in bld
.env
[shared_key
]:
1002 bld
.SAMBA_MODULE(module
,
1003 source
="${%s_SRC}" % module
,
1006 ######################## SUBSYSTEMS #################################
1008 bld
.SAMBA_SUBSYSTEM('WBCOMMON',
1009 source
=WBCOMMON_SRC
)
1011 bld
.SAMBA_LIBRARY('libwbclient',
1012 source
='''../nsswitch/libwbclient/wbc_guid.c
1013 ../nsswitch/libwbclient/wbc_idmap.c
1014 ../nsswitch/libwbclient/wbclient.c
1015 ../nsswitch/libwbclient/wbc_pam.c
1016 ../nsswitch/libwbclient/wbc_pwd.c
1017 ../nsswitch/libwbclient/wbc_sid.c
1018 ../nsswitch/libwbclient/wbc_util.c''',
1019 public_headers
='../nsswitch/libwbclient/wbclient.h',
1020 public_deps
='talloc WBCOMMON')
1022 bld
.SAMBA_LIBRARY('libnetapi',
1023 source
=LIBNETAPI_SRC
,
1024 public_deps
='''talloc tdb cap libwbclient LIB_NONSMBD LIBSMB KRBCLIENT
1025 PASSDB SMBLDAP GROUPDB PARAM_WITHOUT_REG DYNCONFIG
1026 LIBMSRPC_GEN LIBMSRPC LIBADS LIBNET DCUTIL NDR_LIBNETAPI''',
1027 public_headers
='lib/netapi/netapi.h',
1030 bld
.SAMBA_LIBRARY('libsmbclient',
1031 source
=LIBSMBCLIENT_SRC
,
1032 public_deps
='''talloc tdb libwbclient cap PARAM LIB_NONSMBD LIBSMB KRBCLIENT PASSDB SMBLDAP GROUPDB
1033 LIBMSRPC_GEN LIBMSRPC''',
1034 public_headers
='include/libsmbclient.h',
1037 bld
.SAMBA_LIBRARY('libsmbsharemodes',
1038 source
=LIBSMBSHAREMODES_SRC
,
1039 public_deps
='''talloc tdb''',
1040 public_headers
='include/smb_share_modes.h',
1043 bld
.SAMBA_LIBRARY('libaddns',
1044 source
=LIBADDNS_SRC
,
1045 deps
='SOCKET_WRAPPER',
1046 public_deps
='talloc krb5 k5crypto com_err gssapi gssapi_krb5',
1049 bld
.SAMBA_SUBSYSTEM('LIBMSRPC',
1050 source
='${LIBMSRPC_SRC}',
1051 deps
='LIBNDR NDR_SECURITY NDR_DCERPC',
1054 bld
.SAMBA_SUBSYSTEM('LIBMSRPC_GEN',
1055 source
='${LIBNDR_GEN_SRC}',
1056 deps
='LIBNDR NDR_SECURITY NDR_DCERPC NDR_EVENTLOG NDR_LSA',
1059 bld
.SAMBA_SUBSYSTEM('LIBGPO',
1060 source
='${LIBGPO_SRC}',
1064 bld
.SAMBA_SUBSYSTEM('ASN1_UTIL',
1065 source
='../lib/util/asn1.c',
1067 local_include
=False)
1069 bld
.SAMBA_SUBSYSTEM('LIBCLI_LDAP_MESSAGE',
1070 source
=LIBCLI_LDAP_MESSAGE_SRC
)
1072 bld
.SAMBA_SUBSYSTEM('LIBCLI_LDAP_NDR',
1073 source
=LIBCLI_LDAP_NDR_SRC
)
1075 bld
.SAMBA_SUBSYSTEM('AVAHI',
1077 deps
='avahi-common avahi-client',
1078 enabled
=bld
.env
.with_avahi
)
1080 bld
.SAMBA_SUBSYSTEM('GROUPDB',
1083 bld
.SAMBA_SUBSYSTEM('TLDAP',
1085 deps
='ASN1_UTIL LIBTSOCKET')
1087 bld
.SAMBA_SUBSYSTEM('PASSDB',
1089 deps
='''GROUPDB TLDAP SECRETS SMBLDAP PDB''',
1092 bld
.SAMBA_SUBSYSTEM('PARAM_WITHOUT_REG',
1093 source
=PARAM_WITHOUT_REG_SRC
)
1095 bld
.SAMBA_SUBSYSTEM('PARAM',
1097 deps
='PARAM_WITHOUT_REG DYNCONFIG',
1100 bld
.SAMBA_SUBSYSTEM('REGFIO',
1104 bld
.SAMBA_SUBSYSTEM('REG_API_REGF',
1105 source
=REG_API_REGF_SRC
,
1108 bld
.SAMBA_SUBSYSTEM('POPT_SAMBA',
1109 source
=POPT_LIB_SRC
,
1112 bld
.SAMBA_SUBSYSTEM('KRBCLIENT',
1113 source
=KRBCLIENT_SRC
,
1114 deps
='krb5 k5crypto com_err gssapi gssapi_krb5',
1117 bld
.SAMBA_SUBSYSTEM('LIBS',
1119 deps
='NSS_WRAPPER iconv LIBCRYPTO LIBNDR NDR_SECURITY charset NDR_MESSAGING',
1122 bld
.SAMBA_SUBSYSTEM('LIB_NONSMBD',
1123 source
=LIB_NONSMBD_SRC
,
1127 bld
.SAMBA_SUBSYSTEM('LIBSMB_ERR',
1128 source
=LIBSMB_ERR_SRC
,
1129 deps
='SECRETS ldap lber',
1132 bld
.SAMBA_SUBSYSTEM('LIBSAMBA',
1133 source
=LIBSAMBA_SRC
,
1137 bld
.SAMBA_SUBSYSTEM('LIBSMB',
1139 deps
='LIBSAMBA ZLIB CLDAP',
1142 bld
.SAMBA_SUBSYSTEM('CLDAP',
1144 deps
='LIBCLI_LDAP_MESSAGE LIBCLI_LDAP_NDR',
1147 bld
.SAMBA_SUBSYSTEM('SECRETS',
1152 bld
.SAMBA_SUBSYSTEM('SMBLDAP',
1157 bld
.SAMBA_SUBSYSTEM('LIBADS',
1159 deps
='LIBCLI_LDAP_NDR',
1162 bld
.SAMBA_SUBSYSTEM('LIBADS_SERVER',
1163 source
=LIBADS_SERVER_SRC
,
1167 bld
.SAMBA_SUBSYSTEM('LIBADS_PRINTER',
1168 source
=LIBADS_PRINTER_SRC
,
1171 bld
.SAMBA_SUBSYSTEM('LIBAFS',
1175 bld
.SAMBA_SUBSYSTEM('LIBAFS_SETTOKEN',
1176 source
=AFS_SETTOKEN_SRC
,
1179 bld
.SAMBA_SUBSYSTEM('SMBD_BASE',
1180 source
=SMBD_SRC_BASE
,
1181 deps
='''tdb tevent dl krb5 ldap gssapi gssapi_krb5
1182 NSS_WRAPPER DYNCONFIG libwbclient crypt nsl cups cap resolv ZLIB PASSDB
1183 PARAM_WITHOUT_REG LIBS LIBSMB POPT_SAMBA KRBCLIENT AVAHI
1184 LIBMSRPC_GEN LIBMSRPC LIBADS LIBADS_SERVER LIBADS_PRINTER
1185 vfs vfs_default vfs_posixacl RPC_MODULES auth LOCKING LIBAFS LIBAFS_SETTOKEN PROFILE LIBNET LIBEVENTLOG
1186 REGFIO REG_API_REGF PRINTING PRINTBACKEND SERVICES NDR_XATTR NDR_PERFCOUNT SOCKET_WRAPPER
1190 if not bld
.env
.developer
:
1191 bld
.SAMBA_SUBSYSTEM('RPC_RPCECHO',
1194 bld
.SAMBA_SUBSYSTEM('RPC_MODULES',
1196 deps
='''RPC_LSARPC RPC_SAMR RPC_WINREG RPC_INITSHUTDOWN
1197 RPC_DSSETUP RPC_WKSSVC RPC_SVCCTL RPC_NTSVCS
1198 RPC_NETLOGON RPC_NETDFS RPC_SRVSVC RPC_SPOOLSS
1199 RPC_EVENTLOG RPC_RPCECHO''')
1201 bld
.SAMBA_SUBSYSTEM('LOCKING',
1202 source
='${LOCKING_SRC}',
1203 deps
='''tdb talloc''',
1206 bld
.SAMBA_SUBSYSTEM('PROFILE',
1207 source
='${PROFILE_SRC}',
1210 bld
.SAMBA_SUBSYSTEM('PRINTBASE',
1211 source
=PRINTBASE_SRC
,
1214 bld
.SAMBA_SUBSYSTEM('PRINTBACKEND',
1215 source
=PRINTBACKEND_SRC
,
1216 deps
='PRINTBASE NDR_NTPRINTING LIBADS_PRINTER',
1219 bld
.SAMBA_SUBSYSTEM('PRINTING',
1220 source
=PRINTING_SRC
,
1223 bld
.SAMBA_SUBSYSTEM('PASSWD_UTIL',
1224 source
=PASSWD_UTIL_SRC
,
1227 bld
.SAMBA_SUBSYSTEM('DISPLAY_SEC',
1228 source
=DISPLAY_SEC_SRC
,
1231 bld
.SAMBA_SUBSYSTEM('LIBNET',
1233 deps
='NDR_LIBNET_JOIN',
1236 bld
.SAMBA_SUBSYSTEM('LIBNET_DSSYNC',
1237 source
=LIBNET_DSSYNC_SRC
,
1241 bld
.SAMBA_SUBSYSTEM('LIBNET_SAMSYNC',
1242 source
=LIBNET_SAMSYNC_SRC
,
1246 bld
.SAMBA_SUBSYSTEM('LIBEVENTLOG',
1247 source
=LIB_EVENTLOG_SRC
,
1248 deps
='NDR_EVENTLOG',
1251 bld
.SAMBA_SUBSYSTEM('SERVICES',
1252 source
=SERVICES_SRC
,
1255 bld
.SAMBA_SUBSYSTEM('PLAINTEXT_AUTH',
1256 source
=PLAINTEXT_AUTH_SRC
,
1259 bld
.SAMBA_SUBSYSTEM('SLCACHE',
1263 bld
.SAMBA_SUBSYSTEM('DCUTIL',
1267 bld
.SAMBA_SUBSYSTEM('LIBNDR',
1272 bld
.SAMBA_SUBSYSTEM('NDR_STANDARD',
1277 bld
.SAMBA_SUBSYSTEM('dcerpc', '')
1279 bld
.SAMBA_SUBSYSTEM('LZXPRESS',
1281 source
='../lib/compression/lzxpress.c')
1283 bld
.SAMBA_SUBSYSTEM('NDR_SECURITY',
1284 source
='''../librpc/gen_ndr/ndr_security.c ../librpc/ndr/ndr_sec_helper.c''',
1288 bld
.SAMBA_SUBSYSTEM('NDR_DCERPC',
1289 source
='../librpc/gen_ndr/ndr_dcerpc.c',
1292 bld
.SAMBA_SUBSYSTEM('LIBSAMBA-ERRORS',
1293 source
='../libcli/util/doserr.c libsmb/nterr.c')
1295 bld
.SAMBA_SUBSYSTEM('NDR_NBT_BUF',
1296 source
='../libcli/nbt/nbtname.c',
1298 autoproto
='nbtname.h')
1300 bld
.SAMBA_SUBSYSTEM('LIBCLI_NDR_NETLOGON',
1301 source
='../libcli/ndr_netlogon.c',
1302 public_deps
='LIBNDR NDR_SECURITY')
1304 bld
.SAMBA_SUBSYSTEM('RPCCLI_WINREG',
1305 source
='../librpc/gen_ndr/cli_winreg.c',
1306 public_deps
='RPC_NDR_WINREG')
1308 ########################## BINARIES #################################
1310 bld
.SAMBA_BINARY('smbd/smbd',
1311 source
='${SMBD_SRC_MAIN}',
1312 deps
='''SMBD_BASE''',
1313 install_path
='${SBINDIR}',
1316 bld
.SAMBA_BINARY('nmbd/nmbd',
1318 deps
='''talloc tdb tevent ZLIB cap resolv libwbclient dl
1319 NSS_WRAPPER PASSDB PARAM ldap LIB_NONSMBD LIBSMB
1320 POPT_SAMBA KRBCLIENT NDR_SAMR NDR_LSA''',
1321 install_path
='${SBINDIR}',
1324 bld
.SAMBA_BINARY('winbindd/winbindd',
1325 source
=WINBINDD_SRC
,
1326 deps
='''talloc tdb tevent cap dl ZLIB NSS_WRAPPER
1327 libwbclient PASSDB ldap resolv PARAM LIB_NONSMBD LIBSMB
1328 POPT_SAMBA KRBCLIENT LIBMSRPC_GEN LIBMSRPC LIBADS LIBADS_SERVER
1329 SRV_NDR_WBINT RPCCLI_NDR_WBINT LIBAFS
1330 LIBAFS_SETTOKEN PROFILE SLCACHE DCUTIL idmap nss_info
1332 enabled
=bld
.env
.build_winbind
,
1333 install_path
='${SBINDIR}',
1336 bld
.SAMBA_BINARY('web/swat',
1338 deps
='''talloc tevent cap LIBS LIBSMB libwbclient PARAM
1339 LIB_NONSMBD resolv PASSDB POPT_SAMBA KRBCLIENT cups
1340 LIBMSRPC_GEN LIBMSRPC LOCKING PLAINTEXT_AUTH PRINTBASE PRINTING''',
1341 enabled
=bld
.env
.build_swat
,
1342 install_path
='${SBINDIR}',
1345 bld
.SAMBA_BINARY('rpcclient/rpcclient',
1346 source
=RPCCLIENT_SRC
,
1347 deps
='''talloc tdb cap resolv POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
1348 PARAM_WITHOUT_REG libwbclient PARAM KRBCLIENT LIBMSRPC_GEN LIBMSRPC
1349 LIBADS SMBREADLINE DISPLAY_SEC DCUTIL RPCCLI_WINREG''',
1352 bld
.SAMBA_BINARY('smbclient',
1354 deps
='''talloc tdb cap resolv POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
1355 PARAM_WITHOUT_REG libwbclient PARAM KRBCLIENT LIBMSRPC_GEN
1356 LIBMSRPC SMBREADLINE DISPLAY_SEC SOCKET_WRAPPER''',
1359 bld
.SAMBA_BINARY('net',
1361 deps
='''talloc tdb libnetapi libaddns cap resolv POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
1362 PARAM_WITHOUT_REG libwbclient PARAM KRBCLIENT LIBMSRPC_GEN LIBMSRPC LIBGPO LIBADS LIBADS_SERVER LIBADS_PRINTER
1363 LOCALE_DIR LIBAFS LIBAFS_SETTOKEN SMBREADLINE PASSWD_UTIL LIBNET
1364 LIBNET_DSSYNC LIBNET_SAMSYNC LIBEVENTLOG DISPLAY_SEC DCUTIL
1365 REGFIO NDR_NTPRINTING RPCCLI_WINREG''',
1368 bld
.SAMBA_BINARY('profiles',
1369 source
=PROFILES_SRC
,
1370 deps
='''talloc tdb cap tevent POPT_SAMBA PARAM LIBS LIBSMB_ERR LIB_NONSMBD REGFIO''',
1373 bld
.SAMBA_BINARY('smbspool',
1375 deps
='''talloc tdb tevent resolv cap libwbclient POPT_SAMBA PARAM LIBSMB LIB_NONSMBD LIBS
1376 KRBCLIENT ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA''',
1379 bld
.SAMBA_BINARY('testparm',
1380 source
=TESTPARM_SRC
,
1381 deps
='''talloc tevent ldap cap NSS_WRAPPER
1382 libwbclient ASN1_UTIL LIBTSOCKET PASSDB PARAM LIB_NONSMBD
1383 LIBSMB_ERR POPT_SAMBA''',
1386 bld
.SAMBA_BINARY('smbta-util',
1387 source
=SMBTA_UTIL_SRC
,
1388 deps
='''talloc tdb tevent cap PARAM POPT_SAMBA LIB_NONSMBD
1392 bld
.SAMBA_BINARY('smbstatus',
1394 deps
='''talloc tdb tevent cap PARAM POPT_SAMBA LIB_NONSMBD
1395 LIBSMB_ERR LOCKING PROFILE''',
1398 bld
.SAMBA_BINARY('smbcontrol',
1399 source
=SMBCONTROL_SRC
,
1400 deps
='''talloc tdb tevent cap PARAM LIB_NONSMBD LIBSMB_ERR POPT_SAMBA PRINTBASE''',
1403 bld
.SAMBA_BINARY('smbtree',
1405 deps
='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD
1406 LIBSMB LIBSMB_ERR POPT_SAMBA KRBCLIENT PASSDB SMBLDAP GROUPDB LIBMSRPC_GEN LIBMSRPC PROFILE''',
1409 bld
.SAMBA_BINARY('smbpasswd',
1410 source
=SMBPASSWD_SRC
,
1411 deps
='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD
1412 LIBSMB LIBSMB_ERR POPT_SAMBA KRBCLIENT PASSDB SMBLDAP GROUPDB LIBMSRPC_GEN LIBMSRPC PASSWD_UTIL''',
1415 bld
.SAMBA_BINARY('pdbedit',
1417 deps
='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD
1418 LIBSAMBA LIBSMB_ERR POPT_SAMBA PASSDB SMBLDAP GROUPDB
1419 PASSWD_UTIL LIBCLI_LDAP_NDR''',
1422 bld
.SAMBA_BINARY('smbget',
1424 deps
='''talloc tdb libsmbclient POPT_SAMBA''',
1427 bld
.SAMBA_BINARY('nmblookup',
1428 source
=NMBLOOKUP_SRC
,
1429 deps
='''talloc tdb tevent cap resolv PARAM LIB_NONSMBD POPT_SAMBA LIBSMB_ERR SOCKET_WRAPPER''',
1432 bld
.SAMBA_BINARY('smbtorture',
1433 source
=SMBTORTURE_SRC
,
1434 deps
='''talloc tdb tevent cap resolv libwbclient PARAM LIBSMB KRBCLIENT
1435 LIB_NONSMBD POPT_SAMBA ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA''',
1438 bld
.SAMBA_BINARY('smbconftort',
1439 source
=SMBCONFTORT_SRC
,
1440 deps
='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD LIBSMB_ERR POPT_SAMBA''',
1443 bld
.SAMBA_BINARY('masktest',
1444 source
=MASKTEST_SRC
,
1445 deps
='''talloc tdb cap resolv libwbclient PARAM LIB_NONSMBD LIBSMB KRBCLIENT
1446 ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA''',
1449 bld
.SAMBA_BINARY('msgtest',
1451 deps
='''talloc tdb tevent cap resolv PARAM LIBSMB_ERR LIB_NONSMBD''',
1454 bld
.SAMBA_BINARY('smbcacls',
1455 source
=SMBCACLS_SRC
,
1456 deps
='''talloc tdb cap resolv libwbclient PARAM LIBSMB KRBCLIENT
1457 LIB_NONSMBD PASSDB GROUPDB POPT_SAMBA SMBLDAP LIBMSRPC_GEN
1461 bld
.SAMBA_BINARY('smbcquotas',
1462 source
=SMBCQUOTAS_SRC
,
1463 deps
='''talloc tdb cap resolv libwbclient PARAM LIB_NONSMBD LIBSMB KRBCLIENT
1464 POPT_SAMBA PASSDB SMBLDAP GROUPDB LIBMSRPC_GEN LIBMSRPC''',
1467 bld
.SAMBA_BINARY('eventlogadm',
1468 source
=EVTLOGADM_SRC
,
1469 deps
='''talloc tevent cap POPT_SAMBA LIBS PARAM
1470 LIB_NONSMBD LIBSMB_ERR PASSDB libwbclient LIBEVENTLOG''',
1473 bld
.SAMBA_BINARY('sharesec',
1474 source
=SHARESEC_SRC
,
1475 deps
='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD LIBSMB_ERR POPT_SAMBA''',
1478 bld
.SAMBA_BINARY('locktest',
1479 source
=LOCKTEST_SRC
,
1480 deps
='''talloc tdb tevent cap resolv libwbclient PARAM KRBCLIENT LIBSMB LIB_NONSMBD
1481 ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA LOCKING''',
1484 bld
.SAMBA_BINARY('nsstest',
1489 bld
.SAMBA_BINARY('pdbtest',
1491 deps
='''talloc tdb cap resolv libwbclient PARAM LIBSMB KRBCLIENT LIB_NONSMBD PASSDB GROUPDB
1492 SMBLDAP POPT_SAMBA NDR_SAMR NDR_LSA''',
1495 bld
.SAMBA_BINARY('vfstest',
1497 deps
='''SMBD_BASE SMBREADLINE''',
1500 bld
.SAMBA_BINARY('smbiconv',
1501 source
=SMBICONV_SRC
,
1502 deps
='''talloc tdb tevent cap PARAM LIB_NONSMBD POPT_SAMBA LIBSMB_ERR''',
1505 bld
.SAMBA_BINARY('log2pcap',
1506 source
=LOG2PCAP_SRC
,
1507 deps
='''talloc popt''',
1510 bld
.SAMBA_BINARY('locktest2',
1511 source
=LOCKTEST2_SRC
,
1512 deps
='''talloc tdb tevent cap resolv libwbclient PARAM KRBCLIENT LIBSMB LIB_NONSMBD
1513 ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA LOCKING''',
1516 bld
.SAMBA_BINARY('debug2html',
1517 source
=DEBUG2HTML_SRC
,
1518 deps
='''talloc popt''',
1521 bld
.SAMBA_BINARY('smbfilter',
1522 source
=SMBFILTER_SRC
,
1523 deps
='''talloc tevent cap resolv libwbclient PARAM LIBSMB LIB_NONSMBD KRBCLIENT ASN1_UTIL LIBTSOCKET
1524 NDR_SAMR NDR_LSA''',
1527 bld
.SAMBA_BINARY('versiontest',
1528 source
='lib/version_test.c ${VERSION_SRC}',
1531 bld
.SAMBA_BINARY('wbinfo',
1533 deps
='''talloc libwbclient tevent cap
1534 NSS_WRAPPER ASN1_UTIL LIBTSOCKET PASSDB ldap PARAM LIB_NONSMBD
1535 LIBSAMBA POPT_SAMBA LIBAFS_SETTOKEN''',
1538 bld
.SAMBA_BINARY('ntlm_auth',
1539 source
=NTLM_AUTH_SRC
,
1540 deps
='''tdb talloc cap resolv krb5 k5crypto com_err libwbclient PARAM LIB_NONSMBD
1541 LIBS LIBSAMBA POPT_SAMBA ASN1_UTIL LIBTSOCKET
1542 PASSDB GROUPDB SMBLDAP WBCOMMON LIBINIPARSER LIBADS_SERVER
1543 NDR_SAMR NDR_LSA LIBCLI_LDAP_NDR''',
1546 bld
.SAMBA_BINARY('timelimit',
1547 source
='script/tests/timelimit.c',
1550 bld
.SAMBA_BINARY('rpc_open_tcp',
1551 source
=RPC_OPEN_TCP_SRC
,
1552 deps
='''talloc tdb tevent resolv cap libwbclient KRBCLIENT PARAM LIBS LIBSMB LIB_NONSMBD
1553 LIBSMB_ERR ASN1_UTIL LIBTSOCKET LIBMSRPC_GEN LIBMSRPC''',
1556 bld
.SAMBA_BINARY('test_lp_load',
1557 source
=TEST_LP_LOAD_SRC
,
1558 deps
='''talloc tdb tevent cap libwbclient PARAM LIB_NONSMBD POPT_SAMBA LIBSAMBA''',
1561 bld
.SAMBA_BINARY('dbwrap_tool',
1562 source
=DBWRAP_TOOL_SRC
,
1563 deps
='''talloc tdb tevent cap PARAM LIB_NONSMBD LIBSMB_ERR''',
1566 bld
.SAMBA_BINARY('dbwrap_torture',
1567 source
=DBWRAP_TORTURE_SRC
,
1568 deps
='''talloc tdb tevent cap PARAM LIB_NONSMBD LIBSMB_ERR
1572 bld
.SAMBA_BINARY('split_tokens',
1573 source
=SPLIT_TOKENS_SRC
,
1574 deps
='''talloc tdb tevent cap libwbclient PARAM LIB_NONSMBD POPT_SAMBA
1578 bld
.SAMBA_BINARY('vlp',
1580 deps
='''talloc tdb NSS_WRAPPER''',
1583 swat_files
=recursive_dirlist('../swat', '../swat', '*')
1584 bld
.INSTALL_FILES('${SWATDIR}', swat_files
, base_name
='../swat')
1586 ########################## INCLUDES #################################
1588 bld
.RECURSE('../lib/socket_wrapper')
1589 bld
.RECURSE('../lib/talloc')
1590 bld
.RECURSE('../lib/tdb')
1591 bld
.RECURSE('../lib/nss_wrapper')
1592 bld
.RECURSE('../lib/tevent')
1593 bld
.RECURSE('../lib/popt')
1594 bld
.RECURSE('../lib/zlib')
1595 bld
.RECURSE('../lib/tsocket')
1596 bld
.RECURSE('../lib/iniparser/src')
1597 bld
.RECURSE('../lib/crypto')
1598 bld
.RECURSE('modules')
1600 bld
.RECURSE('passdb')
1601 bld
.RECURSE('winbindd')
1602 bld
.RECURSE('libgpo/gpext')
1603 bld
.RECURSE('pam_smbpass')
1605 bld
.ENFORCE_GROUP_ORDERING()
1606 bld
.CHECK_PROJECT_RULES()