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

1705 Commits

Author SHA1 Message Date
Andrew Bartlett
d987a32c8c r2282: Remove one more magic constant from the source, replace with sizeof().
Andrew Bartlett
(This used to be commit a089bcf503)
2007-10-10 12:58:39 -05:00
Andrew Bartlett
30ea54c4ba r2281: Add a few comments.
(This used to be commit 7be16e5036)
2007-10-10 12:58:38 -05:00
Andrew Tridgell
fa419c9255 r2280: fixed the session key choice for ncacn_np and ncacn_ip_tcp in the rpc server
(This used to be commit 3b4ed24f4b)
2007-10-10 12:58:38 -05:00
Tim Potter
56d7b0dc8a r2278: Add some more helper functions.
(This used to be commit 5a64449599)
2007-10-10 12:58:38 -05:00
Tim Potter
b79d97414d r2277: Generate stubs for input and output typemaps.
(This used to be commit 69710bbcb8)
2007-10-10 12:58:37 -05:00
Tim Potter
91222c6029 r2276: Remove garbage collection debugs.
(This used to be commit b7ebafbbe0)
2007-10-10 12:58:37 -05:00
Andrew Tridgell
1512030832 r2275: don't crash on a rpc BIND_NAK response ...
(This used to be commit 22a6e5d50d)
2007-10-10 12:58:37 -05:00
Andrew Tridgell
68fbed64d5 r2274: fixed some popt option clashes between smbtorture and the standard options
(This used to be commit b7db909e8e)
2007-10-10 12:58:37 -05:00
Andrew Tridgell
2340725753 r2273: disable the async samr tests unless -X option is used, as windows
fails this and it kills the pipe, so we can't run the rest of the test
(This used to be commit bdb49f01b7)
2007-10-10 12:58:36 -05:00
Andrew Tridgell
b49dc085af r2272: fixed another couple of errors in the popt option arrays
(This used to be commit 89acbf4f02)
2007-10-10 12:58:36 -05:00
Andrew Tridgell
1c3bfc270a r2271: fixed the popt argument array for smbtorture, getting rid of some
clashes

metze, please note that the 'val' field in popt is not the default
value, its the integer to switch on in the argument loop.
(This used to be commit 0f3b01beba)
2007-10-10 12:58:36 -05:00
Andrew Tridgell
696629b2ec r2267: we no longer need to force the domain join to happen on NCACN_NP - it
now works on NCACN_IP_TCP as well.
(This used to be commit 9cc33d9364)
2007-10-10 12:58:36 -05:00
Andrew Tridgell
22275a4c2f r2266: yay! LSA session keys on TCP now work!
(This used to be commit f6ea24296a)
2007-10-10 12:58:35 -05:00
Jelmer Vernooij
93454ff3d8 r2257: Tab completion support in regshell (complete command names and key names
in the current key)
(This used to be commit 83f9f8eaa4)
2007-10-10 12:58:35 -05:00
Tim Potter
ec952cde05 r2256: Include autogenerated interfaces for lsa and samr pipes. Typemaps are currently
not working though.
(This used to be commit 55bd2dc02d)
2007-10-10 12:58:35 -05:00
Tim Potter
ff19c6ac0d r2255: Don't do experimental swig stuff by default.
(This used to be commit db191572ff)
2007-10-10 12:58:35 -05:00
Jelmer Vernooij
9c69fe6522 r2254: Fix a couple of compiler warnings...
(This used to be commit 8056f4a9a7)
2007-10-10 12:58:35 -05:00
Tim Potter
3f7bf05f75 r2253: Add test program, as small example of what's going on.
(This used to be commit fd31ae38df)
2007-10-10 12:58:35 -05:00
Andrew Tridgell
0e6799177c r2252: don't register the same name twice
(This used to be commit fdb675bbad)
2007-10-10 12:58:35 -05:00
Andrew Tridgell
2cbbbe3535 r2251: forgot to add vfs_posix.h in my last commit
note that this is just a skeleton so far. More to come soon.
(This used to be commit efc8850b9a)
2007-10-10 12:58:35 -05:00
Andrew Tridgell
24f972a071 r2250: removed unnecessary mem_ctx
(This used to be commit c455a3a61d)
2007-10-10 12:58:34 -05:00
Andrew Tridgell
893c62d383 r2249: got rid of some more mem_ctx elements in structures
(This used to be commit 21ef338cbb)
2007-10-10 12:58:34 -05:00
Tim Potter
8293df91bc r2247: talloc_destroy -> talloc_free
(This used to be commit 6c1a72c5d6)
2007-10-10 12:58:34 -05:00
Tim Potter
915f2e539d r2243: Include definition for PRINTF_ATTRIBUTE in Python tdb wrapper.
(This used to be commit 301bb069c3)
2007-10-10 12:58:34 -05:00
Andrew Tridgell
3ddde3b74c r2242: some older versions of gcc don't properly handle the
PRINTF_ATTRIBUTE() format checking magic, so only enable it for gcc
versions >= 3.0
(This used to be commit 9c7100e3c7)
2007-10-10 12:58:34 -05:00
Andrew Tridgell
8fa455d815 r2238: the tdb_debug() function was totally bogus - remove it (you can't
convert a ... varargs function to a va_list by just a cast!!)

also mark the tdb log function with PRINTF_ATTRIBUTE() and fixed some
bad format errors in tdb.c that jim found.
(This used to be commit c26c92eb8f)
2007-10-10 12:58:34 -05:00
Tim Potter
68aad436e6 r2236: Zero request structure to let the REF_ALLOC flag work its magic.
Add argout typemap which throws an exception if NTSTATUS != OK and
creates a dictionary of return values.

samr_Connect2 function now works!
(This used to be commit fdfabbd4a5)
2007-10-10 12:58:33 -05:00
Tim Potter
0a3a76fe96 r2235: When creating exception data, use Py_BuildValue instead of doing it
all by hand.

Use $symname to name TALLOC_CTX's created in wrapper function.  Also,
make sure to free context afterwards.

Set the DCERPC_NDR_REF_ALLOC flag in the dcerpc_pipe struct to save
use lots of initialisation.
(This used to be commit 5fead63618)
2007-10-10 12:58:33 -05:00
Tim Potter
aeaec31533 r2234: Tridge, this is a patch to allow people to set the REF_ALLOC flag on
a dcerpc_pipe structure as we discussed this morning.
(This used to be commit 79969dc8da)
2007-10-10 12:58:33 -05:00
Tim Potter
65b5a2297c r2230: Wrapper for dcerpc_samr_Connect2(). All this glue code should be
automatically generated but at the moment it's hand coded.
(This used to be commit e1a368050d)
2007-10-10 12:58:33 -05:00
Tim Potter
86bf5cefa9 r2229: Have dcerpc_pipe_connect() throw an exception if non-zero NTSTATUS is
returned from the C function.  This way we can return the struct dcerpc_pipe
object instead of a tuple of (NTSTATUS, dcerpc_pipe) which is a bad
interface.
(This used to be commit a3a85bd419)
2007-10-10 12:58:33 -05:00
Tim Potter
779b89cfc8 r2228: Finally commit bits of old workareas together to get dcerpc python
bindings happening.  This commit lets python call dcerpc_pipe_connect()
and open the samr pipe.
(This used to be commit f5852bf3e2)
2007-10-10 12:58:33 -05:00
Tim Potter
5230295b6b r2227: Get rid of annoying compiler warning.
(This used to be commit 64f961f039)
2007-10-10 12:58:33 -05:00
Tim Potter
b575ce6b4b r2226: A bunch of fixes to get python tdb module building again. I'm not
sure how this can be integrated into the build system properly though.
Editing makefile.pl is the wrong way to do this.
(This used to be commit e6a42f7880)
2007-10-10 12:58:32 -05:00
Tim Potter
e0459c7f72 r2223: Include autogenerated header file for idl file we are processing with
--eparser.
(This used to be commit 68b10c4aee)
2007-10-10 12:58:32 -05:00
Tim Potter
eb84275718 r2222: Generate correct function prototypes for unions marked as public.
(This used to be commit 04de3edbab)
2007-10-10 12:58:32 -05:00
Tim Potter
7c583b2adb r2221: Experiment with extra properties for telling the ethereal parser what
to do.  There is a patch to the grammar and idl files for this but I
won't commit that just yet.
(This used to be commit 4e155b966c)
2007-10-10 12:58:32 -05:00
Andrew Bartlett
26abe13ff7 r2220: Updates to the NETLOGON torture test. This copes with 'long'
passwords - where the LM hash is invalid.

Also, we now drive all the logon levels and validation levels from the
outer loop, so we can check the expected return values (rather than
overwriting them).

Andrew Bartlett
(This used to be commit f7f7c3de23)
2007-10-10 12:58:32 -05:00
Jeremy Allison
f0ae80e18c r2217: Ad-hoc tests to allow me to work out the correct error code
for the bad path algorithm.
Jeremy.
(This used to be commit d2d32d8f2b)
2007-10-10 12:58:32 -05:00
Jeremy Allison
cecc2b38f1 r2212: Optimisation. Passes masktest against W2K3.
Jeremy.
(This used to be commit fb7a529c4c)
2007-10-10 12:58:32 -05:00
Andrew Tridgell
13f44bbacb r2209: patch from volker to add EnumPorts spoolss IDL and test code
the ndr->offset=0; stuff is ugly. We need a better way to handle this.
(This used to be commit e909bfa708)
2007-10-10 12:58:31 -05:00
Volker Lendecke
0b01bdf9a3 r2208: little attempt to (almost) fix spoolss relative
(This used to be commit ef5414676e)
2007-10-10 12:58:31 -05:00
Andrew Tridgell
5f6c0b6c8c r2207: this bug caued valgrind to consume infinite memory till the kernel killed it :(
(This used to be commit 60a88595e2)
2007-10-10 12:58:31 -05:00
Andrew Tridgell
54dd7bccd2 r2206: another (untested) attempt to make RELATIVE_CURRENT work for volker,
plus removed unused ndr_pull_relative() function

once volker commits a test for this I'll be able to ensure it really works as expected
(This used to be commit 8ffe136ad2)
2007-10-10 12:58:31 -05:00
Andrew Tridgell
d0aee368a1 r2205: fixed an incorrect cast that broke relative strings in spoolss
(This used to be commit d2d3433de1)
2007-10-10 12:58:31 -05:00
Andrew Tridgell
6a2422932b r2204: added [flag(RELATIVE_CURRENT)] to change [relative] pointer behaviour
for this struct and all sub-structures to be like spoolss relative
pointers (where offset is relative to current position).

volker will test this for me :)
(This used to be commit bd45329a3f)
2007-10-10 12:58:31 -05:00
Andrew Tridgell
905dd977fa r2203: delete the key after testing, so as not to clutter the server with random keys
(This used to be commit d98ed1fbe5)
2007-10-10 12:58:31 -05:00
Andrew Tridgell
73da5b1e87 r2202: don't close the smb pipe after the puzzle test
(This used to be commit 591ee2308c)
2007-10-10 12:58:31 -05:00
Andrew Tridgell
b702a07f0b r2201: removed an exit I accidentially left in
(This used to be commit e1d13631f0)
2007-10-10 12:58:30 -05:00
Andrew Tridgell
a67ec52fde r2200: solved another piece of the lsakey puzzle - the session key for lsa
encryption on ncacn_ip_tcp is a fixed buffer! I don't yet know what
the buffer is, but this code proves its the same buffer for different
w2k3 servers and different user passwords, plus it is independent of
the negotiated NTLMSSP session key.
(This used to be commit 05fd38f3cf)
2007-10-10 12:58:30 -05:00