1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-21 12:23:50 +03:00
Commit Graph

567 Commits

Author SHA1 Message Date
Stefan Metzmacher
a2beaa0823 const fixes
metze
-
Stefan Metzmacher
5346756a65 readd this fix:
fix PROTO_OBJS ... fix make proto on some platforms

metze
-
Stefan Metzmacher
2e57ee884e - 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
5ac4f87868 some DEBUG and comment fixes
metze
-
Stefan Metzmacher
c087ff38b0 some compilers don't like the #warning preprocessing directive
so just do a DEBUG(0,("..."));

metze
-
Stefan Metzmacher
2149d41407 remove unused files
we maybe need the util_smbd.c code later but this should not be in the lib/ dir

metze
-
Stefan Metzmacher
64e064c497 remove unused .cvsignore file -
Stefan Metzmacher
7aab10d507 some systems doesn't have ./ in PATH
so use ./build/pidl/pidl.pl

metze
-
Stefan Metzmacher
ae37d9bb3f fix PROTO_OBJS ... fix make proto on some platforms
metze
-
Stefan Metzmacher
904ce91ed9 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
64b5bfcd73 merge:
ldap and krb5 configure tests
libads/*.c and libcli/raw/clikrb5.c from 3.0

metze
-
Stefan Metzmacher
9bf405dd40 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
350fbe3440 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
534ccc5332 remove a lot of unused smb.conf options
I think we should remove a view more,
but step by step:-)

metze
-
Stefan Metzmacher
f77990cf24 remove a lot of unused stuff from the header files
and exclude some files from Makefile.in

metze
-
Stefan Metzmacher
d82ada1137 - cosmetic fix in configure.in
- fix mem leak in process.c

metze
-
Stefan Metzmacher
92a3eb83d4 - 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
e7694095d3 remove autogenerated version.h from CVS
metze
-
Stefan Metzmacher
24dc237e10 merge the version.h autogeneration stuff from 3.0
metze
-
Jelmer Vernooij
dee59bec84 Remove testing utility for removed SAM system -
Andrew Bartlett
f1cf5b8aa9 (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
e9f584143d - move the vars used by the backtrace stuff into the #ifdef
- handle SIBABRT with a backtrace

metze
-
Stefan Metzmacher
b34a3104c6 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
0b6a291eb4 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
61ec710518 initilize ev->maxfd = EVENT_INVALID_MAXFD; before the while() loop.
metze
-
Stefan Metzmacher
857e76ef6b - 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
f3b917402a make dcerpc_pipes[] completely const.
so it now apears in the text section of
'size librpc/gen_ndr/tables.o'

metze
-
Andrew Tridgell
866ef2edab added a little bit of const magic to get rid of the data in librpc/gen_ndr/*.o -
Stefan Metzmacher
fffc6cfb6b let the event_add_XXX() function return a pointer of the allocated event structure
and NULL on allacation error.

metze
-
Andrew Tridgell
eb6fc29caf cope with a wider range of broken servers in the RAW-QFILEINFO test -
Andrew Tridgell
8cd6e90eb8 check for the correct fault code when the server fails a use of a
incorrect policy handle
-
Andrew Tridgell
2ed24d29ba 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
e7c53ad185 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
9aab321fb6 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
cb5f1e581f 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
e0043693a6 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
2372321eed Add test to set single fields in fields_present with info21. -
Andrew Tridgell
6319166420 make sure we initialise r.out.handle in openeventlog -
Andrew Tridgell
7cbc4ad871 * fixed a segv when -U is not used in smbtorture.
* fixed the handling of anonymous logins
-
Stefan Metzmacher
ebecb6d05b 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
7c6a261871 Add script for finding unused function checks in configure.in -
Jelmer Vernooij
5c8abbcbe5 Fix --with-fhs for swatdir -
Andrew Tridgell
399f95536b added dom_sid_string() function -
Stefan Metzmacher
664f1e30f8 Update Copyright to 1992-2004
Jerry should I change this in 3_0 and HEAD as well?

metze
-
Andrew Tridgell
6ac547fa5f fixed the rpc epmapper server. This fixes rpc over tcp. -
Stefan Metzmacher
917e45dafd 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
189ef6e73d remove a useless assignment
metze
-
Jelmer Vernooij
43130f370b Add note about new configure structure. -
Tim Potter
b63ebaa770 Autodetect service_type in cli_tree_full_connection() if the caller
passes in NULL.
-
Andrew Tridgell
1f89d89954 the endpoint mapper now works in bigendian mode -