1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-18 06:04:06 +03:00

584 Commits

Author SHA1 Message Date
Stefan Metzmacher
f0c9a54b30 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
(This used to be commit 39e1a9b0c55138695e9736612b62ddada157d690)
2004-02-05 12:16:29 +00:00
Stefan Metzmacher
6d351569eb remove unused Makefile vars and fix dublication in $(PROTO_OBJ)
metze
(This used to be commit 2173efba143c633fee599b6e188ed7f66b9bb87f)
2004-02-05 11:37:53 +00:00
Andrew Bartlett
2853e62248 This would appear to restore smbtorture to be able to use the syntax
documented in it's self-help for RPC tests.

Andrew Bartlett
(This used to be commit 49b52cdbfe26dd7afe74aeb4596a4fd34806dabe)
2004-02-03 21:53:51 +00:00
Stefan Metzmacher
0b4da9d7e0 - 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
(This used to be commit 40abf3c584efed7f977ddd688ea064540e5a5b13)
2004-02-03 14:56:07 +00:00
Stefan Metzmacher
f848aff0c2 if vfs_cifs want to modify the ntvfs_ops struct, it should
use a temporary copy of the struct!

metze
(This used to be commit 372522c64f2aea76b3fe136752d4da40e61d2bec)
2004-02-03 12:37:54 +00:00
Stefan Metzmacher
009fa83b13 move include/ntvfs.h to ntvfs/ntvfs.h
metze
(This used to be commit 041dc8c83df21c4cff9a62b9381ebc68b3876e77)
2004-02-03 11:18:54 +00:00
Stefan Metzmacher
1c798aba40 - port AUTH and PASSDB subsystems to new
SMB_SUBSYSTEM() scheme

- some const fixes in ntvfs

metze
(This used to be commit af89a78123068767b1d134969c5651a0fd978b0d)
2004-02-03 11:10:56 +00:00
Stefan Metzmacher
a9b28120b8 make more function static, they are still available via the function pointers
metze
(This used to be commit 4597643e76a34397cd2344a91d7045163ea7a942)
2004-02-03 11:05:36 +00:00
Stefan Metzmacher
a8152b68a0 do some merging from 3.0
metze
(This used to be commit 47a240d7b833542937a1b93829c1cf8baae2ffc5)
2004-02-03 06:37:28 +00:00
Stefan Metzmacher
26ecaa3226 - move all SMB server stuff to smb_server/*
and create the SMB server subsystem

- remove unused XML and MYSQL configure tests

metze
(This used to be commit 956d212c83d8ebd8e31ec109f17dc2105ca72c30)
2004-02-03 05:47:36 +00:00
Stefan Metzmacher
b2f097ad38 remove some unused stuff
metze
(This used to be commit d634a78faef8f59266f253bac76585ec79ff1b54)
2004-02-02 14:48:40 +00:00
Stefan Metzmacher
b884eba104 const fixes
metze
(This used to be commit a2beaa0823f899ae9f49c2e624f5e10263c5c26b)
2004-02-02 14:46:25 +00:00
Stefan Metzmacher
cc4af8d13a readd this fix:
fix PROTO_OBJS ... fix make proto on some platforms

metze
(This used to be commit 5346756a65af12aed1696318e41ea0deab1c7fda)
2004-02-02 14:13:48 +00:00
Stefan Metzmacher
c61089219b - 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
(This used to be commit 2e57ee884ebea194ee79ac20e84e385481b56aa2)
2004-02-02 13:43:03 +00:00
Stefan Metzmacher
894e02f80c some DEBUG and comment fixes
metze
(This used to be commit 5ac4f878687eb0fa95a2e5830a8372168a27d3b3)
2004-02-02 13:28:29 +00:00
Stefan Metzmacher
ada1de721a some compilers don't like the #warning preprocessing directive
so just do a DEBUG(0,("..."));

metze
(This used to be commit c087ff38b0c67a2246214c1303b045e6a7c2aa4a)
2004-02-02 12:15:25 +00:00
Stefan Metzmacher
ac7d38c3f9 remove unused files
we maybe need the util_smbd.c code later but this should not be in the lib/ dir

metze
(This used to be commit 2149d414079cefc956bc9a50e30b7bb423f4aca6)
2004-02-02 07:23:29 +00:00
Stefan Metzmacher
8468164b98 remove unused .cvsignore file
(This used to be commit 64e064c4971a361a41b80ac47757e8581448f523)
2004-02-02 07:11:30 +00:00
Stefan Metzmacher
ec5d556a12 some systems doesn't have ./ in PATH
so use ./build/pidl/pidl.pl

metze
(This used to be commit 7aab10d507346ac8d748558e5b9dbcfe9a56f601)
2004-02-02 07:06:28 +00:00
Stefan Metzmacher
bfb86c49ea fix PROTO_OBJS ... fix make proto on some platforms
metze
(This used to be commit ae37d9bb3f570a069d5a0492a1ecac9a4d14a7f5)
2004-02-02 07:02:15 +00:00
Stefan Metzmacher
9b736c3d9e 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
(This used to be commit 904ce91ed9e3b26d591278984ae32fa99bac01fd)
2004-02-01 12:16:26 +00:00
Stefan Metzmacher
670ccc7d64 merge:
ldap and krb5 configure tests
libads/*.c and libcli/raw/clikrb5.c from 3.0

metze
(This used to be commit 64b5bfcd73d7626d6f687a641b11e64821144df7)
2004-02-01 11:26:25 +00:00
Stefan Metzmacher
0d90f4b47b 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
(This used to be commit 9bf405dd40c2133700a55fc6e163e975b4e62a66)
2004-01-29 16:08:19 +00:00
Stefan Metzmacher
04376e44b6 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
(This used to be commit 350fbe3440e28bcb26f9a9e8b999b0c4a70de64d)
2004-01-29 09:54:42 +00:00
Stefan Metzmacher
1aceddaec4 remove a lot of unused smb.conf options
I think we should remove a view more,
but step by step:-)

metze
(This used to be commit 534ccc5332d16c395847885e3b793d10b67b9855)
2004-01-29 09:47:39 +00:00
Stefan Metzmacher
a5ece462ab remove a lot of unused stuff from the header files
and exclude some files from Makefile.in

metze
(This used to be commit f77990cf2496f72d02566f09477349436be3dfcd)
2004-01-28 18:54:36 +00:00
Stefan Metzmacher
607d6948f2 - cosmetic fix in configure.in
- fix mem leak in process.c

metze
(This used to be commit d82ada11377e7613fc7c48afa9ef5f8a2e54233c)
2004-01-28 15:47:20 +00:00
Stefan Metzmacher
7de61be924 - 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
(This used to be commit 92a3eb83d4bb07a7f1f87232e26831d05ab42915)
2004-01-28 15:43:18 +00:00
Stefan Metzmacher
d70b4a07bf remove autogenerated version.h from CVS
metze
(This used to be commit e7694095d3c3f2e18ec2c05f74541dbb7954d79d)
2004-01-28 12:49:32 +00:00
Stefan Metzmacher
e06687eb17 merge the version.h autogeneration stuff from 3.0
metze
(This used to be commit 24dc237e109f6dce69814b22e0fb7878a7f6bfa8)
2004-01-28 12:47:52 +00:00
Jelmer Vernooij
2ffa2fe165 Remove testing utility for removed SAM system
(This used to be commit dee59bec8413799aa66b37d5baace7dd2e782801)
2004-01-24 19:21:08 +00:00
Andrew Bartlett
0ea253d728 (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
(This used to be commit f1cf5b8aa9897b79dfd00b963bc3803b6ff00dcb)
2004-01-22 10:22:03 +00:00
Stefan Metzmacher
da93724637 - move the vars used by the backtrace stuff into the #ifdef
- handle SIBABRT with a backtrace

metze
(This used to be commit e9f584143d5bbcbbdaaac2c231efd85c7bd5a922)
2004-01-22 02:28:17 +00:00
Stefan Metzmacher
3c310c7aa2 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
(This used to be commit b34a3104c63b36cec47acdedef36caaf571eb383)
2004-01-22 02:13:13 +00:00
Stefan Metzmacher
b1d8f234bf 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
(This used to be commit 0b6a291eb4b353259ad5b72f8731a5504d9dc8c7)
2004-01-22 02:02:27 +00:00
Stefan Metzmacher
55dfa23e41 initilize ev->maxfd = EVENT_INVALID_MAXFD; before the while() loop.
metze
(This used to be commit 61ec710518469876ccc48d57b5fee5d6ead3d482)
2004-01-22 01:56:31 +00:00
Stefan Metzmacher
d8ee9d7a0e - 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
(This used to be commit 857e76ef6b891c199534db6ce229410340286461)
2004-01-22 01:35:51 +00:00
Stefan Metzmacher
0831b8b9f5 make dcerpc_pipes[] completely const.
so it now apears in the text section of
'size librpc/gen_ndr/tables.o'

metze
(This used to be commit f3b917402aeb9d749abf2df34413e61b71fd5fff)
2004-01-22 01:29:44 +00:00
Andrew Tridgell
fb15b95bc5 added a little bit of const magic to get rid of the data in librpc/gen_ndr/*.o
(This used to be commit 866ef2edab91996964c8b43dbdd417f5908a00e1)
2004-01-22 01:12:43 +00:00
Stefan Metzmacher
aafd0efc58 let the event_add_XXX() function return a pointer of the allocated event structure
and NULL on allacation error.

metze
(This used to be commit fffc6cfb6b9946155d209dd14faa79c5b9d43d1d)
2004-01-21 23:19:59 +00:00
Andrew Tridgell
0593fd96fb cope with a wider range of broken servers in the RAW-QFILEINFO test
(This used to be commit eb6fc29caf5be8446c31668748a5cce387c71627)
2004-01-21 03:30:03 +00:00
Andrew Tridgell
53382d54f4 check for the correct fault code when the server fails a use of a
incorrect policy handle
(This used to be commit 8cd6e90eb8716ba43f5940245d7be580aab4ba83)
2004-01-20 06:10:15 +00:00
Andrew Tridgell
8ae5b50a6e 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.
(This used to be commit 2ed24d29bafd9055d5782acdd595cd0f378a651a)
2004-01-20 06:07:09 +00:00
Andrew Tridgell
7a4da9654e 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.
(This used to be commit e7c53ad1856e299d82d84b5837189ae3191c32de)
2004-01-20 05:54:17 +00:00
Andrew Tridgell
4d39861f99 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.
(This used to be commit 9aab321fb6e2f3499efd8ca5bc88ce2cb8e68219)
2004-01-20 04:32:17 +00:00
Stefan Metzmacher
1e1428605b 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
(This used to be commit cb5f1e581fcb9eaf36926c3f341b0ab784031282)
2004-01-19 14:57:56 +00:00
Stefan Metzmacher
8a102d1aae 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
(This used to be commit e0043693a66a319ab7fef0e4202239c0b5d4bff8)
2004-01-19 14:22:32 +00:00
Simo Sorce
dc5f5d8a1b Add test to set single fields in fields_present with info21.
(This used to be commit 2372321eedb6d446c1555ed318bd98743cabaaa0)
2004-01-19 08:59:14 +00:00
Andrew Tridgell
d858a2ceee make sure we initialise r.out.handle in openeventlog
(This used to be commit 6319166420ba7cd7bb3a69d88510d8e6216c7c89)
2004-01-17 00:16:18 +00:00
Andrew Tridgell
ff4a146168 * fixed a segv when -U is not used in smbtorture.
* fixed the handling of anonymous logins
(This used to be commit 7cbc4ad8710ad33387145bfc9974d0ed4b0fb231)
2004-01-15 23:19:07 +00:00