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

1777 Commits

Author SHA1 Message Date
Andrew Tridgell
2c0b5e119e r2306: in lp_set_cmdline(), also set any aliases as having been set by the commandline 2007-10-10 12:58:42 -05:00
Andrew Tridgell
42bdee690b r2305: a useful test script for trying a wide variety of DCE/RPC options with the echo pipe
and smbtorture
2007-10-10 12:58:41 -05:00
Andrew Tridgell
09651b831d r2304: fixed a bug in old style NTLM signing 2007-10-10 12:58:41 -05:00
Andrew Tridgell
0a4723d250 r2303: allow setting of many ntlmssp options from smb.conf or the command
line. This makes testing much easier.
2007-10-10 12:58:41 -05:00
Andrew Tridgell
360a6b530e r2302: added a '--option' option, allowing any global or default option in
smb.conf to be set on the command line. For example, you can use:

  smbtorture --option 'unicode=false'
or
  smbtorture --option 'netbios name=myname'
2007-10-10 12:58:41 -05:00
Andrew Tridgell
daaee86d14 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.
2007-10-10 12:58:41 -05:00
Tim Potter
73e087f11e r2300: Start writing a Python torture test suite based on the smbtorture rpc tests. 2007-10-10 12:58:41 -05:00
Tim Potter
05cff58070 r2299: Map a (C) NULL pointer to (Python) None and vice versa. 2007-10-10 12:58:41 -05:00
Tim Potter
ec23bae00f 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.
2007-10-10 12:58:41 -05:00
Tim Potter
cbfb177394 r2297: Add string conversion functions. 2007-10-10 12:58:40 -05:00
Tim Potter
e4a5840ff8 r2296: Correct setting of access_mask in test program. 2007-10-10 12:58:40 -05:00
Tim Potter
d31d23b944 r2295: Convert simple scalar types and policy handles between dcerpc function
call request and response structures.
2007-10-10 12:58:40 -05:00
Andrew Tridgell
fce7a4218b 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.
2007-10-10 12:58:40 -05:00
Andrew Tridgell
d8825b69ac r2293: fixed older NTLM sign/seal in the server 2007-10-10 12:58:40 -05:00
Andrew Bartlett
b80d849b6b 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
2007-10-10 12:58:40 -05:00
Tim Potter
e4729949c6 r2289: Autogenerate some more attractive looking stubs for converting
function argument structures and idl structures to and from Python
dictionaries.
2007-10-10 12:58:40 -05:00
Andrew Bartlett
b8fe29dc7a 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
2007-10-10 12:58:39 -05:00
Andrew Bartlett
49171e4203 r2287: Add static.
Andrew Bartlett
2007-10-10 12:58:39 -05:00
Andrew Bartlett
f5a381094d 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
2007-10-10 12:58:39 -05:00
Andrew Bartlett
2c701f59a7 r2285: Remove more static data, fix spelling in a comment. 2007-10-10 12:58:39 -05:00
Andrew Bartlett
a1fe175eec 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
2007-10-10 12:58:39 -05:00
Andrew Bartlett
553b529a09 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
2007-10-10 12:58:39 -05:00
Andrew Bartlett
a089bcf503 r2282: Remove one more magic constant from the source, replace with sizeof().
Andrew Bartlett
2007-10-10 12:58:39 -05:00
Andrew Bartlett
7be16e5036 r2281: Add a few comments. 2007-10-10 12:58:38 -05:00
Andrew Tridgell
3b4ed24f4b r2280: fixed the session key choice for ncacn_np and ncacn_ip_tcp in the rpc server 2007-10-10 12:58:38 -05:00
Tim Potter
5a64449599 r2278: Add some more helper functions. 2007-10-10 12:58:38 -05:00
Tim Potter
69710bbcb8 r2277: Generate stubs for input and output typemaps. 2007-10-10 12:58:37 -05:00
Tim Potter
b7ebafbbe0 r2276: Remove garbage collection debugs. 2007-10-10 12:58:37 -05:00
Andrew Tridgell
22a6e5d50d r2275: don't crash on a rpc BIND_NAK response ... 2007-10-10 12:58:37 -05:00
Andrew Tridgell
b7db909e8e r2274: fixed some popt option clashes between smbtorture and the standard options 2007-10-10 12:58:37 -05:00
Andrew Tridgell
bdb49f01b7 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
2007-10-10 12:58:36 -05:00
Andrew Tridgell
89acbf4f02 r2272: fixed another couple of errors in the popt option arrays 2007-10-10 12:58:36 -05:00
Andrew Tridgell
0f3b01beba 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.
2007-10-10 12:58:36 -05:00
Andrew Tridgell
9cc33d9364 r2267: we no longer need to force the domain join to happen on NCACN_NP - it
now works on NCACN_IP_TCP as well.
2007-10-10 12:58:36 -05:00
Andrew Tridgell
f6ea24296a r2266: yay! LSA session keys on TCP now work! 2007-10-10 12:58:35 -05:00
Jelmer Vernooij
83f9f8eaa4 r2257: Tab completion support in regshell (complete command names and key names
in the current key)
2007-10-10 12:58:35 -05:00
Tim Potter
55bd2dc02d r2256: Include autogenerated interfaces for lsa and samr pipes. Typemaps are currently
not working though.
2007-10-10 12:58:35 -05:00
Tim Potter
db191572ff r2255: Don't do experimental swig stuff by default. 2007-10-10 12:58:35 -05:00
Jelmer Vernooij
8056f4a9a7 r2254: Fix a couple of compiler warnings... 2007-10-10 12:58:35 -05:00
Tim Potter
fd31ae38df r2253: Add test program, as small example of what's going on. 2007-10-10 12:58:35 -05:00
Andrew Tridgell
fdb675bbad r2252: don't register the same name twice 2007-10-10 12:58:35 -05:00
Andrew Tridgell
efc8850b9a r2251: forgot to add vfs_posix.h in my last commit
note that this is just a skeleton so far. More to come soon.
2007-10-10 12:58:35 -05:00
Andrew Tridgell
c455a3a61d r2250: removed unnecessary mem_ctx 2007-10-10 12:58:34 -05:00
Andrew Tridgell
21ef338cbb r2249: got rid of some more mem_ctx elements in structures 2007-10-10 12:58:34 -05:00
Tim Potter
6c1a72c5d6 r2247: talloc_destroy -> talloc_free 2007-10-10 12:58:34 -05:00
Tim Potter
301bb069c3 r2243: Include definition for PRINTF_ATTRIBUTE in Python tdb wrapper. 2007-10-10 12:58:34 -05:00
Andrew Tridgell
9c7100e3c7 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
2007-10-10 12:58:34 -05:00
Andrew Tridgell
c26c92eb8f 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.
2007-10-10 12:58:34 -05:00
Tim Potter
fdfabbd4a5 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!
2007-10-10 12:58:33 -05:00
Tim Potter
5fead63618 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.
2007-10-10 12:58:33 -05:00