3 from samba_utils
import *
4 import samba_version
, samba3
8 config_h
= "../include/config.h"
10 bld
.SAMBA_BLDOPTIONS('smbd/build_options.c')
12 t
= bld
.SAMBA_GENERATOR('build_env.h',
13 source
='script/build_env.sh',
14 target
='include/build_env.h',
15 rule
='${SRC} ${SRCDIR} ${BUILDDIR} ${CC} > ${TGT}')
16 # todo: work out what is really wanted here
17 t
.env
.SRCDIR
= bld
.path
.abspath()
18 t
.env
.BUILDDIR
= bld
.path
.abspath()
20 bld
.SETUP_BUILD_GROUPS()
22 ######################## SUBSYSTEMS #################################
24 bld
.SAMBA3_LIBRARY('netapi',
25 source
='''lib/netapi/netapi.c
27 lib/netapi/libnetapi.c
28 lib/netapi/joindomain.c
29 lib/netapi/serverinfo.c
30 lib/netapi/wkstainfo.c
34 lib/netapi/localgroup.c
40 lib/netapi/netlogon.c''',
54 public_headers
='../source3/lib/netapi/netapi.h',
55 pc_files
='libnet/netapi.pc',
58 bld
.SAMBA3_LIBRARY('smbsharemodes',
59 source
='libsmb/smb_share_modes.c',
60 public_deps
='''talloc tdb_compat''',
62 public_headers
='include/smb_share_modes.h',
63 pc_files
='libsmb/smbsharemodes.pc',
66 bld
.SAMBA3_LIBRARY('nss_wins',
67 source
='../nsswitch/wins.c',
68 deps
='''param libsmb LIBTSOCKET''',
69 realname
='libnss_wins.so.2',
70 soname
='libnss_wins.so',
73 bld
.SAMBA3_LIBRARY('gse',
74 source
='librpc/crypto/gse_krb5.c librpc/crypto/gse.c',
75 deps
='krb5samba gensec param KRBCLIENT secrets3',
78 bld
.SAMBA3_LIBRARY('msrpc3',
79 source
='''rpc_client/cli_pipe.c
80 rpc_client/rpc_transport_np.c
81 rpc_client/rpc_transport_sock.c
82 rpc_client/rpc_transport_tstream.c
83 librpc/rpc/dcerpc_helpers.c''',
84 deps
='''ndr ndr-standard
85 RPC_NDR_EPMAPPER NTLMSSP_COMMON COMMON_SCHANNEL LIBCLI_AUTH
86 LIBTSOCKET gse dcerpc-binding
87 libsmb ndr-table NETLOGON_CREDS_CLI
91 bld
.SAMBA3_LIBRARY('gpo',
92 source
='''../libgpo/gpo_ldap.c
99 deps
='talloc ads TOKEN_UTIL gpext auth',
100 private_library
=True)
102 bld
.SAMBA3_SUBSYSTEM('AVAHI',
103 source
='lib/avahi.c smbd/avahi_register.c',
104 deps
='avahi-common avahi-client',
105 enabled
=bld
.env
.with_avahi
)
107 bld
.SAMBA3_SUBSYSTEM('GROUPDB',
108 source
='groupdb/mapping.c groupdb/mapping_tdb.c',
111 bld
.SAMBA3_SUBSYSTEM('TLDAP',
112 source
='''lib/tldap.c
115 deps
='asn1util LIBTSOCKET')
117 # libpdb.so should not expose internal symbols that are only usable
118 # to the statically linked modules that are merged into libpdb.
119 # Note that we always filter these symbols out in libpdb, even
120 # when modules are not linked statically. In the latter case
121 # symbols will not be present in the libpdb anyway so no hurt is
122 # done to the version script.
123 static_pdb_match
= ['tdbsam', 'smbpasswd', 'wbc_sam']
124 private_pdb_match
= []
126 # AD DC module when linked statically will pull in few source4/winbind
127 # dependencies which are not used outside AD DC module
128 static_pdb_match
.append('samba_dsdb')
129 private_pdb_match
.append('!idmap_init')
130 private_pdb_match
.append('!idmap_sids_to_xids')
131 private_pdb_match
.append('!idmap_xids_to_sids')
133 # ldap module is actually three modules merged together: ldapsam, ipa, and nds
134 static_pdb_match
= static_pdb_match
+ ['ldap', 'ipa', 'nds']
135 ldapsam_pdb_match
= ['!priv2ld', '!smbldap_search_domain_info',
136 '!ldapsam_*', '!groupmap_attr_list*', '!get_userattr_list',
137 '!dominfo_attr_list', '!get_attr_key2string',
138 '!sidmap_attr_list', '!attrib_map_*', '!idpool_attr_list',
140 private_pdb_match
.append('!pdb_nds_*')
141 private_pdb_match
.append('!pdb_init_ldapsam')
142 private_pdb_match
.append('!pdb_ldapsam_init*')
143 private_pdb_match
= private_pdb_match
+ ldapsam_pdb_match
145 private_pdb_match
= private_pdb_match
+ map(lambda x
: '!pdb_%s_init' % x
, static_pdb_match
)
147 bld
.SAMBA3_LIBRARY('pdb',
148 source
='''passdb/pdb_get_set.c
153 lib/util_sid_passdb.c
162 passdb/pdb_interface.c
164 passdb/pdb_unixid.c''',
165 deps
='secrets3 GROUPDB SERVER_MUTEX wbclient LIBCLI_AUTH flag_mapping samba-credentials',
166 private_library
=False,
168 public_headers_install
=True,
172 passdb/lookup_sid.h''',
173 abi_match
=private_pdb_match
,
174 abi_directory
='passdb/ABI',
177 bld
.SAMBA3_LIBRARY('smbldaphelper',
178 source
='passdb/pdb_ldap_schema.c passdb/pdb_ldap_util.c',
179 deps
='smbldap secrets3',
180 allow_undefined_symbols
=True,
181 enabled
=bld
.CONFIG_SET('HAVE_LDAP'),
182 private_library
=True)
184 bld
.SAMBA3_SUBSYSTEM('SERVER_MUTEX',
185 source
='lib/server_mutex.c',
188 bld
.SAMBA3_SUBSYSTEM('param',
189 source
='''param/loadparm.c
191 lib/ldap_debug_handler.c
194 deps
='samba-util PARAM_UTIL ldap lber LOADPARM_CTX samba3core smbconf param_local.h param_global.h cups''')
196 # this includes only the low level parse code, not stuff
197 # that requires knowledge of security contexts
198 bld.SAMBA3_SUBSYSTEM('REG_PARSE_PRS
',
199 source='registry
/reg_parse_prs
.c
')
201 bld.SAMBA3_SUBSYSTEM('REGFIO
',
202 source='registry
/regfio
.c
',
203 deps='samba
-util REG_PARSE_PRS
')
205 bld.SAMBA3_SUBSYSTEM('REG_API_REGF
',
206 source='registry
/reg_api_regf
.c
',
209 bld.SAMBA3_LIBRARY('smbregistry
',
210 source='''registry/reg_api.c
211 registry/reg_dispatcher.c
212 registry/reg_cachehook.c
213 registry/reg_objects.c
214 registry/reg_util_internal.c
216 registry/reg_backend_db.c
217 registry/reg_parse_internal.c
220 registry/reg_init_basic.c''',
221 deps='''smbd_shim tdb-wrap3 NDR_SECURITY util_tdb talloc
222 replace util_reg samba-util samba-security
223 errors3 dbwrap samba3-util''',
224 allow_undefined_symbols=True,
226 private_library=True)
228 bld.SAMBA3_SUBSYSTEM('REG_SMBCONF
',
229 source='''registry/reg_backend_smbconf.c
230 registry/reg_init_smbconf.c
231 registry/reg_util_token.c
232 registry/reg_api_util.c''',
235 bld.SAMBA3_SUBSYSTEM('REG_FULL
',
236 source='''registry/reg_backend_printing.c
237 registry/reg_backend_shares.c
238 registry/reg_backend_netlogon_params.c
239 registry/reg_backend_prod_options.c
240 registry/reg_backend_tcpip_params.c
241 registry/reg_backend_hkpt_params.c
242 registry/reg_backend_current_version.c
243 registry/reg_backend_perflib.c
244 registry/reg_init_full.c
245 registry/reg_perfcount.c''',
246 deps='REG_SMBCONF tdb
-wrap3
')
248 bld.SAMBA3_LIBRARY('popt_samba3
',
249 source='lib
/popt_common
.c
',
250 deps='popt samba
-util util_cmdline
',
251 private_library=True)
253 bld.SAMBA3_LIBRARY('util_cmdline
',
254 source='lib
/util_cmdline
.c
',
256 private_library=True)
258 bld.SAMBA3_SUBSYSTEM('KRBCLIENT
',
259 source='libads
/kerberos
.c libads
/ads_status
.c
',
261 public_deps='krb5samba k5crypto gssapi LIBTSOCKET CLDAP LIBNMB
')
263 bld.SAMBA3_SUBSYSTEM('samba3util
',
264 source='''lib/system.c
272 lib/util_transfer_file.c
274 deps='ndr samba
-security NDR_SECURITY samba
-util util_tdb ccan
-hash')
276 if bld.CONFIG_GET("CTDB_CFLAGS") and bld.CONFIG_GET("CTDB_INCLUDE"):
277 SAMBA_CLUSTER_SUPPORT_SOURCES='''
278 lib/cluster_support.c
279 lib/dbwrap/dbwrap_ctdb.c
283 torture/test_ctdbconn.c
285 SAMBA_CLUSTER_SUPPORT_DEPS='''
291 SAMBA_CLUSTER_SUPPORT_SOURCES='''
292 lib/cluster_support.c
295 SAMBA_CLUSTER_SUPPORT_DEPS='''
300 bld.SAMBA3_LIBRARY('samba
-cluster
-support
',
301 source=SAMBA_CLUSTER_SUPPORT_SOURCES,
302 deps=SAMBA_CLUSTER_SUPPORT_DEPS,
303 cflags=bld.CONFIG_GET("CTDB_CFLAGS"),
304 includes=bld.CONFIG_GET("CTDB_INCLUDE"),
305 allow_undefined_symbols=True,
306 private_library=True)
308 bld.SAMBA3_SUBSYSTEM('TDB_LIB
',
309 source='''lib/dbwrap/dbwrap_open.c
310 lib/dbwrap/dbwrap_watch.c
312 deps='dbwrap samba
-cluster
-support
')
314 bld.SAMBA3_SUBSYSTEM('samba3core
',
315 source='''lib/messages.c
322 ../lib/util/debug_s3.c
326 lib/access.c lib/smbrun.c
329 lib/substitute_generic.c
336 lib/server_contexts.c
338 lib/server_prefork_util.c
365 bld.SAMBA3_LIBRARY('smbd_shim
',
366 source='''lib/smbd_shim.c''',
368 private_library=True)
370 bld.SAMBA3_SUBSYSTEM('LIBNTLMSSP
',
371 source='''libsmb/ntlmssp.c
372 libsmb/ntlmssp_wrap.c''',
373 deps='NDR_NTLMSSP NTLMSSP_COMMON wbclient
')
375 bld.SAMBA3_SUBSYSTEM('auth_generic
',
376 source='libsmb
/auth_generic
.c
',
377 deps='LIBNTLMSSP gse gensec
')
379 bld.SAMBA3_LIBRARY('libsmb
',
380 source='''libsmb/clientgen.c
387 libsmb/clireadwrite.c
400 libsmb/reparse_symlink.c
402 libsmb/smbsock_connect.c
403 libsmb/cli_smb2_fnum.c''',
415 private_library=True)
417 bld.SAMBA3_SUBSYSTEM('CLDAP
',
418 source='libads
/cldap
.c
',
419 deps='cli
-ldap
-common cli_cldap LIBTSOCKET
')
421 # NOTE: The secrets3 library is a low level library used by several subsystems.
422 # PLEASE DO NOT make it depend on high level libraries like PDB, if you are
423 # doing that your design is wrong and needs changing. -SSS
424 bld.SAMBA3_LIBRARY('secrets3
',
425 source='''passdb/secrets.c
426 passdb/machine_account_secrets.c
428 passdb/secrets_lsa.c''',
429 deps='NDR_SECRETS param samba3util dbwrap
',
430 private_library=True)
432 bld.SAMBA3_LIBRARY('smbldap
',
433 source='lib
/smbldap
.c
',
434 deps='ldap lber samba
-util param
',
435 enabled=bld.CONFIG_SET("HAVE_LDAP"),
436 private_library=False,
437 abi_directory='lib
/ABI
',
438 abi_match='smbldap_
*',
441 public_headers='include
/smbldap
.h include
/smb_ldap
.h
')
443 bld.SAMBA3_LIBRARY('ads
',
444 source='''libads/ldap.c
446 libads/sasl_wrapping.c
448 libads/kerberos_util.c
451 libads/kerberos_keytab.c
458 deps='cli
-ldap
-common krb5samba ldap lber KRBCLIENT param LIBNMB libsmb DCUTIL smbldap
',
459 private_library=True)
461 bld.SAMBA3_SUBSYSTEM('LIBADS_SERVER
',
462 source='libads
/authdata
.c
',
463 deps='SERVER_MUTEX ndr
-krb5pac krb5samba gssapi
')
465 bld.SAMBA3_SUBSYSTEM('LIBADS_PRINTER
',
466 source='libads
/ldap_printer
.c
',
467 deps='samba
-util krb5samba
')
469 bld.SAMBA3_LIBRARY('smbconf
',
470 source='''lib/smbconf/smbconf_init.c
471 lib/smbconf/smbconf_reg.c''',
486 public_headers='../lib
/smbconf
/smbconf
.h
',
490 bld.SAMBA3_LIBRARY('smbd_conn
',
491 source='smbd
/conn
.c
',
492 deps='samba3
-util samba
-util
',
493 private_library=True)
495 bld.SAMBA3_SUBSYSTEM('sysquotas
',
498 lib/sysquotas_linux.c
505 deps='samba3
-util samba
-util
')
507 bld.SAMBA3_LIBRARY('smbd_base
',
547 printing/printspoolss.c
555 smbd/aio.c smbd/statvfs.c
559 smbd/dnsregister.c smbd/globals.c
563 smbd/smb2_sesssetup.c
572 smbd/smb2_ioctl_dfs.c
573 smbd/smb2_ioctl_filesys.c
574 smbd/smb2_ioctl_named_pipe.c
575 smbd/smb2_ioctl_network_fs.c
576 smbd/smb2_keepalive.c
582 smbd/smbXsrv_version.c
583 smbd/smbXsrv_session.c
596 smbd/notify_inotify.c
597 smbd/notify_internal.c
598 smbd/build_options.c''',
627 ''' + bld.env['dmapi_lib
'],
628 private_library=True)
630 bld.SAMBA3_SUBSYSTEM('LOCKING
',
631 source='''locking/locking.c
634 locking/share_mode_lock.c''',
641 if bld.CONFIG_GET("WITH_PROFILE"):
642 bld.SAMBA3_SUBSYSTEM('PROFILE
',
643 source='profile
/profile
.c
',
646 bld.SAMBA3_SUBSYSTEM('PROFILE
',
647 source='profile
/profile_dummy
.c
',
650 bld.SAMBA3_SUBSYSTEM('PRINTBASE
',
651 source='''printing/notify.c printing/printing_db.c''',
652 deps='samba
-util tdb_compat
')
654 bld.SAMBA3_SUBSYSTEM('PRINTBACKEND
',
655 source='''printing/printing.c
656 printing/nt_printing.c
657 printing/nt_printing_tdb.c
658 printing/nt_printing_migrate_internal.c
659 printing/nt_printing_ads.c
660 printing/queue_process.c''',
661 deps='PRINTBASE LIBADS_PRINTER tdb_compat printing_migrate
')
663 bld.SAMBA3_LIBRARY('printing_migrate
',
664 source='printing
/nt_printing_migrate
.c rpc_client
/cli_winreg_spoolss
.c printing
/nt_printing_os2
.c
',
665 deps='NDR_NTPRINTING cli_spoolss RPC_NDR_WINREG LIBCLI_WINREG param
',
666 private_library=True)
668 bld.SAMBA3_SUBSYSTEM('PRINTING
',
669 source='''printing/pcap.c
670 printing/print_svid.c
672 printing/print_cups.c
673 printing/print_generic.c
676 printing/print_standard.c
677 printing/print_iprint.c
678 printing/printer_list.c''',
679 deps='NDR_PRINTCAP tdb_compat cups
')
681 bld.SAMBA3_SUBSYSTEM('PASSWD_UTIL
',
682 source='utils
/passwd_util
.c
',
685 bld.SAMBA3_SUBSYSTEM('FNAME_UTIL
',
686 source='lib
/filename_util
.c
',
689 bld.SAMBA3_SUBSYSTEM('LIBNET
',
690 source='libnet
/libnet_join
.c
',
691 deps='NDR_LIBNET_JOIN INIT_SAMR net_keytab pdb
')
693 bld.SAMBA3_LIBRARY('net_keytab
',
694 source='libnet
/libnet_keytab
.c
',
695 deps='krb5samba ads
',
696 private_library=True)
699 bld.SAMBA3_SUBSYSTEM('LIBNET_DSSYNC
',
700 source='''libnet/libnet_dssync.c
701 libnet/libnet_dssync_passdb.c
702 libnet/libnet_dssync_keytab.c''',
704 deps='LIBNET RPC_NDR_DRSUAPI
')
706 bld.SAMBA3_SUBSYSTEM('LIBNET_SAMSYNC
',
707 source='''libnet/libnet_samsync.c
708 libnet/libnet_samsync_ldif.c
709 libnet/libnet_samsync_passdb.c
710 libnet/libnet_samsync_display.c
711 libnet/libnet_samsync_keytab.c''',
712 deps='LIBNET LIBCLI_SAMSYNC
')
714 bld.SAMBA3_SUBSYSTEM('LIBEVENTLOG
',
715 source='lib
/eventlog
/eventlog
.c
',
716 deps='NDR_EVENTLOG tdb_compat
')
718 bld.SAMBA3_SUBSYSTEM('LIBNMB
',
719 source='''libsmb/unexpected.c
724 libads/sitename_cache.c''',
725 deps='addns lmhosts resolv
')
727 bld.SAMBA3_SUBSYSTEM('SERVICES
',
728 source='''services/svc_spoolss.c
729 services/svc_rcinit.c
730 services/svc_winreg_glue.c
731 services/svc_netlogon.c
732 services/svc_winreg.c
733 services/svc_wins.c''',
736 bld.SAMBA3_SUBSYSTEM('PLAINTEXT_AUTH
',
737 source='''auth/pampass.c auth/pass_check.c''',
738 deps='pam PAM_ERRORS
')
740 bld.SAMBA3_SUBSYSTEM('PASSCHANGE
',
741 source='libsmb
/passchange
.c
',
747 bld.SAMBA3_SUBSYSTEM('SAMBA_VERSION
',
748 source='lib
/version
.c
',
751 bld.SAMBA3_SUBSYSTEM('SLCACHE
',
752 source='libsmb
/samlogon_cache
.c
',
753 deps='samba
-util tdb_compat
')
755 bld.SAMBA3_SUBSYSTEM('DCUTIL
',
756 source='''libsmb/namequery_dc.c
757 libsmb/trustdom_cache.c
758 libsmb/dsgetdcname.c''',
759 deps='ads msrpc3 libcli_lsa3
')
761 bld.SAMBA3_LIBRARY('trusts_util
',
762 source='libsmb
/trusts_util
.c
',
763 deps='libcli_netlogon3 msrpc3 pdb
',
764 private_library=True)
766 bld.SAMBA3_SUBSYSTEM('tdb
-wrap3
',
767 source='lib
/util_tdb
.c
',
768 deps='talloc samba3
-util
')
770 bld.SAMBA3_LIBRARY('samba3
-util
',
771 source='''lib/util_sec.c lib/util_str.c lib/adt_tree.c lib/util_malloc.c lib/namearray.c lib/file_id.c''',
772 deps='samba
-util charset
',
773 private_library=True)
775 bld.SAMBA_LIBRARY('xattr_tdb
',
776 source='lib
/xattr_tdb
.c
',
777 deps='NDR_XATTR dbwrap samba3
-util
',
778 private_library=True)
780 bld.SAMBA3_LIBRARY('CHARSET3
',
781 source='''lib/charcnv.c lib/fstring.c''',
782 public_deps='ICONV_WRAPPER charset
',
783 deps='samba
-util samba3
-util
',
784 private_library=True)
786 bld.SAMBA3_SUBSYSTEM('errors3
',
787 source='libsmb
/errormap
.c libsmb
/smberr
.c lib
/errmap_unix
.c
',
790 bld.SAMBA3_SUBSYSTEM('LIBCLI_SAMR
',
791 source='rpc_client
/cli_samr
.c
',
794 bld.SAMBA3_LIBRARY('libcli_lsa3
',
795 source='rpc_client
/cli_lsarpc
.c
',
796 deps='RPC_NDR_LSA INIT_LSA
',
797 private_library=True)
799 bld.SAMBA3_LIBRARY('libcli_netlogon3
',
800 source='rpc_client
/cli_netlogon
.c rpc_client
/util_netlogon
.c
',
801 deps='msrpc3 RPC_NDR_NETLOGON INIT_NETLOGON cliauth param NETLOGON_CREDS_CLI
',
802 private_library=True)
804 bld.SAMBA3_LIBRARY('cli_spoolss
',
805 source='''rpc_client/cli_spoolss.c
806 rpc_client/init_spoolss.c''',
807 deps='RPC_NDR_SPOOLSS param secrets3
',
808 private_library=True)
810 bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG
',
811 source='rpc_client
/cli_winreg
.c
',
812 deps='RPC_NDR_WINREG
')
814 bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG_INTERNAL
',
815 source='rpc_client
/cli_winreg_int
.c
',
816 deps='LIBCLI_WINREG RPC_SERVER
')
818 bld.SAMBA3_SUBSYSTEM('RPC_CLIENT_SCHANNEL
',
819 source='rpc_client
/cli_pipe_schannel
.c
',
820 deps='samba
-util krb5samba
')
822 bld.SAMBA3_SUBSYSTEM('INIT_LSA
',
823 source='rpc_client
/init_lsa
.c
',
826 bld.SAMBA3_SUBSYSTEM('INIT_NETLOGON
',
827 source='rpc_client
/init_netlogon
.c
',
830 bld.SAMBA3_SUBSYSTEM('INIT_SAMR
',
831 source='rpc_client
/init_samr
.c
',
834 bld.SAMBA3_SUBSYSTEM('LIBLSA
',
837 ########################## BINARIES #################################
839 bld.SAMBA3_BINARY('smbd
/smbd
',
840 source='smbd
/server
.c
',
841 deps='smbd_base EPMD LSASD
',
842 install_path='${SBINDIR}
')
844 bld.SAMBA3_BINARY('nmbd
/nmbd
',
845 source='''nmbd/asyncdns.c nmbd/nmbd.c nmbd/nmbd_become_dmb.c
846 nmbd/nmbd_become_lmb.c nmbd/nmbd_browserdb.c
847 nmbd/nmbd_browsesync.c nmbd/nmbd_elections.c
848 nmbd/nmbd_incomingdgrams.c nmbd/nmbd_incomingrequests.c
849 nmbd/nmbd_lmhosts.c nmbd/nmbd_logonnames.c nmbd/nmbd_mynames.c
850 nmbd/nmbd_namelistdb.c nmbd/nmbd_namequery.c
851 nmbd/nmbd_nameregister.c nmbd/nmbd_namerelease.c
852 nmbd/nmbd_nodestatus.c nmbd/nmbd_packets.c
853 nmbd/nmbd_processlogon.c nmbd/nmbd_responserecordsdb.c
854 nmbd/nmbd_sendannounce.c nmbd/nmbd_serverlistdb.c
855 nmbd/nmbd_subnetdb.c nmbd/nmbd_winsproxy.c nmbd/nmbd_winsserver.c
856 nmbd/nmbd_workgroupdb.c nmbd/nmbd_synclists.c''',
864 install_path='${SBINDIR}
')
867 bld.SAMBA3_SUBSYSTEM('TDB_VALIDATE
',
868 source='lib
/tdb_validate
.c
',
872 bld.SAMBA3_BINARY('winbindd
/winbindd
',
873 source='''winbindd/winbindd.c
874 winbindd/winbindd_group.c
875 winbindd/winbindd_util.c
876 winbindd/winbindd_cache.c
877 winbindd/winbindd_pam.c
878 winbindd/winbindd_misc.c
879 winbindd/winbindd_cm.c
880 winbindd/winbindd_wins_byip.c
881 winbindd/winbindd_wins_byname.c
882 winbindd/winbindd_msrpc.c
883 winbindd/winbindd_rpc.c
884 winbindd/winbindd_reconnect.c
885 winbindd/winbindd_ads.c
886 winbindd/winbindd_samr.c
887 winbindd/winbindd_dual.c
888 winbindd/winbindd_dual_ndr.c
889 winbindd/winbindd_dual_srv.c
890 winbindd/winbindd_async.c
891 winbindd/winbindd_creds.c
892 winbindd/winbindd_cred_cache.c
893 winbindd/winbindd_ccache_access.c
894 winbindd/winbindd_domain.c
895 winbindd/winbindd_idmap.c
896 winbindd/winbindd_locator.c
897 winbindd/winbindd_ndr.c
899 winbindd/wb_lookupsid.c
900 winbindd/wb_lookupsids.c
901 winbindd/wb_lookupname.c
902 winbindd/wb_uid2sid.c
903 winbindd/wb_gid2sid.c
904 winbindd/wb_sids2xids.c
905 winbindd/wb_queryuser.c
906 winbindd/wb_lookupuseraliases.c
907 winbindd/wb_lookupusergroups.c
908 winbindd/wb_getpwsid.c
909 winbindd/wb_gettoken.c
911 winbindd/wb_seqnums.c
912 winbindd/wb_group_members.c
913 winbindd/wb_getgrsid.c
914 winbindd/wb_query_user_list.c
915 winbindd/wb_fill_pwent.c
916 winbindd/wb_next_pwent.c
917 winbindd/wb_next_grent.c
918 winbindd/wb_dsgetdcname.c
919 winbindd/winbindd_lookupsid.c
920 winbindd/winbindd_lookupsids.c
921 winbindd/winbindd_lookupname.c
922 winbindd/winbindd_sid_to_uid.c
923 winbindd/winbindd_sid_to_gid.c
924 winbindd/winbindd_uid_to_sid.c
925 winbindd/winbindd_gid_to_sid.c
926 winbindd/winbindd_sids_to_xids.c
927 winbindd/winbindd_allocate_uid.c
928 winbindd/winbindd_allocate_gid.c
929 winbindd/winbindd_getpwsid.c
930 winbindd/winbindd_getpwnam.c
931 winbindd/winbindd_getpwuid.c
932 winbindd/winbindd_getsidaliases.c
933 winbindd/winbindd_getuserdomgroups.c
934 winbindd/winbindd_getgroups.c
935 winbindd/winbindd_show_sequence.c
936 winbindd/winbindd_getgrgid.c
937 winbindd/winbindd_getgrnam.c
938 winbindd/winbindd_getusersids.c
939 winbindd/winbindd_lookuprids.c
940 winbindd/winbindd_setpwent.c
941 winbindd/winbindd_getpwent.c
942 winbindd/winbindd_endpwent.c
943 winbindd/winbindd_setgrent.c
944 winbindd/winbindd_getgrent.c
945 winbindd/winbindd_endgrent.c
946 winbindd/winbindd_dsgetdcname.c
947 winbindd/winbindd_getdcname.c
948 winbindd/winbindd_list_users.c
949 winbindd/winbindd_list_groups.c
950 winbindd/winbindd_check_machine_acct.c
951 winbindd/winbindd_change_machine_acct.c
952 winbindd/winbindd_irpc.c
953 winbindd/winbindd_ping_dc.c
954 winbindd/winbindd_pam_auth.c
955 winbindd/winbindd_pam_logoff.c
956 winbindd/winbindd_pam_chauthtok.c
957 winbindd/winbindd_pam_auth_crap.c
958 winbindd/winbindd_pam_chng_pswd_auth_crap.c''',
983 enabled=bld.env.build_winbind,
984 install_path='${SBINDIR}
')
986 bld.SAMBA3_BINARY('rpcclient
/rpcclient
',
987 source='''rpcclient/rpcclient.c
988 rpcclient/cmd_lsarpc.c
990 rpcclient/cmd_spoolss.c
991 rpcclient/cmd_netlogon.c
992 rpcclient/cmd_srvsvc.c
994 rpcclient/cmd_epmapper.c
995 rpcclient/cmd_dssetup.c
997 rpcclient/cmd_shutdown.c
999 rpcclient/cmd_wkssvc.c
1000 rpcclient/cmd_ntsvcs.c
1001 rpcclient/cmd_drsuapi.c
1002 rpcclient/cmd_eventlog.c
1003 rpcclient/cmd_winreg.c
1005 rpcclient/cmd_witness.c''',
1036 bld.SAMBA3_BINARY('client
/smbclient
',
1037 source='''client/client.c
1039 client/dnsbrowse.c''',
1050 ''' + bld.env['archive_lib
'])
1052 bld.SAMBA3_BINARY('net
',
1053 source='''utils/net.c
1058 utils/net_rpc_samsync.c
1062 utils/net_groupmap.c
1064 utils/net_idmap_check.c
1067 utils/net_rpc_printer.c
1068 utils/net_rpc_rights.c
1069 utils/net_rpc_service.c
1070 utils/net_rpc_registry.c
1071 utils/net_usershare.c
1074 utils/net_rpc_shell.c
1076 utils/net_rpc_sh_acct.c
1077 utils/net_rpc_audit.c
1081 utils/net_conf_util.c
1086 utils/net_registry.c
1087 utils/net_registry_check.c
1091 utils/net_serverid.c
1092 utils/net_eventlog.c
1093 utils/net_printing.c
1094 utils/net_rpc_trust.c
1095 utils/net_rpc_conf.c
1097 registry/reg_parse.c
1098 registry/reg_format.c
1099 registry/reg_import.c
1100 utils/net_registry_util.c
1101 utils/net_help_common.c''',
1136 RPC_NDR_INITSHUTDOWN
1139 IDMAP_AUTORID_TDB''')
1141 bld.SAMBA3_BINARY('profiles
',
1142 source='utils
/profiles
.c
',
1149 bld.SAMBA3_BINARY('smbspool
',
1150 source='client
/smbspool
.c
',
1158 bld.SAMBA3_BINARY('testparm
',
1159 source='utils
/testparm
.c
',
1165 bld.SAMBA3_BINARY('smbta
-util
',
1166 source='utils
/smbta
-util
.c
',
1172 smbstatus_source = 'utils
/status
.c smbd
/notify_internal
.c
'
1174 if bld.CONFIG_GET("WITH_PROFILE"):
1175 smbstatus_source += ' utils
/status_profile
.c
'
1177 smbstatus_source += ' utils
/status_profile_dummy
.c
'
1179 bld.SAMBA3_BINARY('smbstatus
',
1180 source=smbstatus_source,
1189 bld.SAMBA3_BINARY('smbcontrol
',
1190 source='utils
/smbcontrol
.c
',
1197 bld.SAMBA3_BINARY('smbtree
',
1198 source='utils
/smbtree
.c
',
1208 bld.SAMBA3_BINARY('smbpasswd
',
1209 source='utils
/smbpasswd
.c
',
1217 bld.SAMBA3_BINARY('pdbedit
',
1218 source='utils
/pdbedit
.c
',
1226 bld.SAMBA3_BINARY('smbget
',
1227 source='utils
/smbget
.c
',
1233 bld.SAMBA3_BINARY('nmblookup
',
1234 source='utils
/nmblookup
.c
',
1241 bld.SAMBA3_BINARY('smbtorture
' + bld.env.suffix3,
1242 source='''torture/torture.c
1247 torture/mangle_test.c
1249 torture/test_async_echo.c
1250 torture/test_addrchange.c
1251 torture/test_posix_append.c
1252 torture/test_nttrans_create.c
1253 torture/test_nttrans_fsctl.c
1254 torture/test_case_insensitive.c
1255 torture/test_notify_online.c
1256 torture/test_chain3.c
1258 torture/test_authinfo_structs.c
1259 torture/test_smbsock_any_connect.c
1260 torture/test_cleanup.c
1261 torture/test_notify.c
1262 lib/tevent_barrier.c
1263 torture/test_dbwrap_watch.c
1264 torture/test_idmap_tdb_common.c
1265 torture/test_dbwrap_ctdb.c
1266 torture/test_buffersize.c
1267 torture/test_messaging_read.c
1268 torture/test_messaging_fd_passing.c
1269 torture/test_oplock_cancel.c
1270 torture/t_strappend.c
1271 torture/bench_pthreadpool.c
1272 torture/wbc_async.c''',
1284 samba-cluster-support
1286 cflags='-DWINBINDD_SOCKET_DIR
=\"%s\"' % bld.env.WINBINDD_SOCKET_DIR,
1289 bld.SAMBA3_BINARY('smbconftort
',
1290 source='lib
/smbconf
/testsuite
.c
',
1297 bld.SAMBA3_BINARY('replacetort
',
1298 source='../lib
/replace
/test
/main
.c
',
1299 deps='replace replace
-test
',
1302 bld.SAMBA3_BINARY('msgtest
',
1303 source='torture
/msgtest
.c
',
1309 bld.SAMBA3_BINARY('msg_sink
',
1310 source='torture
/msg_sink
.c
',
1316 bld.SAMBA3_BINARY('msg_source
',
1317 source='torture
/msg_source
.c
',
1323 bld.SAMBA3_BINARY('smbcacls
',
1324 source='utils
/smbcacls
.c
',
1332 bld.SAMBA3_BINARY('smbcquotas
',
1333 source='utils
/smbcquotas
.c
',
1341 bld.SAMBA3_BINARY('eventlogadm
',
1342 source='utils
/eventlogadm
.c
',
1348 bld.SAMBA3_BINARY('sharesec
',
1349 source='utils
/sharesec
.c
',
1354 bld.SAMBA3_BINARY('pdbtest
',
1355 source='torture
/pdbtest
.c
',
1364 bld.SAMBA3_BINARY('vfstest
',
1365 source='''torture/cmd_vfs.c
1367 torture/vfstest_chain.c''',
1374 bld.SAMBA3_BINARY('log2pcap
',
1375 source='utils
/log2pcaphex
.c
',
1376 deps='''talloc popt''',
1379 bld.SAMBA3_BINARY('locktest2
',
1380 source='torture
/locktest2
.c
',
1388 bld.SAMBA3_BINARY('debug2html
',
1389 source='''utils/debug2html.c utils/debugparse.c''',
1390 deps='''talloc popt''',
1393 bld.SAMBA3_BINARY('smbfilter
',
1394 source='utils
/smbfilter
.c
',
1401 bld.SAMBA3_BINARY('versiontest
',
1402 source='lib
/version_test
.c
',
1408 bld.SAMBA3_BINARY('ntlm_auth
',
1409 source='''utils/ntlm_auth.c utils/ntlm_auth_diagnostics.c''',
1416 LIBNTLMSSP gse gensec''')
1418 bld.SAMBA3_BINARY('timelimit
',
1419 source='script
/tests
/timelimit
.c
',
1422 bld.SAMBA3_BINARY('rpc_open_tcp
',
1423 source='torture
/rpc_open_tcp
.c
',
1429 bld.SAMBA3_BINARY('dbwrap_tool
',
1430 source='utils
/dbwrap_tool
.c
',
1435 bld.SAMBA3_BINARY('dbwrap_torture
',
1436 source='utils
/dbwrap_torture
.c
',
1442 bld.SAMBA3_BINARY('split_tokens
',
1443 source='utils
/split_tokens
.c
',
1449 bld.SAMBA3_BINARY('vlp
',
1450 source='printing
/tests
/vlp
.c
',
1456 bld.SAMBA3_PYTHON('pysmbd
',
1457 source='smbd
/pysmbd
.c
',
1458 deps='smbd_base pyrpc_util
',
1459 realname='samba
/samba3
/smbd
.so
'
1462 bld.SAMBA3_PYTHON('pylibsmb
',
1463 source='libsmb
/pylibsmb
.c
',
1464 deps='smbclient samba
-credentials
',
1465 realname='samba
/samba3
/libsmb_samba_internal
.so
'
1468 bld.SAMBA3_BINARY('samba
-regedit
',
1469 source="""utils/regedit.c utils/regedit_samba3.c
1470 utils/regedit_wrap.c utils/regedit_treeview.c
1471 utils/regedit_valuelist.c utils/regedit_dialog.c
1472 utils/regedit_hexedit.c utils/regedit_list.c""",
1473 deps='ncurses menu panel form registry param popt_samba3 smbregistry
',
1474 enabled=bld.env.build_regedit)
1476 ########################## INCLUDES #################################
1479 bld.RECURSE('libgpo
/gpext
')
1480 bld.RECURSE('lib
/pthreadpool
')
1481 bld.RECURSE('lib
/asys
')
1482 bld.RECURSE('lib
/poll_funcs
')
1483 bld.RECURSE('lib
/unix_msg
')
1484 bld.RECURSE('librpc
')
1485 bld.RECURSE('librpc
/idl
')
1486 bld.RECURSE('libsmb
')
1487 bld.RECURSE('modules
')
1488 bld.RECURSE('pam_smbpass
')
1489 bld.RECURSE('param
')
1490 bld.RECURSE('passdb
')
1491 bld.RECURSE('rpc_server
')
1492 bld.RECURSE('script
')
1493 bld.RECURSE('winbindd
')
1494 bld.RECURSE('../examples
/auth
')
1495 bld.RECURSE('../examples
/libsmbclient
')
1496 bld.RECURSE('../examples
/pdb
')
1497 bld.RECURSE('../examples
/VFS
')
1498 bld.RECURSE('lib
/netapi
/tests
')
1499 bld.RECURSE('lib
/netapi
/examples
')
1501 bld.ENFORCE_GROUP_ORDERING()
1502 bld.CHECK_PROJECT_RULES()