Andrew Tridgell [Sat, 21 Feb 2004 04:02:00 +0000 (04:02 +0000)]
fixed a problem with the smb client code spinning when the connection
is lost. We now close the cli_transport when there is a socket io
error
Stefan Metzmacher [Wed, 18 Feb 2004 15:31:25 +0000 (15:31 +0000)]
don't inlcude rpc/rpc.h and rpcsvc/*.h anymore
and remove NET_GROUP stuff, this needs to be implemented
in a better way if we ever readd this
metze
Stefan Metzmacher [Wed, 18 Feb 2004 13:55:15 +0000 (13:55 +0000)]
remove unused NISPLUS/AUTOMOUNT stuff
metze
Stefan Metzmacher [Wed, 18 Feb 2004 13:17:03 +0000 (13:17 +0000)]
remove pdb_nisplus, its also removed in samba3, because it was broken
metze
Stefan Metzmacher [Wed, 18 Feb 2004 12:20:17 +0000 (12:20 +0000)]
move some cryto stuff to lib/crypto/*
metze
Stefan Metzmacher [Fri, 13 Feb 2004 15:20:52 +0000 (15:20 +0000)]
move external configure test programs
from tests/*.c to build/tests/*.c
metze
Stefan Metzmacher [Fri, 13 Feb 2004 15:03:46 +0000 (15:03 +0000)]
move all old configure checks to build/m4/rewrite.m4
we should get rid of this file in the end:-)
the tests should go into subsystems config.m4 files
the goal is to know which tests belong to what code
and remove unused tests to make configure a bit faster
metze
Stefan Metzmacher [Thu, 12 Feb 2004 16:28:12 +0000 (16:28 +0000)]
move the tdb utils to utils/tdb/*
metze
Stefan Metzmacher [Thu, 12 Feb 2004 15:59:16 +0000 (15:59 +0000)]
move the tdb lib code to lib/tdb/*
metze
Stefan Metzmacher [Thu, 12 Feb 2004 14:21:44 +0000 (14:21 +0000)]
move -lpopt replacement code from source/popt/* to source/lib/popt/*
metze
Stefan Metzmacher [Thu, 12 Feb 2004 08:07:46 +0000 (08:07 +0000)]
move the -lpopt replacement to a LIBPOPT subsystem
metze
Stefan Metzmacher [Thu, 12 Feb 2004 06:02:32 +0000 (06:02 +0000)]
move more code to the config.m4 scheme
LIBBASIC, LIBSMB are the new global subsystems
metze
Stefan Metzmacher [Thu, 12 Feb 2004 05:52:53 +0000 (05:52 +0000)]
do not return a value in a void function
metze
Andrew Tridgell [Wed, 11 Feb 2004 13:18:05 +0000 (13:18 +0000)]
fixed a void return spotted by metze
Stefan Metzmacher [Wed, 11 Feb 2004 12:45:47 +0000 (12:45 +0000)]
as I renamed the PDB subsystem to PASSDB, we need to rename
the static init functions of the modules too:-)
metze
Andrew Tridgell [Tue, 10 Feb 2004 20:49:59 +0000 (20:49 +0000)]
fixed a couple of uninitialised returns spotted by valgrind
Andrew Tridgell [Tue, 10 Feb 2004 20:48:22 +0000 (20:48 +0000)]
don't force debug in the RPC-MGMT test
Andrew Tridgell [Tue, 10 Feb 2004 20:47:22 +0000 (20:47 +0000)]
we can close the netlogon pipe used to setup the schannel session key
as soon as we are finished with the netlogon negotiation phase. The
session key remains valid.
Tim Potter [Tue, 10 Feb 2004 11:33:35 +0000 (11:33 +0000)]
Convert libcli routines to return NTSTATUS instead of BOOL. Again, the
only users are smbclient and smbtorture.
Andrew Tridgell [Tue, 10 Feb 2004 11:19:58 +0000 (11:19 +0000)]
don't always use the same schannel context number
Andrew Tridgell [Tue, 10 Feb 2004 10:22:12 +0000 (10:22 +0000)]
- modified the dcerpc client security code to be generic, so ntlmssp
and schannel are both instances of possible security modules
- added schannel sign and sign/seal support to the dcerpc client
code. You select it with binding options of "schannel,sign" or
"schannel,seal".
Stefan Metzmacher [Mon, 9 Feb 2004 21:57:07 +0000 (21:57 +0000)]
the subsystem name is 'PASSDB' so name the modules 'passdb_XXX'
metze
Stefan Metzmacher [Mon, 9 Feb 2004 21:56:03 +0000 (21:56 +0000)]
- remove unused 'evel ...' calls, we don't need them inside of
AC_XXX() macros
- handle --with-shared-modules=process_model --with-static-modules=process_model_single
right. ( build 'single' static and the rest of the process_model modules shared,
if they're not declared as NOT.
metze
Stefan Metzmacher [Mon, 9 Feb 2004 21:04:42 +0000 (21:04 +0000)]
fix pdb_ldap build if LDAP support was detected
metze
Tim Potter [Sun, 8 Feb 2004 00:51:07 +0000 (00:51 +0000)]
Convert libcli routines to use cli_tree instead of cli_state. Port
smbtorture to use the new interface.
Part 2 will be to eliminate cli_state from smbtorture as this is now
the only place where it is used.
Stefan Metzmacher [Thu, 5 Feb 2004 12:16:29 +0000 (12:16 +0000)]
add the TORTURE SUBSYSTEM to the config.m4 scheme
tridge:
I'll convert all stuff first to this scheme
and then move to the scheme with two files per subsystems
so we'll later something like config.m4 and config.mk...
metze
Stefan Metzmacher [Thu, 5 Feb 2004 11:37:53 +0000 (11:37 +0000)]
remove unused Makefile vars and fix dublication in $(PROTO_OBJ)
metze
Andrew Bartlett [Tue, 3 Feb 2004 21:53:51 +0000 (21:53 +0000)]
This would appear to restore smbtorture to be able to use the syntax
documented in it's self-help for RPC tests.
Andrew Bartlett
Stefan Metzmacher [Tue, 3 Feb 2004 14:56:07 +0000 (14:56 +0000)]
- add 'print' to the DCERPC binding strings
e.g.
ncacn_np:myserver:[samr,sign,print]
will now enable the packet debugging
and the debugging is not bound anymore to the debuglevel >= 2
in the torture tests
- also the dcesrv_remote module now supports debugging of the packets
use the 'dcerpc_remote:binding' smb.conf parameter.
metze
Stefan Metzmacher [Tue, 3 Feb 2004 12:37:54 +0000 (12:37 +0000)]
if vfs_cifs want to modify the ntvfs_ops struct, it should
use a temporary copy of the struct!
metze
Stefan Metzmacher [Tue, 3 Feb 2004 11:18:54 +0000 (11:18 +0000)]
move include/ntvfs.h to ntvfs/ntvfs.h
metze
Stefan Metzmacher [Tue, 3 Feb 2004 11:10:56 +0000 (11:10 +0000)]
- port AUTH and PASSDB subsystems to new
SMB_SUBSYSTEM() scheme
- some const fixes in ntvfs
metze
Stefan Metzmacher [Tue, 3 Feb 2004 11:05:36 +0000 (11:05 +0000)]
make more function static, they are still available via the function pointers
metze
Stefan Metzmacher [Tue, 3 Feb 2004 06:37:28 +0000 (06:37 +0000)]
do some merging from 3.0
metze
Stefan Metzmacher [Tue, 3 Feb 2004 05:47:36 +0000 (05:47 +0000)]
- move all SMB server stuff to smb_server/*
and create the SMB server subsystem
- remove unused XML and MYSQL configure tests
metze
Stefan Metzmacher [Mon, 2 Feb 2004 14:48:40 +0000 (14:48 +0000)]
remove some unused stuff
metze
Stefan Metzmacher [Mon, 2 Feb 2004 14:46:25 +0000 (14:46 +0000)]
const fixes
metze
Stefan Metzmacher [Mon, 2 Feb 2004 14:13:48 +0000 (14:13 +0000)]
readd this fix:
fix PROTO_OBJS ... fix make proto on some platforms
metze
Stefan Metzmacher [Mon, 2 Feb 2004 13:43:03 +0000 (13:43 +0000)]
- we now specify the object files in the subsystems config.m4 file
I plan to convert all objectfile group to use SMB_SUBSYSTEM
later I'll add a SMB_BINARY() and SMB_LIBRARY(), then there will be no more need
to touch Makefile.in, because all make rules will be autogenerated by configure
- convert the PROCESS_MODEL subsystem to this new scheme
and move the pthread test to smbd/process_model.m4
- convert the CHARSET subsystem to this new scheme
and move the iconv test to lib/iconv.m4
Stefan Metzmacher [Mon, 2 Feb 2004 13:28:29 +0000 (13:28 +0000)]
some DEBUG and comment fixes
metze
Stefan Metzmacher [Mon, 2 Feb 2004 12:15:25 +0000 (12:15 +0000)]
some compilers don't like the #warning preprocessing directive
so just do a DEBUG(0,("..."));
metze
Stefan Metzmacher [Mon, 2 Feb 2004 07:23:29 +0000 (07:23 +0000)]
remove unused files
we maybe need the util_smbd.c code later but this should not be in the lib/ dir
metze
Stefan Metzmacher [Mon, 2 Feb 2004 07:11:30 +0000 (07:11 +0000)]
remove unused .cvsignore file
Stefan Metzmacher [Mon, 2 Feb 2004 07:06:28 +0000 (07:06 +0000)]
some systems doesn't have ./ in PATH
so use ./build/pidl/pidl.pl
metze
Stefan Metzmacher [Mon, 2 Feb 2004 07:02:15 +0000 (07:02 +0000)]
fix PROTO_OBJS ... fix make proto on some platforms
metze
Stefan Metzmacher [Sun, 1 Feb 2004 12:16:26 +0000 (12:16 +0000)]
Makefile.in cleanups:
lib/util_smbd.c is not used anymore
reorder the SMB_MODULE() parameters the goal is to autogenerate the
make rules for shared modules:
dnl SMB_MODULE(1:name,2:subsystem,3:default_build,
4:object_files,5:shared_object,6:libs
7:whatif-static,8:whatif-shared,9:whatif-not)
and generate <SUBSYSTEM>_LIBS and MODULE_<name>_LIBS with the SMB_MODULE() macro
metze
Stefan Metzmacher [Sun, 1 Feb 2004 11:26:25 +0000 (11:26 +0000)]
merge:
ldap and krb5 configure tests
libads/*.c and libcli/raw/clikrb5.c from 3.0
metze
Stefan Metzmacher [Thu, 29 Jan 2004 16:08:19 +0000 (16:08 +0000)]
remove unused configure checks and options
--with-acl-support
--with-sendfile-support
--with-manpages-langs
--with-utmp
--with-quotas
--with-nisplus-home
--with-profiling-data
--with-syslog
--with-pam_smbpass
--with-pam
--with-smbmount
--with-automount
--with-dce-dfs
--with-afs
--with-smbwrapper
poll and poll.h
I'm sure we need some of this but e.g. acl, sendfile and quotas belong
only to the posix ntvfs module, so the tests will to into a seperate config.m4
file, when we need them...
metze
Stefan Metzmacher [Thu, 29 Jan 2004 09:54:42 +0000 (09:54 +0000)]
add find_unused_options.sh
this script finds unused lp_*() functions
use it like this:
user@host:~/samba/source>./script/find_unused_options.sh
metze
Stefan Metzmacher [Thu, 29 Jan 2004 09:47:39 +0000 (09:47 +0000)]
remove a lot of unused smb.conf options
I think we should remove a view more,
but step by step:-)
metze
Stefan Metzmacher [Wed, 28 Jan 2004 18:54:36 +0000 (18:54 +0000)]
remove a lot of unused stuff from the header files
and exclude some files from Makefile.in
metze
Stefan Metzmacher [Wed, 28 Jan 2004 15:47:20 +0000 (15:47 +0000)]
- cosmetic fix in configure.in
- fix mem leak in process.c
metze
Stefan Metzmacher [Wed, 28 Jan 2004 15:43:18 +0000 (15:43 +0000)]
- remove all STFS related stuff
(which were already removed in revision 1.37 and
readded by mistake in revision 1.39)
- change the SMB_MODULE() macro a bit
Now we have:
dnl Specify the default build method of this module
dnl SMB_MODULE_DEFAULT(name,default_build)
AC_DEFUN(SMB_MODULE_DEFAULT,...
dnl Mark specified module as shared
dnl SMB_MODULE(name,default_build,static_files,shared_files,subsystem,whatif-static,whatif-shared,whatif-not)
this let us specify the default build method inside of the included config.m4
files
metze
Stefan Metzmacher [Wed, 28 Jan 2004 12:49:32 +0000 (12:49 +0000)]
remove autogenerated version.h from CVS
metze
Stefan Metzmacher [Wed, 28 Jan 2004 12:47:52 +0000 (12:47 +0000)]
merge the version.h autogeneration stuff from 3.0
metze
Jelmer Vernooij [Sat, 24 Jan 2004 19:21:08 +0000 (19:21 +0000)]
Remove testing utility for removed SAM system
Andrew Bartlett [Thu, 22 Jan 2004 10:22:03 +0000 (10:22 +0000)]
(merge from 3.0)
Fix for debian Bug#225328 by LaMont Jones <lamont@debian.org>, where
the failure of our LFS test on ia64 caused the _GNU_SOURCE define not to be
added, causeing strndup() not to be defined...
This was due to strdup() bein implicitly declared, and casting
pointer->int->pointer.
I'll into when we really should define _GNU_SOURCE shortly, but the
fix is correct anyway.
Andrew Bartlett
Stefan Metzmacher [Thu, 22 Jan 2004 02:28:17 +0000 (02:28 +0000)]
- move the vars used by the backtrace stuff into the #ifdef
- handle SIBABRT with a backtrace
metze
Stefan Metzmacher [Thu, 22 Jan 2004 02:13:13 +0000 (02:13 +0000)]
fix last commit, which went in by mistake
('cvs ci filename' should be my friend:-)
get rid of some more global unconst vars.
I didn't find a referenz of this vars:
SIG_ATOMIC_T reload_after_sighup = 0;
SIG_ATOMIC_T got_sig_term = 0;
tridge: is it ok to remove them?
it compiles for me
metze
Stefan Metzmacher [Thu, 22 Jan 2004 02:02:27 +0000 (02:02 +0000)]
sorry, the last commit went in by mistake:-(
- implement the interface_by_name() and interface_by_uuid() hooks
for the autogenerated dcerpc server boilerplates.
metze
Stefan Metzmacher [Thu, 22 Jan 2004 01:56:31 +0000 (01:56 +0000)]
initilize ev->maxfd = EVENT_INVALID_MAXFD; before the while() loop.
metze
Stefan Metzmacher [Thu, 22 Jan 2004 01:35:51 +0000 (01:35 +0000)]
- make the recalculation of ev->maxfd a bit more efficient.
- fix the case when we have no fd_events left on the event_context
we now exit after doing the timed events and not block in select()
waiting for no fd's to become ready...
metze
Stefan Metzmacher [Thu, 22 Jan 2004 01:29:44 +0000 (01:29 +0000)]
make dcerpc_pipes[] completely const.
so it now apears in the text section of
'size librpc/gen_ndr/tables.o'
metze
Andrew Tridgell [Thu, 22 Jan 2004 01:12:43 +0000 (01:12 +0000)]
added a little bit of const magic to get rid of the data in librpc/gen_ndr/*.o
Stefan Metzmacher [Wed, 21 Jan 2004 23:19:59 +0000 (23:19 +0000)]
let the event_add_XXX() function return a pointer of the allocated event structure
and NULL on allacation error.
metze
Andrew Tridgell [Wed, 21 Jan 2004 03:30:03 +0000 (03:30 +0000)]
cope with a wider range of broken servers in the RAW-QFILEINFO test
Andrew Tridgell [Tue, 20 Jan 2004 06:10:15 +0000 (06:10 +0000)]
check for the correct fault code when the server fails a use of a
incorrect policy handle
Andrew Tridgell [Tue, 20 Jan 2004 06:07:09 +0000 (06:07 +0000)]
added code to the RPC-SPOOLSS test that demonstrates that policy
handles are not shared between open dcerpc connections, even when
those connections are on the same SMB socket. I have tested this with
w2k3, w2k and NT4. It seems that policy handles have a strict scope of
the dcerpc connection on which they were opened.
I realise that this goes against existing folk-law in the team, but it
seems that the previous testing (I'm not sure who did this?) was
wrong. Perhaps clients do send us policy handles from other
connections, but if they do then the correct thing to do is to fail
the operation with a dcerpc fault. I suspect that failing it with
exactly the right dcerpc fault code is important.
Andrew Tridgell [Tue, 20 Jan 2004 05:54:17 +0000 (05:54 +0000)]
dcerpc server output now copes with the client blocking part way
through a read. This happens to also avoid a memcpy on output for
dcerpc over tcp.
Andrew Tridgell [Tue, 20 Jan 2004 04:32:17 +0000 (04:32 +0000)]
avoid a copy of the data being input to the dcerpc server in the most
common case of there being no pending partial data and a full dcerpc
packet being received.
We should use this same model for the smb server. It gives us
efficient memory usage while allowing for completely async socket
operations.
Stefan Metzmacher [Mon, 19 Jan 2004 14:57:56 +0000 (14:57 +0000)]
add make [un]installtorture
and let this be called by make [un]install
we can later change this and the make all
to not do the torture stuff, but for know only developers will
use samba4...
metze
Stefan Metzmacher [Mon, 19 Jan 2004 14:22:32 +0000 (14:22 +0000)]
remove all unused stuff from Makefile.in
and some stuff from configure.in and dynconfig.[ch]
make all
makes
bin/gentest bin/masktest bin/smbd
bin/locktest bin/smbclient bin/smbtorture
bin/ndrdump
now
metze
Simo Sorce [Mon, 19 Jan 2004 08:59:14 +0000 (08:59 +0000)]
Add test to set single fields in fields_present with info21.
Andrew Tridgell [Sat, 17 Jan 2004 00:16:18 +0000 (00:16 +0000)]
make sure we initialise r.out.handle in openeventlog
Andrew Tridgell [Thu, 15 Jan 2004 23:19:07 +0000 (23:19 +0000)]
* fixed a segv when -U is not used in smbtorture.
* fixed the handling of anonymous logins
Stefan Metzmacher [Tue, 13 Jan 2004 22:24:56 +0000 (22:24 +0000)]
a script which find unused or undefined vars in Makefile or Makefile.in
call it like:
script/find_unused_makefilevars.pl Makefile
or
script/find_unused_makefilevars.pl Makefile.in
metze
Jelmer Vernooij [Tue, 13 Jan 2004 22:22:43 +0000 (22:22 +0000)]
Add script for finding unused function checks in configure.in
Jelmer Vernooij [Sun, 11 Jan 2004 13:40:06 +0000 (13:40 +0000)]
Fix --with-fhs for swatdir
Andrew Tridgell [Sun, 11 Jan 2004 05:16:07 +0000 (05:16 +0000)]
added dom_sid_string() function
Stefan Metzmacher [Fri, 9 Jan 2004 06:59:48 +0000 (06:59 +0000)]
Update Copyright to 1992-2004
Jerry should I change this in 3_0 and HEAD as well?
metze
Andrew Tridgell [Fri, 9 Jan 2004 02:43:23 +0000 (02:43 +0000)]
fixed the rpc epmapper server. This fixes rpc over tcp.
Stefan Metzmacher [Thu, 8 Jan 2004 22:55:27 +0000 (22:55 +0000)]
This patch adds a better dcerpc server infastructure.
1.) We now register endpoint servers add startup via register_backend()
and later use the smb.conf 'dcerpc endpoint servers' parameter to setup the dcesrv_context
2.) each endpoint server can register at context creation time as much interfaces as it wants
(multiple interfaces on one endpoint are supported!)
(NOTE: there's a difference between 'endpoint server' and 'endpoint'!
for details look at rpc_server/dcesrv_server.h)
3.) one endpoint can have a security descriptor registered to it self
this will be checked in the future when a client wants to connect
to an smb pipe endpoint.
4.) we now have a 'remote' endpoint server, which works like the ntvfs_cifs module
it takes this options in the [globals] section:
dcerpc remote:interfaces = srvsvc, winreg, w32time, epmapper
dcerpc remote:binding = ...
dcerpc remote:user = ...
dcerpc remote:password = ...
5.) we currently have tree endpoint servers: epmapper, rpcecho and remote
the default for the 'dcerpc endpiont servers = epmapper, rpcecho'
for testing you can also do
dcerpc endpoint servers = rpcecho, remote, epmapper
dcerpc remote:interfaces = srvsvc, samr, netlogon
6,) please notice the the epmapper now only returns NO_ENTRIES
(but I think we'll find a solution for this too:-)
7.) also there're some other stuff left, but step by step :-)
This patch also includes updates for the
register_subsystem() , ntvfs_init(), and some other funtions
to check for duplicate subsystem registration
metze
(hmmm, my first large commit...I hope it works as supposed :-)
Stefan Metzmacher [Thu, 8 Jan 2004 06:48:54 +0000 (06:48 +0000)]
remove a useless assignment
metze
Jelmer Vernooij [Fri, 2 Jan 2004 13:47:13 +0000 (13:47 +0000)]
Add note about new configure structure.
Tim Potter [Fri, 2 Jan 2004 01:04:59 +0000 (01:04 +0000)]
Autodetect service_type in cli_tree_full_connection() if the caller
passes in NULL.
Andrew Tridgell [Wed, 31 Dec 2003 01:32:33 +0000 (01:32 +0000)]
the endpoint mapper now works in bigendian mode
Andrew Tridgell [Tue, 30 Dec 2003 22:55:12 +0000 (22:55 +0000)]
"subsystems" should be static
Andrew Tridgell [Mon, 22 Dec 2003 02:52:33 +0000 (02:52 +0000)]
remove some unused files
Andrew Tridgell [Sun, 21 Dec 2003 07:57:49 +0000 (07:57 +0000)]
minor updates to make the srvsvc test compile
Andrew Tridgell [Sun, 21 Dec 2003 07:53:57 +0000 (07:53 +0000)]
wkssvc test updates from metze
Andrew Tridgell [Sat, 20 Dec 2003 21:50:51 +0000 (21:50 +0000)]
latest srvsvc and wkssvc IDL from metze
Andrew Tridgell [Sat, 20 Dec 2003 21:09:04 +0000 (21:09 +0000)]
tim, I'm guessing you really didn't want to add this :)
Tim Potter [Sat, 20 Dec 2003 09:23:48 +0000 (09:23 +0000)]
Remove Makefile targets for old python extensions.
Andrew Tridgell [Fri, 19 Dec 2003 23:44:26 +0000 (23:44 +0000)]
addition of samr_SetSecurity() from kai
we needed to adjust the alignment of [relative] buffers for this to
work. I wonder if they are always 4 byte aligned?
Andrew Tridgell [Fri, 19 Dec 2003 04:26:26 +0000 (04:26 +0000)]
fixed removal of moe than one ncacn_* option from option list
Andrew Tridgell [Fri, 19 Dec 2003 04:13:39 +0000 (04:13 +0000)]
fixed the AddAliasMem test code
Andrew Tridgell [Fri, 19 Dec 2003 03:59:27 +0000 (03:59 +0000)]
added a bunch of alias functions in samr.idl based on work by Kai.
Andrew Tridgell [Fri, 19 Dec 2003 00:40:40 +0000 (00:40 +0000)]
added code to the IDL validator to check for common errors with
pointers are arrays
Andrew Tridgell [Wed, 17 Dec 2003 21:37:34 +0000 (21:37 +0000)]
fixed a segv in RPC-* when debug level > 2
thanks to Kai for spotting this!
Tim Potter [Wed, 17 Dec 2003 03:38:06 +0000 (03:38 +0000)]
Fix typo.