gd/samba-autobuild/.git
16 years agor2301: add a server side warning when we receive more RPC data than we
Andrew Tridgell [Mon, 13 Sep 2004 01:23:09 +0000 (01:23 +0000)]
r2301: add a server side warning when we receive more RPC data than we
expect. It isn't an error as w2k3 does this on its first packet when
NTLM2 signing is used.
(This used to be commit daaee86d1441afec9915e5f2ffc10b200a1ff564)

16 years agor2300: Start writing a Python torture test suite based on the smbtorture rpc tests.
Tim Potter [Sun, 12 Sep 2004 11:47:24 +0000 (11:47 +0000)]
r2300: Start writing a Python torture test suite based on the smbtorture rpc tests.
(This used to be commit 73e087f11e401ef8da7c53148444b2745a94dbaf)

16 years agor2299: Map a (C) NULL pointer to (Python) None and vice versa.
Tim Potter [Sun, 12 Sep 2004 11:45:37 +0000 (11:45 +0000)]
r2299: Map a (C) NULL pointer to (Python) None and vice versa.
(This used to be commit 05cff58070b7070157aea47c5da8512145c2774a)

16 years agor2298: Convert to and from string parameters.
Tim Potter [Sun, 12 Sep 2004 10:56:11 +0000 (10:56 +0000)]
r2298: Convert to and from string parameters.

Correct function name used when generating function to convert in
typemap so it is consistent with the others.
(This used to be commit ec23bae00fedbd1651800a8f4559dee3bd6c7025)

16 years agor2297: Add string conversion functions.
Tim Potter [Sun, 12 Sep 2004 10:50:23 +0000 (10:50 +0000)]
r2297: Add string conversion functions.
(This used to be commit cbfb177394aaf2a382b481ffb3152ad3fe81de5a)

16 years agor2296: Correct setting of access_mask in test program.
Tim Potter [Sun, 12 Sep 2004 10:49:41 +0000 (10:49 +0000)]
r2296: Correct setting of access_mask in test program.
(This used to be commit e4a5840ff84553c67c87e002e9e074095f4d18c5)

16 years agor2295: Convert simple scalar types and policy handles between dcerpc function
Tim Potter [Sun, 12 Sep 2004 10:13:24 +0000 (10:13 +0000)]
r2295: Convert simple scalar types and policy handles between dcerpc function
call request and response structures.
(This used to be commit d31d23b944b7e4ef300d75dad5038727e9133af1)

16 years agor2294: this fixes the NTLM2 sign+seal combination. I have now tested:
Andrew Tridgell [Sun, 12 Sep 2004 06:38:00 +0000 (06:38 +0000)]
r2294: this fixes the NTLM2 sign+seal combination. I have now tested:

 NTLM sign
 NTLM sign+seal
 NTLM2 sign
 NTLM2 sign+seal

and all of the above both with and without key exchange

the NTLM2 seal case is ugly and involves an extra data copy, which
some API changes in gensec or the ndr layer might avoid in future.
(This used to be commit fce7a4218b3136d880dd1a123e8525e3091bbed8)

16 years agor2293: fixed older NTLM sign/seal in the server
Andrew Tridgell [Sun, 12 Sep 2004 06:04:03 +0000 (06:04 +0000)]
r2293: fixed older NTLM sign/seal in the server
(This used to be commit d8825b69aca5f4d0edf70945d64b4d1780e121c4)

16 years agor2290: Fix 'lsakey' for the server-side, it is static for
Andrew Bartlett [Sun, 12 Sep 2004 03:18:24 +0000 (03:18 +0000)]
r2290: Fix 'lsakey' for the server-side, it is static for
'authenticated' connections.

Fix kerberos session key issues - we need to call the
routine for extracting the session key, not just read the cache.

Andrew Bartlett
(This used to be commit b80d849b6b586869fc7d3d4153db1a316f2867a9)

16 years agor2289: Autogenerate some more attractive looking stubs for converting
Tim Potter [Sun, 12 Sep 2004 02:37:15 +0000 (02:37 +0000)]
r2289: Autogenerate some more attractive looking stubs for converting
function argument structures and idl structures to and from Python
dictionaries.
(This used to be commit e4729949c61a8df23b5132c6136ae8c3777c348a)

16 years agor2288: Remove the claim/yield connection code - this will need to be redone
Andrew Bartlett [Sun, 12 Sep 2004 02:25:58 +0000 (02:25 +0000)]
r2288: Remove the claim/yield connection code - this will need to be redone
in a more samba4 style at some point (along with the session code).

Andrew Bartlett
(This used to be commit b8fe29dc7ac6fc60e5171a29788ae56968c1098b)

16 years agor2287: Add static.
Andrew Bartlett [Sat, 11 Sep 2004 23:13:35 +0000 (23:13 +0000)]
r2287: Add static.

Andrew Bartlett
(This used to be commit 49171e420337136d3e66300f99fa1885051e5b61)

16 years agor2286: Fixes towards krb5 logins into Samba's CIFS server.
Andrew Bartlett [Sat, 11 Sep 2004 23:09:26 +0000 (23:09 +0000)]
r2286: Fixes towards krb5 logins into Samba's CIFS server.

These fixes aim particularly at allowing PAC-less logins, as I don't
yet generate a PAC in the lorikeet-heimdal KDC.

This is for the benifit of a Kerbeors-enabled domain join, which seems
to be progressing quite well!

Andrew Bartlett
(This used to be commit f5a381094dd5bcbd795a134bc4b8b89901b5e3eb)

16 years agor2285: Remove more static data, fix spelling in a comment.
Andrew Bartlett [Sat, 11 Sep 2004 23:05:08 +0000 (23:05 +0000)]
r2285: Remove more static data, fix spelling in a comment.
(This used to be commit 2c701f59a7f232fed624f7cec62dd494dd32c2d9)

16 years agor2284: Thanks to some great detective work by tridge, NTLM2 signing now works.
Andrew Bartlett [Sat, 11 Sep 2004 15:11:36 +0000 (15:11 +0000)]
r2284: Thanks to some great detective work by tridge, NTLM2 signing now works.

This means that 'require NTLMv2 session security' now works for RPC
pipe signing.  We don't yet have sealing, but it can't be much further.

This is almost all tridge's code, munged into a form that can work
with the GENSEC API.

This commit also includes more lsakey fixes - that key is used for all
DCE-RPC level authenticated connections, even over CIFS/ncacn_np.

No doubt I missed something, but I'm going to get some sleep :-)

Andrew Bartlett
(This used to be commit a1fe175eec884280fb7e9ca8f528134cf4600beb)

16 years agor2283: Change from tridge (in his ntlm2 patch).
Andrew Bartlett [Sat, 11 Sep 2004 15:05:49 +0000 (15:05 +0000)]
r2283: Change from tridge (in his ntlm2 patch).

I think the idea here is to bail out correctly when we get signing
broken on TCP, rather than keeping on hammering the socket.

Andrew Bartlett
(This used to be commit 553b529a0991ccf2f1be14cc6a27695223f02e65)

16 years agor2282: Remove one more magic constant from the source, replace with sizeof().
Andrew Bartlett [Sat, 11 Sep 2004 15:04:40 +0000 (15:04 +0000)]
r2282: Remove one more magic constant from the source, replace with sizeof().

Andrew Bartlett
(This used to be commit a089bcf503bfc91eead08d10539367886b7927cd)

16 years agor2281: Add a few comments.
Andrew Bartlett [Sat, 11 Sep 2004 12:48:27 +0000 (12:48 +0000)]
r2281: Add a few comments.
(This used to be commit 7be16e503616d9b339390a253357114c510729d0)

16 years agor2280: fixed the session key choice for ncacn_np and ncacn_ip_tcp in the rpc server
Andrew Tridgell [Sat, 11 Sep 2004 12:32:05 +0000 (12:32 +0000)]
r2280: fixed the session key choice for ncacn_np and ncacn_ip_tcp in the rpc server
(This used to be commit 3b4ed24f4ba467a77bef8d6c25695fdbdb42b2ac)

16 years agor2278: Add some more helper functions.
Tim Potter [Fri, 10 Sep 2004 12:20:25 +0000 (12:20 +0000)]
r2278: Add some more helper functions.
(This used to be commit 5a64449599beb7b46484f1c3aef10f7e7b878319)

16 years agor2277: Generate stubs for input and output typemaps.
Tim Potter [Fri, 10 Sep 2004 12:18:56 +0000 (12:18 +0000)]
r2277: Generate stubs for input and output typemaps.
(This used to be commit 69710bbcb8123e5f9cb882723350506e77307419)

16 years agor2276: Remove garbage collection debugs.
Tim Potter [Fri, 10 Sep 2004 12:16:42 +0000 (12:16 +0000)]
r2276: Remove garbage collection debugs.
(This used to be commit b7ebafbbe0ada17748ad4bb36da4c0d63a2b10f5)

16 years agor2275: don't crash on a rpc BIND_NAK response ...
Andrew Tridgell [Fri, 10 Sep 2004 07:14:02 +0000 (07:14 +0000)]
r2275: don't crash on a rpc BIND_NAK response ...
(This used to be commit 22a6e5d50d2d40c2dfc5e36bce1132b92723dd81)

16 years agor2274: fixed some popt option clashes between smbtorture and the standard options
Andrew Tridgell [Fri, 10 Sep 2004 03:39:11 +0000 (03:39 +0000)]
r2274: fixed some popt option clashes between smbtorture and the standard options
(This used to be commit b7db909e8e8194366ff93f68adbd68a8f1dcbe9a)

16 years agor2273: disable the async samr tests unless -X option is used, as windows
Andrew Tridgell [Fri, 10 Sep 2004 03:38:16 +0000 (03:38 +0000)]
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 bdb49f01b75aa5b3a458ee4629e867bee1d03358)

16 years agor2272: fixed another couple of errors in the popt option arrays
Andrew Tridgell [Fri, 10 Sep 2004 03:37:29 +0000 (03:37 +0000)]
r2272: fixed another couple of errors in the popt option arrays
(This used to be commit 89acbf4f02ae03f0546e1633c030765a563ce958)

16 years agor2271: fixed the popt argument array for smbtorture, getting rid of some
Andrew Tridgell [Fri, 10 Sep 2004 02:16:41 +0000 (02:16 +0000)]
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 0f3b01bebadc9f949a663dc40280945536bc86fd)

16 years agor2267: we no longer need to force the domain join to happen on NCACN_NP - it
Andrew Tridgell [Thu, 9 Sep 2004 14:34:58 +0000 (14:34 +0000)]
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 9cc33d936407255b5c5fb9bde37d918cf268c784)

16 years agor2266: yay! LSA session keys on TCP now work!
Andrew Tridgell [Thu, 9 Sep 2004 14:31:27 +0000 (14:31 +0000)]
r2266: yay! LSA session keys on TCP now work!
(This used to be commit f6ea24296acaaadcd2d59740bc88ef1a93fb1c28)

16 years agor2257: Tab completion support in regshell (complete command names and key names
Jelmer Vernooij [Wed, 8 Sep 2004 13:44:45 +0000 (13:44 +0000)]
r2257: Tab completion support in regshell (complete command names and key names
in the current key)
(This used to be commit 83f9f8eaa4825bb49e2b160a1a810080ecae4d39)

16 years agor2256: Include autogenerated interfaces for lsa and samr pipes. Typemaps are currently
Tim Potter [Wed, 8 Sep 2004 12:56:57 +0000 (12:56 +0000)]
r2256: Include autogenerated interfaces for lsa and samr pipes.  Typemaps are currently
not working though.
(This used to be commit 55bd2dc02de13ee3da1cde20694f452df0899a9f)

16 years agor2255: Don't do experimental swig stuff by default.
Tim Potter [Wed, 8 Sep 2004 12:51:46 +0000 (12:51 +0000)]
r2255: Don't do experimental swig stuff by default.
(This used to be commit db191572ff9351ae84dc0c3d6302fa60b61cd179)

16 years agor2254: Fix a couple of compiler warnings...
Jelmer Vernooij [Wed, 8 Sep 2004 12:41:12 +0000 (12:41 +0000)]
r2254: Fix a couple of compiler warnings...
(This used to be commit 8056f4a9a7f5065eeb3a3bec81977c5e4163bf8e)

16 years agor2253: Add test program, as small example of what's going on.
Tim Potter [Wed, 8 Sep 2004 11:54:01 +0000 (11:54 +0000)]
r2253: Add test program, as small example of what's going on.
(This used to be commit fd31ae38dfe2d005b3e01ac059c2e15fa389aad4)

16 years agor2252: don't register the same name twice
Andrew Tridgell [Wed, 8 Sep 2004 11:01:18 +0000 (11:01 +0000)]
r2252: don't register the same name twice
(This used to be commit fdb675bbad1322ddd94c646f67803b9678468a64)

16 years agor2251: forgot to add vfs_posix.h in my last commit
Andrew Tridgell [Wed, 8 Sep 2004 07:59:52 +0000 (07:59 +0000)]
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 efc8850b9aa9348f5f7c4b342aa76dab1635e7d4)

16 years agor2250: removed unnecessary mem_ctx
Andrew Tridgell [Wed, 8 Sep 2004 07:48:55 +0000 (07:48 +0000)]
r2250: removed unnecessary mem_ctx
(This used to be commit c455a3a61d587f5126236d8c11ba84e19d4f038a)

16 years agor2249: got rid of some more mem_ctx elements in structures
Andrew Tridgell [Wed, 8 Sep 2004 05:39:06 +0000 (05:39 +0000)]
r2249: got rid of some more mem_ctx elements in structures
(This used to be commit 21ef338cbbe96acc8594ffc550ef60c6a40fb951)

16 years agor2247: talloc_destroy -> talloc_free
Tim Potter [Wed, 8 Sep 2004 00:00:56 +0000 (00:00 +0000)]
r2247: talloc_destroy -> talloc_free
(This used to be commit 6c1a72c5d667245b1eec94f58e68acd22dd720ce)

16 years agor2243: Include definition for PRINTF_ATTRIBUTE in Python tdb wrapper.
Tim Potter [Tue, 7 Sep 2004 23:12:29 +0000 (23:12 +0000)]
r2243: Include definition for PRINTF_ATTRIBUTE in Python tdb wrapper.
(This used to be commit 301bb069c31ee7ce09bdd6cd2dd4b7fa0441e1a1)

16 years agor2242: some older versions of gcc don't properly handle the
Andrew Tridgell [Tue, 7 Sep 2004 22:02:44 +0000 (22:02 +0000)]
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 9c7100e3c770fca163d3788fc6b735457f74d7e9)

16 years agor2238: the tdb_debug() function was totally bogus - remove it (you can't
Andrew Tridgell [Tue, 7 Sep 2004 13:44:49 +0000 (13:44 +0000)]
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 c26c92eb8f538748fcbb2ae5a0a8a02bffbbbf86)

16 years agor2236: Zero request structure to let the REF_ALLOC flag work its magic.
Tim Potter [Mon, 6 Sep 2004 11:09:27 +0000 (11:09 +0000)]
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 fdfabbd4a597b0d9b44832fdbfc200f857728c2b)

16 years agor2235: When creating exception data, use Py_BuildValue instead of doing it
Tim Potter [Mon, 6 Sep 2004 11:01:10 +0000 (11:01 +0000)]
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 5fead63618b5ee76cadc4719d933ea9cee7538b5)

16 years agor2234: Tridge, this is a patch to allow people to set the REF_ALLOC flag on
Tim Potter [Mon, 6 Sep 2004 10:29:18 +0000 (10:29 +0000)]
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 79969dc8daf5fdaacd26135a200ecec0b4d7663c)

16 years agor2230: Wrapper for dcerpc_samr_Connect2(). All this glue code should be
Tim Potter [Sun, 5 Sep 2004 04:05:45 +0000 (04:05 +0000)]
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 e1a368050d3abb6a6ca6529315dc4228e8590c7f)

16 years agor2229: Have dcerpc_pipe_connect() throw an exception if non-zero NTSTATUS is
Tim Potter [Sun, 5 Sep 2004 02:39:47 +0000 (02:39 +0000)]
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 a3a85bd419e38f0dce138e67174517e23a361010)

16 years agor2228: Finally commit bits of old workareas together to get dcerpc python
Tim Potter [Sun, 5 Sep 2004 02:06:11 +0000 (02:06 +0000)]
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 f5852bf3e2064f03aa9b63af4aa1b4f9e39bdb24)

16 years agor2227: Get rid of annoying compiler warning.
Tim Potter [Sat, 4 Sep 2004 23:04:31 +0000 (23:04 +0000)]
r2227: Get rid of annoying compiler warning.
(This used to be commit 64f961f039545c9948eb7d7652b7494be2443174)

16 years agor2226: A bunch of fixes to get python tdb module building again. I'm not
Tim Potter [Sat, 4 Sep 2004 22:55:33 +0000 (22:55 +0000)]
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 e6a42f7880993271f2610584182f7d47538b6747)

16 years agor2223: Include autogenerated header file for idl file we are processing with
Tim Potter [Sat, 4 Sep 2004 01:53:20 +0000 (01:53 +0000)]
r2223: Include autogenerated header file for idl file we are processing with
--eparser.
(This used to be commit 68b10c4aeebc4aa1225aab3c8a9fc0a4d28d6455)

16 years agor2222: Generate correct function prototypes for unions marked as public.
Tim Potter [Sat, 4 Sep 2004 01:50:11 +0000 (01:50 +0000)]
r2222: Generate correct function prototypes for unions marked as public.
(This used to be commit 04de3edbab106eec040c442eedb5bb3cfcfec778)

16 years agor2221: Experiment with extra properties for telling the ethereal parser what
Tim Potter [Sat, 4 Sep 2004 01:31:02 +0000 (01:31 +0000)]
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 4e155b966c6027daa34166c7daf30cbff96ff679)

16 years agor2220: Updates to the NETLOGON torture test. This copes with 'long'
Andrew Bartlett [Sat, 4 Sep 2004 00:02:43 +0000 (00:02 +0000)]
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 f7f7c3de23ffb042f7cf7b4fa42b6b18c205719d)

16 years agor2217: Ad-hoc tests to allow me to work out the correct error code
Jeremy Allison [Fri, 3 Sep 2004 20:06:27 +0000 (20:06 +0000)]
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 d2d32d8f2b7a4a3e62f505adae787b42f80309bb)

16 years agor2212: Optimisation. Passes masktest against W2K3.
Jeremy Allison [Fri, 3 Sep 2004 17:44:07 +0000 (17:44 +0000)]
r2212: Optimisation. Passes masktest against W2K3.
Jeremy.
(This used to be commit fb7a529c4c65788c307c1043cf2b664059ed8c2a)

16 years agor2209: patch from volker to add EnumPorts spoolss IDL and test code
Andrew Tridgell [Fri, 3 Sep 2004 13:36:58 +0000 (13:36 +0000)]
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 e909bfa708aeceeaa37faa6f6dff0274f8ac7920)

16 years agor2208: little attempt to (almost) fix spoolss relative
Volker Lendecke [Fri, 3 Sep 2004 13:21:52 +0000 (13:21 +0000)]
r2208: little attempt to (almost) fix spoolss relative
(This used to be commit ef5414676ea07004aaa78d5f4c1746b3c8669d16)

16 years agor2207: this bug caued valgrind to consume infinite memory till the kernel killed...
Andrew Tridgell [Fri, 3 Sep 2004 13:20:31 +0000 (13:20 +0000)]
r2207: this bug caued valgrind to consume infinite memory till the kernel killed it :(
(This used to be commit 60a88595e23eb2953edfacf9dfc9fe3f08ec5eeb)

16 years agor2206: another (untested) attempt to make RELATIVE_CURRENT work for volker,
Andrew Tridgell [Fri, 3 Sep 2004 12:58:19 +0000 (12:58 +0000)]
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 8ffe136ad2be52f3504d73ead0785c9c5f5d8770)

16 years agor2205: fixed an incorrect cast that broke relative strings in spoolss
Andrew Tridgell [Fri, 3 Sep 2004 12:52:04 +0000 (12:52 +0000)]
r2205: fixed an incorrect cast that broke relative strings in spoolss
(This used to be commit d2d3433de1c1e1bc757381e9736147cc24fe8cf0)

16 years agor2204: added [flag(RELATIVE_CURRENT)] to change [relative] pointer behaviour
Andrew Tridgell [Fri, 3 Sep 2004 12:10:34 +0000 (12:10 +0000)]
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 bd45329a3fb55a5d9f006ad601ae26a80b9a563f)

16 years agor2203: delete the key after testing, so as not to clutter the server with random...
Andrew Tridgell [Fri, 3 Sep 2004 09:17:32 +0000 (09:17 +0000)]
r2203: delete the key after testing, so as not to clutter the server with random keys
(This used to be commit d98ed1fbe52b547c461f1b6a859504e96e0e3ee7)

16 years agor2202: don't close the smb pipe after the puzzle test
Andrew Tridgell [Fri, 3 Sep 2004 09:09:59 +0000 (09:09 +0000)]
r2202: don't close the smb pipe after the puzzle test
(This used to be commit 591ee2308c95982caf5453d35ebf6530208037fd)

16 years agor2201: removed an exit I accidentially left in
Andrew Tridgell [Fri, 3 Sep 2004 08:29:07 +0000 (08:29 +0000)]
r2201: removed an exit I accidentially left in
(This used to be commit e1d13631f0163b69401a07c51e449ea1e32239bf)

16 years agor2200: solved another piece of the lsakey puzzle - the session key for lsa
Andrew Tridgell [Fri, 3 Sep 2004 08:28:24 +0000 (08:28 +0000)]
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 05fd38f3cfd9476bc1cf7fed838a942a75569c0a)

16 years agor2199: the unknown 16 bit number in lsa_LookupPrivDisplayName() is a language
Andrew Tridgell [Fri, 3 Sep 2004 05:16:25 +0000 (05:16 +0000)]
r2199: the unknown 16 bit number in lsa_LookupPrivDisplayName() is a language
ID, so the client can choose what language they get the privilege
description in.

this is the first time I've seen a language ID on the wire in CIFS.
(This used to be commit e99d88915fbfcfb50b04330cd1a32b90222fbca3)

16 years agor2192: removed an erroneous free() call on an error path
Andrew Tridgell [Thu, 2 Sep 2004 21:55:24 +0000 (21:55 +0000)]
r2192: removed an erroneous free() call on an error path
(This used to be commit c80d686f59a8b6c53305af1233137c22a26f6750)

16 years agor2186: setting [ref] output pointers in dcerpc calls is pointless. Removed it
Andrew Tridgell [Thu, 2 Sep 2004 12:54:48 +0000 (12:54 +0000)]
r2186: setting [ref] output pointers in dcerpc calls is pointless. Removed it
for test_LookupPrivDisplayName
(This used to be commit 2d8f4005926e15dcb56a6501091a56475a99712d)

16 years agor2185: add a callback function to the dcerpc async API
Andrew Tridgell [Thu, 2 Sep 2004 12:03:16 +0000 (12:03 +0000)]
r2185: add a callback function to the dcerpc async API

also add a demonstration of its use in the netlogon async example
(This used to be commit f2a0438c66b999189c1a2ad726e91efd0748eb90)

16 years agor2184: use the smb.conf socket options for client code too
Andrew Tridgell [Thu, 2 Sep 2004 12:02:28 +0000 (12:02 +0000)]
r2184: use the smb.conf socket options for client code too
(This used to be commit 7256945b526a1ee68d18eb579e592f7389740c22)

16 years agor2183: Tidy up naming of ethereal fields. The field names are taken from the
Tim Potter [Thu, 2 Sep 2004 11:54:13 +0000 (11:54 +0000)]
r2183: Tidy up naming of ethereal fields.  The field names are taken from the
structure elements with underscores replaced with spaces and words
capitalised.

Fix small buglet where we confuse the name of the interface with the name
of the idl file.

Just discovered security descriptors don't display property anymore.  )-:
(This used to be commit a6f830cfecee9ec256924aa9df0cb1503b2072ab)

16 years agor2182: force the torture test domain join to happen on SMB to prevent the
Andrew Tridgell [Thu, 2 Sep 2004 11:26:58 +0000 (11:26 +0000)]
r2182: force the torture test domain join to happen on SMB to prevent the
LSAKEY problem holding up other tests
(This used to be commit ad8d54fd7dd93cb984d23acecfc1c611b63a5d58)

16 years agor2181: an rpc async test on the netlogon pipe
Andrew Tridgell [Thu, 2 Sep 2004 11:06:23 +0000 (11:06 +0000)]
r2181: an rpc async test on the netlogon pipe
(This used to be commit 4c370c3c917f399497f936a2037ea2868b2196d2)

16 years agor2180: added RPC flags "padcheck" which enables checking of all received pad
Andrew Tridgell [Thu, 2 Sep 2004 10:45:58 +0000 (10:45 +0000)]
r2180: added RPC flags "padcheck" which enables checking of all received pad
bytes to make sure they are zero. Non-zero values usually indicate one
of two things:

 - the server is leaking data through sending uninitialised memory
 - we have mistaken a real field in the IDL for padding

to differentiate between the two you really need to run with
"print,padcheck" and look carefully at whether the non-zero pad bytes
are random or appear to be deliberate.
(This used to be commit 7fdb778f81f14aaab75ab204431e4342a462957a)

16 years agor2179: two more lsa torture tests from Richard Renard. Thanks!
Andrew Tridgell [Wed, 1 Sep 2004 23:36:22 +0000 (23:36 +0000)]
r2179: two more lsa torture tests from Richard Renard. Thanks!
(This used to be commit 25f85efd75bd54ff142027a8741edaa94725ca9a)

16 years agor2173: Fix asn1 BOOLEANs. Thanks to Love Hornquist-Astrand.
Volker Lendecke [Wed, 1 Sep 2004 14:49:43 +0000 (14:49 +0000)]
r2173: Fix asn1 BOOLEANs. Thanks to Love Hornquist-Astrand.

Volker
(This used to be commit 53f58c053b643c8b45d2f9394faf8cfdd5005f6d)

16 years agor2170: if we don't have a native iconv library then we can't build this test
Andrew Tridgell [Wed, 1 Sep 2004 09:45:33 +0000 (09:45 +0000)]
r2170: if we don't have a native iconv library then we can't build this test
(This used to be commit 5cf9333f6021479d62cc99475f4fb9a19588f928)

16 years agor2169: switch core iconv code to use talloc
Andrew Tridgell [Wed, 1 Sep 2004 09:45:00 +0000 (09:45 +0000)]
r2169: switch core iconv code to use talloc
(This used to be commit 117796c19ba9615113ae549068fd0b5ad5d3aa97)

16 years agor2168: Move these files into a separate ethereal-pidl-plugin svn repository.
Tim Potter [Wed, 1 Sep 2004 09:40:09 +0000 (09:40 +0000)]
r2168: Move these files into a separate ethereal-pidl-plugin svn repository.
Not only will this allow the plugin to be built easily, but will also
get rid of the duplicate function names that muck up etags.
(This used to be commit 604fc603daf27ed02b5992c7ce2da10133bce649)

16 years agor2167: Implement some stubbed out functions.
Tim Potter [Wed, 1 Sep 2004 09:16:39 +0000 (09:16 +0000)]
r2167: Implement some stubbed out functions.
(This used to be commit ed48d13e4dc346a8af1e8aeaa7387122cc8d89d2)

16 years agor2166: sync the asn1 stuff with trunk
Stefan Metzmacher [Wed, 1 Sep 2004 07:29:02 +0000 (07:29 +0000)]
r2166: sync the asn1 stuff with trunk

metze
(This used to be commit 46762c9ee011e5c37f3d94a1b80ed7d679c55434)

16 years agor2165: generalise the charset torture test to add testing of CP850
Andrew Tridgell [Wed, 1 Sep 2004 06:59:48 +0000 (06:59 +0000)]
r2165: generalise the charset torture test to add testing of CP850
potentially we can test any charset
(This used to be commit e754d0cbcab7cb5a65322e5bbbd1d2a8bcdf5375)

16 years agor2164: put the latest "accept either form" utf-16 iconv code in samba4
Andrew Tridgell [Wed, 1 Sep 2004 05:19:00 +0000 (05:19 +0000)]
r2164: put the latest "accept either form" utf-16 iconv code in samba4
(This used to be commit 62a0cfd865d6ad4c05e2461dbf0b81988683a219)

16 years agor2159: converted samba4 over to UTF-16.
Andrew Tridgell [Wed, 1 Sep 2004 04:39:06 +0000 (04:39 +0000)]
r2159: converted samba4 over to UTF-16.

I had previously thought this was unnecessary, as windows doesn't use
standards compliant UTF-16, and for filesystem operations treats bytes
as UCS-2, but Bjoern Jacke has pointed out to me that this means we
don't correctly store extended UTF-16 characters as UTF-8 on
disk. This can be seen with (for example) the gothic characters with
codepoints above 64k.

This commit also adds a LOCAL-ICONV torture test that tests the first
1 million codepoints against the system iconv library, and tests 5
million random UTF-16LE buffers for identical error handling to the
system iconv library.

the lib/iconv.c changes need backporting to samba3
(This used to be commit 756f28ac95feaa84b42402723d5f7286865c78db)

16 years agor2158: removed a misleading comment (the extra uint16 is just padding)
Andrew Tridgell [Wed, 1 Sep 2004 04:31:15 +0000 (04:31 +0000)]
r2158: removed a misleading comment (the extra uint16 is just padding)
(This used to be commit 9e120bff7af076bbc541a88cefb3ba400fb91caa)

16 years agor2154: Merge of Jim's format string fixup in r2130:2131
Tim Potter [Tue, 31 Aug 2004 23:57:14 +0000 (23:57 +0000)]
r2154: Merge of Jim's format string fixup in r2130:2131
(This used to be commit 17a53eaac2d0d76413c8bb27a6f1c80536ccf3a7)

16 years agor2151: Added some more ad-hoc tests. Found bugs in Samba3 with these :-).
Jeremy Allison [Tue, 31 Aug 2004 21:34:14 +0000 (21:34 +0000)]
r2151: Added some more ad-hoc tests. Found bugs in Samba3 with these :-).
Jeremy.
(This used to be commit fe6506e190ed5e1987894d43caa51b33d80d5193)

16 years agor2128: netlogon DELTA_POLICY fix from rrenard
Andrew Tridgell [Tue, 31 Aug 2004 09:29:51 +0000 (09:29 +0000)]
r2128: netlogon DELTA_POLICY fix from rrenard
(This used to be commit 5ab362cede5b6b91af42247d7b0981f3e4b4d093)

16 years agor2127: more lsa IDL updates from Richard Renard
Andrew Tridgell [Tue, 31 Aug 2004 08:43:28 +0000 (08:43 +0000)]
r2127: more lsa IDL updates from Richard Renard
(This used to be commit 5be1b54d15e65008f0dc06a005fb205180817a6d)

16 years agor2126: two more lsa functions worked out by richard renard
Andrew Tridgell [Tue, 31 Aug 2004 08:22:51 +0000 (08:22 +0000)]
r2126: two more lsa functions worked out by richard renard
(This used to be commit 253203f58f7fe6d1b7aea50822d191a8377b47da)

16 years agor2125: the lp_use_mmap() in map_file() is inappropriate for 2 reasons, so I have...
Andrew Tridgell [Tue, 31 Aug 2004 08:21:29 +0000 (08:21 +0000)]
r2125: the lp_use_mmap() in map_file() is inappropriate for 2 reasons, so I have removed it.

 - lp_use_mmap() is really meant to cope with systems that have broken
   mmap coherence, but map_file() doesn't need coherence, as its maps
   read only

 - map_file() is used to map the charset files before loadparm has
   loaded, so lp_use_mmap() is always returning false for the major
   use of map_file()
(This used to be commit dbe786f61e3de0758f95f2abd1b15a4c320432ca)

16 years agor2124: merge from trunk (-r 2123):
Stefan Metzmacher [Tue, 31 Aug 2004 07:14:34 +0000 (07:14 +0000)]
r2124: merge from trunk (-r 2123):

Argl. I could never get the naming right. Having the most significant byte at
the lowest memory address is big endian, at least according to the google
search for 'big endian'....

Volker
(This used to be commit bc4c188362901423cc900fd4bdfa4a9ed6838f2b)

16 years agor2122: merge from trunk (-r 2120):
Stefan Metzmacher [Tue, 31 Aug 2004 06:21:14 +0000 (06:21 +0000)]
r2122: merge from trunk (-r 2120):

Fix bug found by Love H?\195?\182rnquist ?\195?\133strand: asn1_write_Integer needs to push
stuff little endian.
(This used to be commit 79bee828fbb70e71ad3fbd45758bcc7775ea977b)

16 years agor2121: fix compiler warning
Stefan Metzmacher [Tue, 31 Aug 2004 06:18:48 +0000 (06:18 +0000)]
r2121: fix compiler warning

metze
(This used to be commit 2de544181ec75da63fdcd5ecdde9e6a533603a38)

16 years agor2119: Noticed by jra:
Andrew Bartlett [Tue, 31 Aug 2004 02:57:49 +0000 (02:57 +0000)]
r2119: Noticed by jra:

Clean up use of unitilaised variable.

Andrew Bartlett
(This used to be commit e8d0246882f0d70dc3c63208d0a990804f36a05d)

16 years agor2118: fixed the receipt of bigendian rpc packets with the new async code.
Andrew Tridgell [Tue, 31 Aug 2004 01:16:50 +0000 (01:16 +0000)]
r2118: fixed the receipt of bigendian rpc packets with the new async code.

The fix uses the new talloc_increase_ref_count() function in an
interesting way. I suspect this sort of technique will become quite
common.
(This used to be commit a86e629a39baf0ba2a6bb347eb9b72551c1477ff)

16 years agor2107: added a SAMR async test - this one seems to work
Andrew Tridgell [Mon, 30 Aug 2004 13:05:03 +0000 (13:05 +0000)]
r2107: added a SAMR async test - this one seems to work
(This used to be commit 306eb848654e0cadb0ebe10c29420fc0c30a64c4)

16 years agor2106: try to cope with a wider range of UTF-16 characters when we are using
Andrew Tridgell [Mon, 30 Aug 2004 12:03:01 +0000 (12:03 +0000)]
r2106: try to cope with a wider range of UTF-16 characters when we are using
an external libiconv library.
(This used to be commit 168be7fbd7ae876ded39f73a7835e91b35e67244)