2008-02-18 22:04:18 +03:00
m k i n c l u d e l d a p / c o n f i g . m k
m k i n c l u d e s e c u r i t y / c o n f i g . m k
2008-03-29 03:42:06 +03:00
m k i n c l u d e w b c l i e n t / c o n f i g . m k
2005-10-21 20:29:54 +04:00
2006-03-25 21:47:47 +03:00
[SUBSYSTEM :: LIBSAMBA -ERRORS ]
2008-10-23 17:35:21 +04:00
LIBSAMBA-ERRORS_OBJ_FILES = $( addprefix ../libcli/util/, doserr.o ) $( libclisrcdir) /util/errormap.o $( libclisrcdir) /util/nterr.o
2008-02-26 19:17:52 +03:00
2008-10-23 06:57:44 +04:00
PUBLIC_HEADERS += $( addprefix ../libcli/util/, error.h ntstatus.h doserr.h werror.h)
2008-02-26 19:17:52 +03:00
2004-12-06 10:12:38 +03:00
[SUBSYSTEM :: LIBCLI_LSA ]
2006-04-24 19:47:59 +04:00
PUBLIC_DEPENDENCIES = RPC_NDR_LSA
2007-12-16 00:23:42 +03:00
PRIVATE_DEPENDENCIES = LIBSECURITY
2004-11-15 02:10:04 +03:00
2008-05-18 21:54:27 +04:00
LIBCLI_LSA_OBJ_FILES = $( libclisrcdir) /util/clilsa.o
2008-03-03 20:25:28 +03:00
2008-05-19 01:02:47 +04:00
$(eval $(call proto_header_template,$(libclisrcdir)/util/clilsa.h,$(LIBCLI_LSA_OBJ_FILES : .o =.c )))
2008-03-03 20:25:28 +03:00
2005-09-26 15:47:55 +04:00
[SUBSYSTEM :: LIBCLI_COMPOSITE ]
2006-04-24 19:47:59 +04:00
PUBLIC_DEPENDENCIES = LIBEVENTS
2005-01-31 06:14:15 +03:00
2008-05-18 21:54:27 +04:00
LIBCLI_COMPOSITE_OBJ_FILES = $( libclisrcdir) /composite/composite.o
2008-05-19 01:02:47 +04:00
$(eval $(call proto_header_template,$(libclisrcdir)/composite/proto.h,$(LIBCLI_COMPOSITE_OBJ_FILES : .o =.c )))
2008-03-03 20:25:28 +03:00
2005-09-26 15:47:55 +04:00
[SUBSYSTEM :: LIBCLI_SMB_COMPOSITE ]
2007-12-16 00:23:45 +03:00
PUBLIC_DEPENDENCIES = LIBCLI_COMPOSITE CREDENTIALS gensec LIBCLI_RESOLVE
2005-01-12 10:03:29 +03:00
2008-05-18 21:54:27 +04:00
LIBCLI_SMB_COMPOSITE_OBJ_FILES = $( addprefix $( libclisrcdir) /smb_composite/, \
2008-03-03 20:25:28 +03:00
loadfile.o \
savefile.o \
connect.o \
sesssetup.o \
fetchfile.o \
appendacl.o \
2008-05-16 09:03:24 +04:00
fsinfo.o \
smb2.o)
2008-03-03 20:25:28 +03:00
2008-05-19 01:02:47 +04:00
$(eval $(call proto_header_template,$(libclisrcdir)/smb_composite/proto.h,$(LIBCLI_SMB_COMPOSITE_OBJ_FILES : .o =.c )))
2008-03-03 20:25:28 +03:00
2005-12-30 02:14:33 +03:00
[SUBSYSTEM :: NDR_NBT_BUF ]
2008-03-03 20:25:28 +03:00
2008-10-08 14:03:45 +04:00
NDR_NBT_BUF_OBJ_FILES = $( libclinbtsrcdir) /nbtname.o
2005-12-30 02:14:33 +03:00
2008-10-08 14:03:45 +04:00
$(eval $(call proto_header_template,$(libclinbtsrcdir)/nbtname.h,$(NDR_NBT_BUF_OBJ_FILES : .o =.c )))
2005-12-30 02:14:33 +03:00
2006-04-30 04:00:28 +04:00
[SUBSYSTEM :: LIBCLI_NBT ]
2006-04-29 06:45:34 +04:00
PUBLIC_DEPENDENCIES = LIBNDR NDR_NBT LIBCLI_COMPOSITE LIBEVENTS \
2008-12-24 02:15:43 +03:00
NDR_SECURITY samba_socket LIBSAMBA-UTIL
2005-01-21 09:54:10 +03:00
2008-10-08 14:03:45 +04:00
LIBCLI_NBT_OBJ_FILES = $( addprefix $( libclinbtsrcdir) /, \
2008-03-03 20:25:28 +03:00
nbtsocket.o \
namequery.o \
nameregister.o \
namerefresh.o \
namerelease.o)
2008-10-08 13:56:46 +04:00
[BINARY :: nmblookup ]
INSTALLDIR = BINDIR
PRIVATE_DEPENDENCIES = \
LIBSAMBA-HOSTCONFIG \
LIBSAMBA-UTIL \
LIBCLI_NBT \
LIBPOPT \
POPT_SAMBA \
LIBNETIF \
LIBCLI_RESOLVE
nmblookup_OBJ_FILES = $( libclinbtsrcdir) /tools/nmblookup.o
MANPAGES += $( libclinbtsrcdir) /man/nmblookup.1
2008-05-21 08:26:38 +04:00
[SUBSYSTEM :: LIBCLI_NDR_NETLOGON ]
PUBLIC_DEPENDENCIES = LIBNDR \
NDR_SECURITY
2008-10-08 14:03:45 +04:00
LIBCLI_NDR_NETLOGON_OBJ_FILES = $( addprefix $( libclinbtsrcdir) /../, ndr_netlogon.o)
2008-05-21 08:26:38 +04:00
2008-05-16 07:03:01 +04:00
[SUBSYSTEM :: LIBCLI_NETLOGON ]
2008-05-21 08:26:38 +04:00
PUBLIC_DEPENDENCIES = LIBSAMBA-UTIL LIBCLI_NDR_NETLOGON
2008-05-16 07:03:01 +04:00
2008-09-24 04:25:34 +04:00
LIBCLI_NETLOGON_OBJ_FILES = $( addprefix $( libclinbtsrcdir) /, \
2008-10-08 14:03:45 +04:00
../netlogon.o)
2008-05-16 07:03:01 +04:00
2008-06-11 02:05:58 +04:00
[PYTHON :: python_netbios ]
LIBRARY_REALNAME = samba/netbios.$( SHLIBEXT)
2008-04-01 17:08:30 +04:00
PUBLIC_DEPENDENCIES = LIBCLI_NBT DYNCONFIG LIBSAMBA-HOSTCONFIG
2006-05-02 14:59:31 +04:00
2008-10-08 14:03:45 +04:00
python_netbios_OBJ_FILES = $( libclinbtsrcdir) /pynbt.o
2008-05-21 23:24:48 +04:00
2005-04-03 08:36:00 +04:00
[SUBSYSTEM :: LIBCLI_DGRAM ]
2008-05-16 07:03:01 +04:00
PUBLIC_DEPENDENCIES = LIBCLI_NBT LIBNDR LIBCLI_RESOLVE LIBCLI_NETLOGON
2005-04-03 08:36:00 +04:00
2008-05-18 21:54:27 +04:00
LIBCLI_DGRAM_OBJ_FILES = $( addprefix $( libclisrcdir) /dgram/, \
2008-03-03 20:25:28 +03:00
dgramsocket.o \
mailslot.o \
netlogon.o \
browse.o)
2008-01-20 18:24:11 +03:00
[SUBSYSTEM :: LIBCLI_WREPL ]
2008-12-24 02:15:43 +03:00
PUBLIC_DEPENDENCIES = NDR_WINSREPL samba_socket LIBEVENTS LIBPACKET
2005-02-16 13:03:18 +03:00
2008-05-18 21:54:27 +04:00
LIBCLI_WREPL_OBJ_FILES = $( libclisrcdir) /wrepl/winsrepl.o
2008-03-03 20:25:28 +03:00
2008-05-19 01:02:47 +04:00
$(eval $(call proto_header_template,$(libclisrcdir)/wrepl/winsrepl_proto.h,$(LIBCLI_WREPL_OBJ_FILES : .o =.c )))
2008-03-03 20:25:28 +03:00
2005-01-21 14:18:56 +03:00
[SUBSYSTEM :: LIBCLI_RESOLVE ]
2007-12-11 15:38:54 +03:00
PUBLIC_DEPENDENCIES = NDR_NBT
2008-05-18 21:54:27 +04:00
LIBCLI_RESOLVE_OBJ_FILES = $( libclisrcdir) /resolve/resolve.o
2008-03-03 20:25:28 +03:00
2008-05-19 01:02:47 +04:00
$(eval $(call proto_header_template,$(libclisrcdir)/resolve/proto.h,$(LIBCLI_RESOLVE_OBJ_FILES : .o =.c )))
2008-03-03 20:25:28 +03:00
2007-12-11 15:38:54 +03:00
[SUBSYSTEM :: LP_RESOLVE ]
2008-04-01 17:08:30 +04:00
PRIVATE_DEPENDENCIES = LIBCLI_NBT LIBSAMBA-HOSTCONFIG LIBNETIF
2005-01-21 14:18:56 +03:00
2008-05-18 21:54:27 +04:00
LP_RESOLVE_OBJ_FILES = $( addprefix $( libclisrcdir) /resolve/, \
2008-03-03 20:25:28 +03:00
bcast.o nbtlist.o wins.o \
2008-12-12 17:15:21 +03:00
dns_ex.o \
2008-03-03 20:25:28 +03:00
host.o resolve_lp.o)
2008-05-19 01:40:23 +04:00
$(eval $(call proto_header_template,$(libclisrcdir)/resolve/lp_proto.h,$(LP_RESOLVE_OBJ_FILES : .o =.c )))
2008-05-19 00:30:08 +04:00
r12858: This moves the libnet_LookupPdc code to use a GetDC request to find
the remote server's name, or in the absence of a local nbt_server to
communicate with (or without root access), a node status request.
The result is that we are in a better position to use kerberos, as well
as to remove the 'password server' mandatory parameter for the samsync
and samdump commands. (I need this to put these into SWAT).
The only problem I have is that I must create a messaging context, which
requires a server ID. As a client process, I don't expect to get
messages, but it is currently required for replies, so I generate a
random() number. We probably need the servers to accept connections on
streamed sockets too, for client-only tasks that want IRPC.
Because I wanted to test this code, I have put the NET-API-* tests into
our test scripts, to ensure they pass and keep passing. They are good
frontends onto the libnet system, and I see no reason not to test them.
In doing so the NET-API-RPCCONNECT test was simplified to take a
binding string on the command line, removing duplicate code, and
testing the combinations in the scripts instead.
(I have done a bit of work on the list shares code in libnet_share.c
to make it pass 'make test')
In the future, I would like to extend the libcli/findds.c code (based
off volker's winbind/wb_async_helpers.c, which is why it shows up a bit
odd in the patch) to handle getting multiple name replies, sending a
getdc request to each in turn.
(posted to samba-technical for review, and I'll happily update with
any comments)
Andrew Bartlett
(This used to be commit 7ccddfd3515fc2c0d6f447c768ccbf7a220c3380)
2006-01-12 06:02:00 +03:00
[SUBSYSTEM :: LIBCLI_FINDDCS ]
2006-04-24 19:47:59 +04:00
PUBLIC_DEPENDENCIES = LIBCLI_NBT MESSAGING
r12858: This moves the libnet_LookupPdc code to use a GetDC request to find
the remote server's name, or in the absence of a local nbt_server to
communicate with (or without root access), a node status request.
The result is that we are in a better position to use kerberos, as well
as to remove the 'password server' mandatory parameter for the samsync
and samdump commands. (I need this to put these into SWAT).
The only problem I have is that I must create a messaging context, which
requires a server ID. As a client process, I don't expect to get
messages, but it is currently required for replies, so I generate a
random() number. We probably need the servers to accept connections on
streamed sockets too, for client-only tasks that want IRPC.
Because I wanted to test this code, I have put the NET-API-* tests into
our test scripts, to ensure they pass and keep passing. They are good
frontends onto the libnet system, and I see no reason not to test them.
In doing so the NET-API-RPCCONNECT test was simplified to take a
binding string on the command line, removing duplicate code, and
testing the combinations in the scripts instead.
(I have done a bit of work on the list shares code in libnet_share.c
to make it pass 'make test')
In the future, I would like to extend the libcli/findds.c code (based
off volker's winbind/wb_async_helpers.c, which is why it shows up a bit
odd in the patch) to handle getting multiple name replies, sending a
getdc request to each in turn.
(posted to samba-technical for review, and I'll happily update with
any comments)
Andrew Bartlett
(This used to be commit 7ccddfd3515fc2c0d6f447c768ccbf7a220c3380)
2006-01-12 06:02:00 +03:00
2008-05-18 21:54:27 +04:00
LIBCLI_FINDDCS_OBJ_FILES = $( libclisrcdir) /finddcs.o
2008-03-03 20:25:28 +03:00
2008-05-19 01:02:47 +04:00
$(eval $(call proto_header_template,$(libclisrcdir)/finddcs.h,$(LIBCLI_FINDDCS_OBJ_FILES : .o =.c )))
2008-03-03 20:25:28 +03:00
2008-01-20 18:24:11 +03:00
[SUBSYSTEM :: LIBCLI_SMB ]
2008-03-03 20:25:28 +03:00
PUBLIC_DEPENDENCIES = LIBCLI_RAW LIBSAMBA-ERRORS LIBCLI_AUTH \
LIBCLI_SMB_COMPOSITE LIBCLI_NBT LIBSECURITY LIBCLI_RESOLVE \
2008-12-24 02:15:43 +03:00
LIBCLI_DGRAM LIBCLI_SMB2 LIBCLI_FINDDCS samba_socket
2008-03-03 20:25:28 +03:00
2008-05-18 21:54:27 +04:00
LIBCLI_SMB_OBJ_FILES = $( addprefix $( libclisrcdir) /, \
2008-03-03 20:25:28 +03:00
clireadwrite.o \
2005-10-21 20:29:54 +04:00
cliconnect.o \
clifile.o \
clilist.o \
clitrans2.o \
climessage.o \
2008-03-03 20:25:28 +03:00
clideltree.o)
2008-02-26 19:17:52 +03:00
2008-05-19 01:02:47 +04:00
$(eval $(call proto_header_template,$(libclisrcdir)/libcli_proto.h,$(LIBCLI_SMB_OBJ_FILES : .o =.c )))
2008-05-19 00:30:08 +04:00
2008-05-18 21:54:27 +04:00
# PUBLIC_HEADERS += $(libclisrcdir)/libcli.h
2008-02-26 19:17:52 +03:00
2005-07-28 15:27:58 +04:00
[SUBSYSTEM :: LIBCLI_RAW ]
2007-12-17 13:12:42 +03:00
PRIVATE_DEPENDENCIES = LIBCLI_COMPOSITE LP_RESOLVE gensec LIBCLI_RESOLVE LIBSECURITY LIBNDR
2008-02-18 18:02:33 +03:00
#LDFLAGS = $(LIBCLI_SMB_COMPOSITE_OUTPUT)
2009-08-12 19:43:03 +04:00
PUBLIC_DEPENDENCIES = samba_socket LIBPACKET gensec LIBCRYPTO CREDENTIALS LIBCLI_SMB_COMMON
2008-03-03 20:25:28 +03:00
2008-05-18 21:54:27 +04:00
LIBCLI_RAW_OBJ_FILES = $( addprefix $( libclisrcdir) /raw/, rawfile.o smb_signing.o clisocket.o \
2008-03-03 20:25:28 +03:00
clitransport.o clisession.o clitree.o clierror.o rawrequest.o \
rawreadwrite.o rawsearch.o rawsetfileinfo.o raweas.o rawtrans.o \
clioplock.o rawnegotiate.o rawfsinfo.o rawfileinfo.o rawnotify.o \
rawioctl.o rawacl.o rawdate.o rawlpq.o rawshadow.o)
2005-11-11 07:45:38 +03:00
2008-05-19 00:30:08 +04:00
2008-11-01 18:11:26 +03:00
$(eval $(call proto_header_template,$(libclisrcdir)/raw/raw_proto.h,$(LIBCLI_RAW_OBJ_FILES : .o =.c )))
2008-05-19 00:30:08 +04:00
2008-02-18 22:04:18 +03:00
m k i n c l u d e s m b 2 / c o n f i g . m k