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
33 lib/netapi/localgroup.c
39 lib/netapi/netlogon.c''',
53 public_headers
='../source3/lib/netapi/netapi.h',
54 pc_files
='libnet/netapi.pc',
57 bld
.SAMBA3_LIBRARY('smbsharemodes',
58 source
='libsmb/smb_share_modes.c',
59 public_deps
='''talloc tdb_compat''',
61 public_headers
='include/smb_share_modes.h',
62 pc_files
='libsmb/smbsharemodes.pc',
65 bld
.SAMBA3_LIBRARY('nss_wins',
66 source
='../nsswitch/wins.c',
67 deps
='''param libsmb LIBTSOCKET''',
68 realname
='libnss_wins.so.2',
69 soname
='libnss_wins.so',
72 bld
.SAMBA3_LIBRARY('gse',
73 source
='librpc/crypto/gse_krb5.c librpc/crypto/gse.c',
74 deps
='krb5samba gensec param KRBCLIENT secrets3',
77 bld
.SAMBA3_LIBRARY('msrpc3',
78 source
='''rpc_client/cli_pipe.c
79 rpc_client/rpc_transport_np.c
80 rpc_client/rpc_transport_sock.c
81 rpc_client/rpc_transport_tstream.c
82 librpc/rpc/dcerpc_helpers.c''',
83 deps
='''ndr ndr-standard
84 RPC_NDR_EPMAPPER NTLMSSP_COMMON COMMON_SCHANNEL LIBCLI_AUTH
85 LIBTSOCKET gse dcerpc-binding
90 bld
.SAMBA3_LIBRARY('gpo',
91 source
='''../libgpo/gpo_ldap.c
98 deps
='talloc ads TOKEN_UTIL gpext auth',
101 bld
.SAMBA3_SUBSYSTEM('AVAHI',
102 source
='lib/avahi.c smbd/avahi_register.c',
103 deps
='avahi-common avahi-client',
104 enabled
=bld
.env
.with_avahi
)
106 bld
.SAMBA3_SUBSYSTEM('GROUPDB',
107 source
='groupdb/mapping.c groupdb/mapping_tdb.c',
110 bld
.SAMBA3_SUBSYSTEM('TLDAP',
111 source
='''lib/tldap.c
114 deps
='asn1util LIBTSOCKET')
116 # libpdb.so should not expose internal symbols that are only usable
117 # to the statically linked modules that are merged into libpdb.
118 # Note that we always filter these symbols out in libpdb, even
119 # when modules are not linked statically. In the latter case
120 # symbols will not be present in the libpdb anyway so no hurt is
121 # done to the version script.
122 static_pdb_match
= ['tdbsam', 'smbpasswd', 'wbc_sam']
123 private_pdb_match
= []
125 # AD DC module when linked statically will pull in few source4/winbind
126 # dependencies which are not used outside AD DC module
127 static_pdb_match
.append('samba_dsdb')
128 private_pdb_match
.append('!idmap_init')
129 private_pdb_match
.append('!idmap_sids_to_xids')
130 private_pdb_match
.append('!idmap_xids_to_sids')
132 # ldap module is actually three modules merged together: ldapsam, ipa, and nds
133 static_pdb_match
= static_pdb_match
+ ['ldap', 'ipa', 'nds']
134 ldapsam_pdb_match
= ['!priv2ld', '!smbldap_search_domain_info',
135 '!ldapsam_*', '!groupmap_attr_list*', '!get_userattr_list',
136 '!dominfo_attr_list', '!get_attr_key2string',
137 '!sidmap_attr_list', '!attrib_map_*', '!idpool_attr_list',
139 private_pdb_match
.append('!pdb_nds_*')
140 private_pdb_match
.append('!pdb_init_ldapsam')
141 private_pdb_match
.append('!pdb_ldapsam_init*')
142 private_pdb_match
= private_pdb_match
+ ldapsam_pdb_match
144 private_pdb_match
= private_pdb_match
+ map(lambda x
: '!pdb_%s_init' % x
, static_pdb_match
)
146 bld
.SAMBA3_LIBRARY('pdb',
147 source
='''passdb/pdb_get_set.c
152 lib/util_sid_passdb.c
161 passdb/pdb_interface.c
163 passdb/pdb_unixid.c''',
164 deps
='secrets3 GROUPDB SERVER_MUTEX wbclient LIBCLI_AUTH flag_mapping',
165 private_library
=False,
167 public_headers_install
=True,
171 passdb/lookup_sid.h''',
172 abi_match
=private_pdb_match
,
173 abi_directory
='passdb/ABI',
176 bld
.SAMBA3_LIBRARY('smbldaphelper',
177 source
='passdb/pdb_ldap_schema.c passdb/pdb_ldap_util.c',
178 deps
='smbldap secrets3',
179 allow_undefined_symbols
=True,
180 enabled
=bld
.CONFIG_SET('HAVE_LDAP'),
181 private_library
=True)
183 bld
.SAMBA3_SUBSYSTEM('SERVER_MUTEX',
184 source
='lib/server_mutex.c',
187 bld
.SAMBA3_SUBSYSTEM('PARAM_UTIL',
188 source
='param/util.c',
191 bld
.SAMBA3_SUBSYSTEM('LOADPARM_CTX',
192 source
='param/loadparm_ctx.c',
193 deps
='''talloc s3_param_h param''')
195 bld
.SAMBA_GENERATOR('param/param_global_h',
196 source
= '../script/mkparamdefs.pl param/loadparm.c ../lib/param/param_functions.c',
197 target
='param/param_global.h',
198 rule
='${PERL} ${SRC[0].abspath(env)} ${SRC[1].abspath(env)} ${SRC[2].abspath(env)} --file ${TGT} --generate-scope=GLOBAL')
200 bld
.SAMBA3_SUBSYSTEM('param',
201 source
='''param/loadparm.c
203 lib/ldap_debug_handler.c
205 deps
='samba-util PARAM_UTIL ldap lber LOADPARM_CTX samba3core smbconf param_local_h param/param_global_h cups''')
207 bld.SAMBA3_PYTHON('pys3param
',
208 source='param
/pyparam
.c
',
210 public_deps='samba
-hostconfig pytalloc
-util talloc
',
211 realname='samba
/samba3
/param
.so
')
213 bld.SAMBA3_SUBSYSTEM('param_service
',
214 source='param
/service
.c
',
215 deps = 'USER_UTIL param PRINTING
')
217 # this includes only the low level parse code, not stuff
218 # that requires knowledge of security contexts
219 bld.SAMBA3_SUBSYSTEM('REG_PARSE_PRS
',
220 source='registry
/reg_parse_prs
.c
')
222 bld.SAMBA3_SUBSYSTEM('REGFIO
',
223 source='registry
/regfio
.c
',
224 deps='samba
-util REG_PARSE_PRS
')
226 bld.SAMBA3_SUBSYSTEM('REG_API_REGF
',
227 source='registry
/reg_api_regf
.c
',
230 bld.SAMBA3_LIBRARY('smbregistry
',
231 source='''registry/reg_api.c
232 registry/reg_dispatcher.c
233 registry/reg_cachehook.c
234 registry/reg_objects.c
235 registry/reg_util_internal.c
237 registry/reg_backend_db.c
238 registry/reg_parse_internal.c
241 registry/reg_init_basic.c''',
242 deps='''smbd_shim tdb-wrap3 NDR_SECURITY util_tdb talloc
243 replace util_reg samba-util samba-security
244 errors3 dbwrap samba3-util''',
245 allow_undefined_symbols=True,
246 private_library=True)
248 bld.SAMBA3_SUBSYSTEM('REG_SMBCONF
',
249 source='''registry/reg_backend_smbconf.c
250 registry/reg_init_smbconf.c
251 registry/reg_util_token.c
252 registry/reg_api_util.c''',
255 bld.SAMBA3_SUBSYSTEM('REG_FULL
',
256 source='''registry/reg_backend_printing.c
257 registry/reg_backend_shares.c
258 registry/reg_backend_netlogon_params.c
259 registry/reg_backend_prod_options.c
260 registry/reg_backend_tcpip_params.c
261 registry/reg_backend_hkpt_params.c
262 registry/reg_backend_current_version.c
263 registry/reg_backend_perflib.c
264 registry/reg_init_full.c
265 registry/reg_perfcount.c''',
266 deps='REG_SMBCONF tdb
-wrap3
')
268 bld.SAMBA3_LIBRARY('popt_samba3
',
269 source='lib
/popt_common
.c
',
270 deps='popt samba
-util util_cmdline
',
271 private_library=True)
273 bld.SAMBA3_LIBRARY('util_cmdline
',
274 source='lib
/util_cmdline
.c
',
276 private_library=True)
278 bld.SAMBA3_SUBSYSTEM('KRBCLIENT
',
279 source='libads
/kerberos
.c libads
/ads_status
.c
',
280 public_deps='krb5samba k5crypto gssapi LIBTSOCKET CLDAP LIBNMB
')
282 bld.SAMBA3_SUBSYSTEM('samba3util
',
283 source='''lib/system.c
291 lib/util_transfer_file.c
293 deps='ndr samba
-security NDR_SECURITY samba
-util util_tdb ccan
-hash')
296 bld.SAMBA3_SUBSYSTEM('TDB_LIB
',
297 source='''lib/dbwrap/dbwrap_open.c
298 lib/dbwrap/dbwrap_ctdb.c
299 lib/dbwrap/dbwrap_watch.c
303 bld.SAMBA3_SUBSYSTEM('samba3core
',
304 source='''lib/messages.c
315 ../lib/util/debug_s3.c
319 lib/access.c lib/smbrun.c
322 lib/substitute_generic.c
329 lib/server_contexts.c
331 lib/server_prefork_util.c
355 bld.SAMBA3_LIBRARY('smbd_shim
',
356 source='''lib/smbd_shim.c''',
358 private_library=True)
360 bld.SAMBA3_SUBSYSTEM('LIBNTLMSSP
',
361 source='''libsmb/ntlmssp.c
362 libsmb/ntlmssp_wrap.c''',
363 deps='NDR_NTLMSSP NTLMSSP_COMMON wbclient
')
365 bld.SAMBA3_SUBSYSTEM('auth_generic
',
366 source='libsmb
/auth_generic
.c
',
367 deps='LIBNTLMSSP gse gensec
')
369 bld.SAMBA3_LIBRARY('libsmb
',
370 source='''libsmb/clientgen.c
377 libsmb/clireadwrite.c
390 libsmb/smb2cli_tcon.c
391 libsmb/cli_np_tstream.c
392 libsmb/reparse_symlink.c
394 libsmb/smbsock_connect.c
395 libsmb/cli_smb2_fnum.c''',
407 private_library=True)
409 bld.SAMBA3_SUBSYSTEM('CLDAP
',
410 source='libads
/cldap
.c
',
411 deps='cli
-ldap
-common cli_cldap LIBTSOCKET
')
413 # NOTE: The secrets3 library is a low level library used by several subsystems.
414 # PLEASE DO NOT make it depend on high level libraries like PDB, if you are
415 # doing that your design is wrong and needs changing. -SSS
416 bld.SAMBA3_LIBRARY('secrets3
',
417 source='''passdb/secrets.c
418 passdb/machine_account_secrets.c
420 passdb/secrets_lsa.c''',
421 deps='NDR_SECRETS param samba3util dbwrap
',
422 private_library=True)
424 bld.SAMBA3_LIBRARY('smbldap
',
425 source='lib
/smbldap
.c
',
426 deps='ldap lber samba
-util param
',
427 enabled=bld.CONFIG_SET("HAVE_LDAP"),
428 private_library=False,
429 abi_directory='lib
/ABI
',
430 abi_match='smbldap_
*',
433 public_headers='include
/smbldap
.h include
/smb_ldap
.h
')
435 bld.SAMBA3_LIBRARY('ads
',
436 source='''libads/ldap.c
438 libads/sasl_wrapping.c
440 libads/kerberos_util.c
443 libads/kerberos_keytab.c
449 deps='cli
-ldap
-common krb5samba ldap lber KRBCLIENT param LIBNMB libsmb DCUTIL smbldap
',
450 private_library=True)
452 bld.SAMBA3_SUBSYSTEM('LIBADS_SERVER
',
453 source='libads
/authdata
.c
',
454 deps='SERVER_MUTEX ndr
-krb5pac krb5samba gssapi
')
456 bld.SAMBA3_SUBSYSTEM('LIBADS_PRINTER
',
457 source='libads
/ldap_printer
.c
',
458 deps='samba
-util krb5samba
')
460 bld.SAMBA3_SUBSYSTEM('LIBAFS_SETTOKEN
',
461 source='lib
/afs_settoken
.c
',
464 bld.SAMBA3_SUBSYSTEM('LIBAFS
',
466 deps='samba
-util LIBAFS_SETTOKEN
')
468 bld.SAMBA3_LIBRARY('smbconf
',
469 source='''lib/smbconf/smbconf_init.c
470 lib/smbconf/smbconf_reg.c''',
485 public_headers='../lib
/smbconf
/smbconf
.h
',
489 bld.SAMBA3_LIBRARY('smbd_conn
',
490 source='smbd
/conn
.c
',
491 deps='samba3
-util samba
-util
',
492 private_library=True)
494 bld.SAMBA3_LIBRARY('smbd_base
',
534 printing/printspoolss.c
537 lib/sysquotas_linux.c
549 smbd/aio.c smbd/statvfs.c
553 smbd/dnsregister.c smbd/globals.c
557 smbd/smb2_sesssetup.c
566 smbd/smb2_ioctl_dfs.c
567 smbd/smb2_ioctl_filesys.c
568 smbd/smb2_ioctl_named_pipe.c
569 smbd/smb2_ioctl_network_fs.c
570 smbd/smb2_keepalive.c
576 smbd/smbXsrv_version.c
577 smbd/smbXsrv_session.c
590 smbd/notify_inotify.c
591 smbd/notify_internal.c
592 smbd/build_options.c''',
619 ''' + bld.env['dmapi_lib
'],
620 private_library=True)
622 bld.SAMBA3_SUBSYSTEM('LOCKING
',
623 source='''locking/locking.c
626 locking/share_mode_lock.c''',
633 bld.SAMBA3_SUBSYSTEM('PROFILE
',
634 source='profile
/profile
.c
',
637 bld.SAMBA3_SUBSYSTEM('PRINTBASE
',
638 source='''printing/notify.c printing/printing_db.c''',
639 deps='samba
-util tdb_compat
')
641 bld.SAMBA3_SUBSYSTEM('PRINTBACKEND
',
642 source='''printing/printing.c
643 printing/nt_printing.c
644 printing/nt_printing_tdb.c
645 printing/nt_printing_migrate_internal.c
646 printing/nt_printing_ads.c
647 printing/queue_process.c''',
648 deps='PRINTBASE LIBADS_PRINTER tdb_compat printing_migrate
')
650 bld.SAMBA3_LIBRARY('printing_migrate
',
651 source='printing
/nt_printing_migrate
.c rpc_client
/cli_winreg_spoolss
.c printing
/nt_printing_os2
.c
',
652 deps='NDR_NTPRINTING cli_spoolss RPC_NDR_WINREG LIBCLI_WINREG param
',
653 private_library=True)
655 bld.SAMBA3_SUBSYSTEM('PRINTING
',
656 source='''printing/pcap.c
657 printing/print_svid.c
659 printing/print_cups.c
660 printing/print_generic.c
663 printing/print_standard.c
664 printing/print_iprint.c
665 printing/printer_list.c''',
666 deps='NDR_PRINTCAP tdb_compat cups
')
668 bld.SAMBA3_SUBSYSTEM('PASSWD_UTIL
',
669 source='utils
/passwd_util
.c
',
672 bld.SAMBA3_SUBSYSTEM('FNAME_UTIL
',
673 source='lib
/filename_util
.c
',
676 bld.SAMBA3_SUBSYSTEM('LIBNET
',
677 source='libnet
/libnet_join
.c
',
678 deps='NDR_LIBNET_JOIN INIT_SAMR net_keytab pdb
')
680 bld.SAMBA3_LIBRARY('net_keytab
',
681 source='libnet
/libnet_keytab
.c
',
682 deps='krb5samba ads
',
683 private_library=True)
686 bld.SAMBA3_SUBSYSTEM('LIBNET_DSSYNC
',
687 source='''libnet/libnet_dssync.c
688 libnet/libnet_dssync_passdb.c
689 libnet/libnet_dssync_keytab.c''',
690 deps='LIBNET RPC_NDR_DRSUAPI
')
692 bld.SAMBA3_SUBSYSTEM('LIBNET_SAMSYNC
',
693 source='''libnet/libnet_samsync.c
694 libnet/libnet_samsync_ldif.c
695 libnet/libnet_samsync_passdb.c
696 libnet/libnet_samsync_display.c
697 libnet/libnet_samsync_keytab.c''',
698 deps='LIBNET LIBCLI_SAMSYNC
')
700 bld.SAMBA3_SUBSYSTEM('LIBEVENTLOG
',
701 source='lib
/eventlog
/eventlog
.c
',
702 deps='NDR_EVENTLOG tdb_compat
')
704 bld.SAMBA3_SUBSYSTEM('LIBNMB
',
705 source='''libsmb/unexpected.c
710 libads/sitename_cache.c''',
711 deps='addns lmhosts resolv
')
713 bld.SAMBA3_SUBSYSTEM('SERVICES
',
714 source='''services/svc_spoolss.c
715 services/svc_rcinit.c
716 services/svc_winreg_glue.c
717 services/svc_netlogon.c
718 services/svc_winreg.c
719 services/svc_wins.c''',
722 bld.SAMBA3_SUBSYSTEM('PLAINTEXT_AUTH
',
723 source='''auth/pampass.c auth/pass_check.c''',
724 deps='pam PAM_ERRORS
')
726 bld.SAMBA3_SUBSYSTEM('PASSCHANGE
',
727 source='libsmb
/passchange
.c
',
733 bld.SAMBA3_SUBSYSTEM('SAMBA_VERSION
',
734 source='lib
/version
.c
',
737 bld.SAMBA3_SUBSYSTEM('SLCACHE
',
738 source='libsmb
/samlogon_cache
.c
',
739 deps='samba
-util tdb_compat
')
741 bld.SAMBA3_SUBSYSTEM('DCUTIL
',
742 source='''libsmb/namequery_dc.c
743 libsmb/trustdom_cache.c
744 libsmb/dsgetdcname.c''',
745 deps='ads msrpc3 libcli_lsa3
')
747 bld.SAMBA3_LIBRARY('trusts_util
',
748 source='libsmb
/trusts_util
.c
',
749 deps='libcli_netlogon3 msrpc3 pdb
',
750 private_library=True)
752 bld.SAMBA3_SUBSYSTEM('tdb
-wrap3
',
753 source='lib
/util_tdb
.c
',
754 deps='talloc samba3
-util
')
756 bld.SAMBA3_LIBRARY('samba3
-util
',
757 source='''lib/util_sec.c lib/util_str.c lib/adt_tree.c lib/util_malloc.c lib/memcache.c lib/namearray.c lib/file_id.c''',
758 deps='samba
-util charset
',
759 private_library=True)
761 bld.SAMBA_LIBRARY('xattr_tdb
',
762 source='lib
/xattr_tdb
.c
',
763 deps='NDR_XATTR dbwrap samba3
-util
',
764 private_library=True)
766 bld.SAMBA3_LIBRARY('CHARSET3
',
767 source='''lib/charcnv.c lib/fstring.c''',
768 public_deps='ICONV_WRAPPER charset
',
769 deps='samba
-util samba3
-util
',
770 private_library=True)
772 bld.SAMBA3_SUBSYSTEM('errors3
',
773 source='libsmb
/errormap
.c libsmb
/smberr
.c lib
/errmap_unix
.c
',
776 bld.SAMBA3_SUBSYSTEM('LIBCLI_SAMR
',
777 source='rpc_client
/cli_samr
.c
',
780 bld.SAMBA3_LIBRARY('libcli_lsa3
',
781 source='rpc_client
/cli_lsarpc
.c
',
782 deps='RPC_NDR_LSA INIT_LSA
',
783 private_library=True)
785 bld.SAMBA3_LIBRARY('libcli_netlogon3
',
786 source='rpc_client
/cli_netlogon
.c rpc_client
/util_netlogon
.c
',
787 deps='RPC_NDR_NETLOGON INIT_NETLOGON cliauth param
',
788 private_library=True)
790 bld.SAMBA3_LIBRARY('cli_spoolss
',
791 source='''rpc_client/cli_spoolss.c
792 rpc_client/init_spoolss.c''',
793 deps='RPC_NDR_SPOOLSS param secrets3
',
794 private_library=True)
796 bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG
',
797 source='rpc_client
/cli_winreg
.c
',
798 deps='RPC_NDR_WINREG
')
800 bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG_INTERNAL
',
801 source='rpc_client
/cli_winreg_int
.c
',
802 deps='LIBCLI_WINREG RPC_NCACN_NP
')
804 bld.SAMBA3_SUBSYSTEM('RPC_CLIENT_SCHANNEL
',
805 source='rpc_client
/cli_pipe_schannel
.c
',
806 deps='samba
-util krb5samba
')
808 bld.SAMBA3_SUBSYSTEM('INIT_LSA
',
809 source='rpc_client
/init_lsa
.c
',
812 bld.SAMBA3_SUBSYSTEM('INIT_NETLOGON
',
813 source='rpc_client
/init_netlogon
.c
',
816 bld.SAMBA3_SUBSYSTEM('INIT_SAMR
',
817 source='rpc_client
/init_samr
.c
',
820 ########################## BINARIES #################################
822 bld.SAMBA3_BINARY('smbd
/smbd
',
823 source='smbd
/server
.c
',
824 deps='smbd_base EPMD LSASD
',
825 install_path='${SBINDIR}
')
827 bld.SAMBA3_BINARY('nmbd
/nmbd
',
828 source='''nmbd/asyncdns.c nmbd/nmbd.c nmbd/nmbd_become_dmb.c
829 nmbd/nmbd_become_lmb.c nmbd/nmbd_browserdb.c
830 nmbd/nmbd_browsesync.c nmbd/nmbd_elections.c
831 nmbd/nmbd_incomingdgrams.c nmbd/nmbd_incomingrequests.c
832 nmbd/nmbd_lmhosts.c nmbd/nmbd_logonnames.c nmbd/nmbd_mynames.c
833 nmbd/nmbd_namelistdb.c nmbd/nmbd_namequery.c
834 nmbd/nmbd_nameregister.c nmbd/nmbd_namerelease.c
835 nmbd/nmbd_nodestatus.c nmbd/nmbd_packets.c
836 nmbd/nmbd_processlogon.c nmbd/nmbd_responserecordsdb.c
837 nmbd/nmbd_sendannounce.c nmbd/nmbd_serverlistdb.c
838 nmbd/nmbd_subnetdb.c nmbd/nmbd_winsproxy.c nmbd/nmbd_winsserver.c
839 nmbd/nmbd_workgroupdb.c nmbd/nmbd_synclists.c''',
847 install_path='${SBINDIR}
')
850 bld.SAMBA3_SUBSYSTEM('TDB_VALIDATE
',
851 source='lib
/tdb_validate
.c
',
855 bld.SAMBA3_BINARY('winbindd
/winbindd
',
856 source='''winbindd/winbindd.c
857 winbindd/winbindd_group.c
858 winbindd/winbindd_util.c
859 winbindd/winbindd_cache.c
860 winbindd/winbindd_pam.c
861 winbindd/winbindd_misc.c
862 winbindd/winbindd_cm.c
863 winbindd/winbindd_wins_byip.c
864 winbindd/winbindd_wins_byname.c
865 winbindd/winbindd_msrpc.c
866 winbindd/winbindd_rpc.c
867 winbindd/winbindd_reconnect.c
868 winbindd/winbindd_ads.c
869 winbindd/winbindd_samr.c
870 winbindd/winbindd_dual.c
871 winbindd/winbindd_dual_ndr.c
872 winbindd/winbindd_dual_srv.c
873 winbindd/winbindd_async.c
874 winbindd/winbindd_creds.c
875 winbindd/winbindd_cred_cache.c
876 winbindd/winbindd_ccache_access.c
877 winbindd/winbindd_domain.c
878 winbindd/winbindd_idmap.c
879 winbindd/winbindd_locator.c
880 winbindd/winbindd_ndr.c
882 winbindd/wb_lookupsid.c
883 winbindd/wb_lookupsids.c
884 winbindd/wb_lookupname.c
885 winbindd/wb_uid2sid.c
886 winbindd/wb_gid2sid.c
887 winbindd/wb_sids2xids.c
888 winbindd/wb_queryuser.c
889 winbindd/wb_lookupuseraliases.c
890 winbindd/wb_lookupusergroups.c
891 winbindd/wb_getpwsid.c
892 winbindd/wb_gettoken.c
894 winbindd/wb_seqnums.c
895 winbindd/wb_group_members.c
896 winbindd/wb_getgrsid.c
897 winbindd/wb_query_user_list.c
898 winbindd/wb_fill_pwent.c
899 winbindd/wb_next_pwent.c
900 winbindd/wb_next_grent.c
901 winbindd/wb_dsgetdcname.c
902 winbindd/winbindd_lookupsid.c
903 winbindd/winbindd_lookupsids.c
904 winbindd/winbindd_lookupname.c
905 winbindd/winbindd_sid_to_uid.c
906 winbindd/winbindd_sid_to_gid.c
907 winbindd/winbindd_uid_to_sid.c
908 winbindd/winbindd_gid_to_sid.c
909 winbindd/winbindd_sids_to_xids.c
910 winbindd/winbindd_allocate_uid.c
911 winbindd/winbindd_allocate_gid.c
912 winbindd/winbindd_getpwsid.c
913 winbindd/winbindd_getpwnam.c
914 winbindd/winbindd_getpwuid.c
915 winbindd/winbindd_getsidaliases.c
916 winbindd/winbindd_getuserdomgroups.c
917 winbindd/winbindd_getgroups.c
918 winbindd/winbindd_show_sequence.c
919 winbindd/winbindd_getgrgid.c
920 winbindd/winbindd_getgrnam.c
921 winbindd/winbindd_getusersids.c
922 winbindd/winbindd_lookuprids.c
923 winbindd/winbindd_setpwent.c
924 winbindd/winbindd_getpwent.c
925 winbindd/winbindd_endpwent.c
926 winbindd/winbindd_setgrent.c
927 winbindd/winbindd_getgrent.c
928 winbindd/winbindd_endgrent.c
929 winbindd/winbindd_dsgetdcname.c
930 winbindd/winbindd_getdcname.c
931 winbindd/winbindd_list_users.c
932 winbindd/winbindd_list_groups.c
933 winbindd/winbindd_check_machine_acct.c
934 winbindd/winbindd_change_machine_acct.c
935 winbindd/winbindd_ping_dc.c
936 winbindd/winbindd_pam_auth.c
937 winbindd/winbindd_pam_logoff.c
938 winbindd/winbindd_pam_chauthtok.c
939 winbindd/winbindd_pam_auth_crap.c
940 winbindd/winbindd_pam_chng_pswd_auth_crap.c''',
964 enabled=bld.env.build_winbind,
965 install_path='${SBINDIR}
')
967 bld.SAMBA3_BINARY('rpcclient
/rpcclient
',
968 source='''rpcclient/rpcclient.c
969 rpcclient/cmd_lsarpc.c
971 rpcclient/cmd_spoolss.c
972 rpcclient/cmd_netlogon.c
973 rpcclient/cmd_srvsvc.c
975 rpcclient/cmd_epmapper.c
976 rpcclient/cmd_dssetup.c
978 rpcclient/cmd_shutdown.c
980 rpcclient/cmd_wkssvc.c
981 rpcclient/cmd_ntsvcs.c
982 rpcclient/cmd_drsuapi.c
983 rpcclient/cmd_eventlog.c
984 rpcclient/cmd_winreg.c
985 rpcclient/cmd_fss.c''',
1015 bld.SAMBA3_BINARY('client
/smbclient
',
1016 source='''client/client.c
1018 client/dnsbrowse.c''',
1030 bld.SAMBA3_BINARY('net
',
1031 source='''utils/net.c
1036 utils/net_rpc_samsync.c
1040 utils/net_groupmap.c
1042 utils/net_idmap_check.c
1045 utils/net_rpc_printer.c
1046 utils/net_rpc_rights.c
1047 utils/net_rpc_service.c
1048 utils/net_rpc_registry.c
1049 utils/net_usershare.c
1052 utils/net_rpc_shell.c
1054 utils/net_rpc_sh_acct.c
1055 utils/net_rpc_audit.c
1059 utils/net_conf_util.c
1064 utils/net_registry.c
1065 utils/net_registry_check.c
1069 utils/net_serverid.c
1070 utils/net_eventlog.c
1071 utils/net_printing.c
1072 utils/net_rpc_trust.c
1073 utils/net_rpc_conf.c
1074 registry/reg_parse.c
1075 registry/reg_format.c
1076 registry/reg_import.c
1077 utils/net_registry_util.c
1078 utils/net_help_common.c''',
1113 RPC_NDR_INITSHUTDOWN
1117 bld.SAMBA3_BINARY('profiles
',
1118 source='utils
/profiles
.c
',
1125 bld.SAMBA3_BINARY('smbspool
',
1126 source='client
/smbspool
.c
',
1134 bld.SAMBA3_BINARY('testparm
',
1135 source='utils
/testparm
.c
',
1141 bld.SAMBA3_BINARY('smbta
-util
',
1142 source='utils
/smbta
-util
.c
',
1148 bld.SAMBA3_BINARY('smbstatus
',
1149 source='''utils/status.c
1150 utils/status_profile.c
1151 smbd/notify_internal.c''',
1160 bld.SAMBA3_BINARY('smbcontrol
',
1161 source='utils
/smbcontrol
.c
',
1168 bld.SAMBA3_BINARY('smbtree
',
1169 source='utils
/smbtree
.c
',
1179 bld.SAMBA3_BINARY('smbpasswd
',
1180 source='utils
/smbpasswd
.c
',
1188 bld.SAMBA3_BINARY('pdbedit
',
1189 source='utils
/pdbedit
.c
',
1197 bld.SAMBA3_BINARY('smbget
',
1198 source='utils
/smbget
.c
',
1204 bld.SAMBA3_BINARY('nmblookup
',
1205 source='utils
/nmblookup
.c
',
1212 bld.SAMBA3_BINARY('smbtorture
' + bld.env.suffix3,
1213 source='''torture/torture.c
1218 torture/mangle_test.c
1220 torture/test_async_echo.c
1221 torture/test_addrchange.c
1222 torture/test_posix_append.c
1223 torture/test_nttrans_create.c
1224 torture/test_nttrans_fsctl.c
1225 torture/test_case_insensitive.c
1226 torture/test_notify_online.c
1227 torture/test_chain3.c
1229 torture/test_authinfo_structs.c
1230 torture/test_smbsock_any_connect.c
1231 torture/test_cleanup.c
1232 torture/test_ctdbconn.c
1234 torture/test_notify.c
1235 lib/tevent_barrier.c
1236 torture/test_dbwrap_watch.c
1237 torture/test_idmap_tdb_common.c
1238 torture/test_dbwrap_ctdb.c
1239 torture/test_buffersize.c
1240 torture/t_strappend.c
1241 torture/wbc_async.c''',
1256 bld.SAMBA3_BINARY('smbconftort
',
1257 source='lib
/smbconf
/testsuite
.c
',
1264 bld.SAMBA3_BINARY('replacetort
',
1265 source='../lib
/replace
/test
/main
.c
',
1266 deps='replace replace
-test
',
1269 bld.SAMBA3_BINARY('msgtest
',
1270 source='torture
/msgtest
.c
',
1276 bld.SAMBA3_BINARY('smbcacls
',
1277 source='utils
/smbcacls
.c
',
1285 bld.SAMBA3_BINARY('smbcquotas
',
1286 source='utils
/smbcquotas
.c
',
1294 bld.SAMBA3_BINARY('eventlogadm
',
1295 source='utils
/eventlogadm
.c
',
1301 bld.SAMBA3_BINARY('sharesec
',
1302 source='utils
/sharesec
.c
',
1307 bld.SAMBA3_BINARY('pdbtest
',
1308 source='torture
/pdbtest
.c
',
1317 bld.SAMBA3_BINARY('vfstest
',
1318 source='''torture/cmd_vfs.c
1320 torture/vfstest_chain.c''',
1327 bld.SAMBA3_BINARY('log2pcap
',
1328 source='utils
/log2pcaphex
.c
',
1329 deps='''talloc popt''',
1332 bld.SAMBA3_BINARY('locktest2
',
1333 source='torture
/locktest2
.c
',
1341 bld.SAMBA3_BINARY('debug2html
',
1342 source='''utils/debug2html.c utils/debugparse.c''',
1343 deps='''talloc popt''',
1346 bld.SAMBA3_BINARY('smbfilter
',
1347 source='utils
/smbfilter
.c
',
1354 bld.SAMBA3_BINARY('versiontest
',
1355 source='lib
/version_test
.c
',
1361 bld.SAMBA3_BINARY('ntlm_auth
',
1362 source='''utils/ntlm_auth.c utils/ntlm_auth_diagnostics.c''',
1369 LIBNTLMSSP gse gensec''')
1371 bld.SAMBA3_BINARY('timelimit
',
1372 source='script
/tests
/timelimit
.c
',
1375 bld.SAMBA3_BINARY('rpc_open_tcp
',
1376 source='torture
/rpc_open_tcp
.c
',
1382 bld.SAMBA3_BINARY('test_lp_load
',
1383 source='param
/test_lp_load
.c
',
1390 bld.SAMBA3_BINARY('dbwrap_tool
',
1391 source='utils
/dbwrap_tool
.c
',
1396 bld.SAMBA3_BINARY('dbwrap_torture
',
1397 source='utils
/dbwrap_torture
.c
',
1403 bld.SAMBA3_BINARY('split_tokens
',
1404 source='utils
/split_tokens
.c
',
1410 bld.SAMBA3_BINARY('vlp
',
1411 source='printing
/tests
/vlp
.c
',
1417 bld.SAMBA3_PYTHON('pysmbd
',
1418 source='smbd
/pysmbd
.c
',
1419 deps='smbd_base pyrpc_util
',
1420 realname='samba
/samba3
/smbd
.so
'
1423 bld.SAMBA3_PYTHON('pylibsmb
',
1424 source='libsmb
/pylibsmb
.c
',
1425 deps='smbclient samba
-credentials
',
1426 realname='samba
/samba3
/libsmb_samba_internal
.so
'
1429 bld.SAMBA3_BINARY('samba
-regedit
',
1430 source="""utils/regedit.c utils/regedit_samba3.c
1431 utils/regedit_wrap.c utils/regedit_treeview.c
1432 utils/regedit_valuelist.c utils/regedit_dialog.c
1433 utils/regedit_hexedit.c""",
1434 deps='ncurses menu panel form registry param popt_samba3 smbregistry
',
1435 enabled=bld.env.build_regedit)
1437 ########################## INCLUDES #################################
1440 bld.RECURSE('libgpo
/gpext
')
1441 bld.RECURSE('lib
/pthreadpool
')
1442 bld.RECURSE('lib
/asys
')
1443 bld.RECURSE('librpc
')
1444 bld.RECURSE('librpc
/idl
')
1445 bld.RECURSE('libsmb
')
1446 bld.RECURSE('modules
')
1447 bld.RECURSE('pam_smbpass
')
1448 bld.RECURSE('passdb
')
1449 bld.RECURSE('rpc_server
')
1450 bld.RECURSE('script
')
1451 bld.RECURSE('winbindd
')
1452 bld.RECURSE('../examples
/auth
')
1453 bld.RECURSE('../examples
/libsmbclient
')
1454 bld.RECURSE('../examples
/pdb
')
1455 bld.RECURSE('../examples
/VFS
')
1456 bld.RECURSE('lib
/netapi
/tests
')
1457 bld.RECURSE('lib
/netapi
/examples
')
1459 bld.ENFORCE_GROUP_ORDERING()
1460 bld.CHECK_PROJECT_RULES()