1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-05 21:57:51 +03:00

538 Commits

Author SHA1 Message Date
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 -
Andrew Tridgell
64cf9b3fd3 "subsystems" should be static -
Andrew Tridgell
a6f43de7f8 remove some unused files -
Andrew Tridgell
564e505e92 minor updates to make the srvsvc test compile -
Andrew Tridgell
9d3e06f0e3 wkssvc test updates from metze -
Andrew Tridgell
59557a557d latest srvsvc and wkssvc IDL from metze -
Andrew Tridgell
a65edfbcd7 tim, I'm guessing you really didn't want to add this :) -
Tim Potter
9355538a92 Remove Makefile targets for old python extensions. -
Andrew Tridgell
9cd0a0b8b9 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
09a9b25c8d fixed removal of moe than one ncacn_* option from option list -
Andrew Tridgell
abe7ffcece fixed the AddAliasMem test code -
Andrew Tridgell
f740b02ac3 added a bunch of alias functions in samr.idl based on work by Kai. -
Andrew Tridgell
e67cbfff6c added code to the IDL validator to check for common errors with
pointers are arrays
-
Andrew Tridgell
0fc42c33d3 fixed a segv in RPC-* when debug level > 2
thanks to Kai for spotting this!
-
Tim Potter
3f1b781c56 Fix typo. -
Andrew Tridgell
2c9a999c54 fixed a bug in the acct_flags checking on CreateUser2 in the RPC-SAMR test -
Tim Potter
d7b680899f Delete old python bindings. -
Andrew Tridgell
44df662960 added a smb.conf flag "rpc big endian" that tells our rpc server to
send packets in bigendian format.
-
Andrew Tridgell
09d17d705a removed some unused functions -
Andrew Tridgell
7895796ef8 fixed formatting of uuids in debug output -
Andrew Tridgell
691f9c1c44 added a define for the DCERPC little-endian data representation flag -
Andrew Tridgell
1fa68c18fa fixed the RPC-MGMT and RPC-SCANNER tests to work with the new
dcerpc_binding_string code
-
Andrew Tridgell
74f36d32bb no longer require the pipe name or tcp port number to be the first
option in the ncacn_* syntax
-
Andrew Tridgell
1056618b6a use bigendian mode to fix the idl for samr_LogonHours -
Andrew Tridgell
31d8e0a7cf much better docs on the smbtorture ncacn syntax, including how to
choose bigendian smbtorture on the command line
-
Andrew Tridgell
9b1c76a8e9 it turns out that a wire policy handle isn't a blob either, its a
uint32 followed by a GUID. I needed to fix this to support running in
mixed-mode rpc (where smbtorture is bigendian and w2k3 is
little-endian). Otherwise when you send back a policy handle the
server doesn't recognise it.
-
Andrew Tridgell
a0a51af6b7 added support for big-endian ucs2 strings (as used by big-endian
msrpc).

this was easier than I expected!
-
Andrew Tridgell
bb1af644a5 a fairly large commit!
This adds support for bigendian rpc in the client. I have installed
SUN pcnetlink locally and am using it to test the samba4 rpc
code. This allows us to easily find places where we have stuffed up
the types (such as 2 uint16 versus a uint32), as testing both
big-endian and little-endian easily shows which is correct. I have now
used this to fix several bugs like that in the samba4 IDL.

In order to make this work I also had to redefine a GUID as a true
structure, not a blob. From the pcnetlink wire it is clear that it is
indeed defined as a structure (the byte order changes). This required
changing lots of Samba code to use a GUID as a structure.

I also had to fix the if_version code in dcerpc syntax IDs, as it
turns out they are a single uint32 not two uint16s.

The big-endian support is a bit ugly at the moment, and breaks the
layering in some places. More work is needed, especially on the server
side.
-
Andrew Tridgell
d18a08a870 the out substructure is not empty if there is a return from the
function
-
Andrew Tridgell
f50d4b602a enable rep_inet_ntoa() for non-pthread builds -
Andrew Tridgell
42dd8d888a more mutex portability. -
Andrew Tridgell
b6fdc98402 some compilers can't handle structures with no elements. Generate
dummy elements if need be.
-
Andrew Tridgell
f4abd20b84 more portability fixes. We now almost compile on solaris -
Andrew Tridgell
ac8a23af8c use smb_rwlock_t instead of rwlock_t to avoid conflicts with system
types on some platforms (eg. solaris)
-
Andrew Tridgell
9175293535 don't rely on the ability of perl 5.6.x to remove elements from arrays
using delete(). This makes pidl portable back to perl 5.0.
-
Andrew Tridgell
d0bef33ffa make sure we have a value for DEFAULT_PRINTING on all platforms -