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

548 Commits

Author SHA1 Message Date
Jelmer Vernooij
2ffa2fe165 Remove testing utility for removed SAM system
(This used to be commit dee59bec84)
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 f1cf5b8aa9)
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 e9f584143d)
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 b34a3104c6)
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 0b6a291eb4)
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 61ec710518)
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 857e76ef6b)
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 f3b917402a)
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 866ef2edab)
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 fffc6cfb6b)
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 eb6fc29caf)
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 8cd6e90eb8)
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 2ed24d29ba)
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 e7c53ad185)
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 9aab321fb6)
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 cb5f1e581f)
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 e0043693a6)
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 2372321eed)
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 6319166420)
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 7cbc4ad871)
2004-01-15 23:19:07 +00:00
Stefan Metzmacher
e0469838c8 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
(This used to be commit ebecb6d05b)
2004-01-13 22:24:56 +00:00
Jelmer Vernooij
17b5c26819 Add script for finding unused function checks in configure.in
(This used to be commit 7c6a261871)
2004-01-13 22:22:43 +00:00
Jelmer Vernooij
d753c5a669 Fix --with-fhs for swatdir
(This used to be commit 5c8abbcbe5)
2004-01-11 13:40:06 +00:00
Andrew Tridgell
b827102934 added dom_sid_string() function
(This used to be commit 399f95536b)
2004-01-11 05:16:07 +00:00
Stefan Metzmacher
ae2164093e Update Copyright to 1992-2004
Jerry should I change this in 3_0 and HEAD as well?

metze
(This used to be commit 664f1e30f8)
2004-01-09 06:59:48 +00:00
Andrew Tridgell
8fb8c40d3b fixed the rpc epmapper server. This fixes rpc over tcp.
(This used to be commit 6ac547fa5f)
2004-01-09 02:43:23 +00:00
Stefan Metzmacher
7e6cf43756 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 :-)
(This used to be commit 917e45dafd)
2004-01-08 22:55:27 +00:00
Stefan Metzmacher
8364fd2853 remove a useless assignment
metze
(This used to be commit 189ef6e73d)
2004-01-08 06:48:54 +00:00
Jelmer Vernooij
0172920e16 Add note about new configure structure.
(This used to be commit 43130f370b)
2004-01-02 13:47:13 +00:00
Tim Potter
7db3bbc048 Autodetect service_type in cli_tree_full_connection() if the caller
passes in NULL.
(This used to be commit b63ebaa770)
2004-01-02 01:04:59 +00:00
Andrew Tridgell
2558f81a8d the endpoint mapper now works in bigendian mode
(This used to be commit 1f89d89954)
2003-12-31 01:32:33 +00:00
Andrew Tridgell
f4307200ac "subsystems" should be static
(This used to be commit 64cf9b3fd3)
2003-12-30 22:55:12 +00:00
Andrew Tridgell
bab78d286b remove some unused files
(This used to be commit a6f43de7f8)
2003-12-22 02:52:33 +00:00
Andrew Tridgell
932bcc4a3c minor updates to make the srvsvc test compile
(This used to be commit 564e505e92)
2003-12-21 07:57:49 +00:00
Andrew Tridgell
8068c5a9f0 wkssvc test updates from metze
(This used to be commit 9d3e06f0e3)
2003-12-21 07:53:57 +00:00
Andrew Tridgell
25fe9bc2a1 latest srvsvc and wkssvc IDL from metze
(This used to be commit 59557a557d)
2003-12-20 21:50:51 +00:00
Andrew Tridgell
8a960cfdc5 tim, I'm guessing you really didn't want to add this :)
(This used to be commit a65edfbcd7)
2003-12-20 21:09:04 +00:00
Tim Potter
8b952ae237 Remove Makefile targets for old python extensions.
(This used to be commit 9355538a92)
2003-12-20 09:23:48 +00:00
Andrew Tridgell
77fb98ac7c 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?
(This used to be commit 9cd0a0b8b9)
2003-12-19 23:44:26 +00:00
Andrew Tridgell
a8400ce610 fixed removal of moe than one ncacn_* option from option list
(This used to be commit 09a9b25c8d)
2003-12-19 04:26:26 +00:00
Andrew Tridgell
98e66d0449 fixed the AddAliasMem test code
(This used to be commit abe7ffcece)
2003-12-19 04:13:39 +00:00
Andrew Tridgell
db22c0c5f9 added a bunch of alias functions in samr.idl based on work by Kai.
(This used to be commit f740b02ac3)
2003-12-19 03:59:27 +00:00
Andrew Tridgell
f46072d223 added code to the IDL validator to check for common errors with
pointers are arrays
(This used to be commit e67cbfff6c)
2003-12-19 00:40:40 +00:00
Andrew Tridgell
8369293090 fixed a segv in RPC-* when debug level > 2
thanks to Kai for spotting this!
(This used to be commit 0fc42c33d3)
2003-12-17 21:37:34 +00:00
Tim Potter
a2ec4b990d Fix typo.
(This used to be commit 3f1b781c56)
2003-12-17 03:38:06 +00:00
Andrew Tridgell
aa4aa0f99f fixed a bug in the acct_flags checking on CreateUser2 in the RPC-SAMR test
(This used to be commit 2c9a999c54)
2003-12-17 02:35:04 +00:00
Tim Potter
f9b522cfad Delete old python bindings.
(This used to be commit d7b680899f)
2003-12-17 02:18:36 +00:00
Andrew Tridgell
7efa19cd22 added a smb.conf flag "rpc big endian" that tells our rpc server to
send packets in bigendian format.
(This used to be commit 44df662960)
2003-12-17 02:06:44 +00:00
Andrew Tridgell
938eef5beb removed some unused functions
(This used to be commit 09d17d705a)
2003-12-16 12:59:20 +00:00
Andrew Tridgell
60deb10a2c fixed formatting of uuids in debug output
(This used to be commit 7895796ef8)
2003-12-16 12:11:00 +00:00