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

437 Commits

Author SHA1 Message Date
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
Andrew Bartlett
f7f7c3de23 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
2007-10-10 12:58:32 -05:00
Jeremy Allison
d2d32d8f2b r2217: Ad-hoc tests to allow me to work out the correct error code
for the bad path algorithm.
Jeremy.
2007-10-10 12:58:32 -05:00
Andrew Tridgell
e909bfa708 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.
2007-10-10 12:58:31 -05:00
Andrew Tridgell
60a88595e2 r2207: this bug caued valgrind to consume infinite memory till the kernel killed it :( 2007-10-10 12:58:31 -05:00
Andrew Tridgell
d98ed1fbe5 r2203: delete the key after testing, so as not to clutter the server with random keys 2007-10-10 12:58:31 -05:00
Andrew Tridgell
591ee2308c r2202: don't close the smb pipe after the puzzle test 2007-10-10 12:58:31 -05:00
Andrew Tridgell
e1d13631f0 r2201: removed an exit I accidentially left in 2007-10-10 12:58:30 -05:00
Andrew Tridgell
05fd38f3cf 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.
2007-10-10 12:58:30 -05:00
Andrew Tridgell
e99d88915f 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.
2007-10-10 12:58:30 -05:00
Andrew Tridgell
2d8f400592 r2186: setting [ref] output pointers in dcerpc calls is pointless. Removed it
for test_LookupPrivDisplayName
2007-10-10 12:58:30 -05:00
Andrew Tridgell
f2a0438c66 r2185: add a callback function to the dcerpc async API
also add a demonstration of its use in the netlogon async example
2007-10-10 12:58:30 -05:00
Andrew Tridgell
ad8d54fd7d r2182: force the torture test domain join to happen on SMB to prevent the
LSAKEY problem holding up other tests
2007-10-10 12:58:29 -05:00
Andrew Tridgell
4c370c3c91 r2181: an rpc async test on the netlogon pipe 2007-10-10 12:58:29 -05:00
Andrew Tridgell
25f85efd75 r2179: two more lsa torture tests from Richard Renard. Thanks! 2007-10-10 12:58:29 -05:00
Andrew Tridgell
5cf9333f60 r2170: if we don't have a native iconv library then we can't build this test 2007-10-10 12:58:28 -05:00
Andrew Tridgell
e754d0cbca r2165: generalise the charset torture test to add testing of CP850
potentially we can test any charset
2007-10-10 12:58:28 -05:00
Andrew Tridgell
756f28ac95 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
2007-10-10 12:58:27 -05:00
Jeremy Allison
fe6506e190 r2151: Added some more ad-hoc tests. Found bugs in Samba3 with these :-).
Jeremy.
2007-10-10 12:58:27 -05:00
Andrew Tridgell
306eb84865 r2107: added a SAMR async test - this one seems to work 2007-10-10 12:58:25 -05:00
Andrew Tridgell
a5eb6cad50 r2105: added a TestSleep() operation to the echo pipe and extended the
RPC-ECHO test to use it to test asynchronous rpc operations.
2007-10-10 12:58:25 -05:00
Andrew Tridgell
f5d004d8eb r2100: rework the dcerpc client side library so that it is async. We now
generate a separate *_send() async function for every RPC call, and
there is a single dcerpc_ndr_request_recv() call that processes the
receive side of any rpc call. The caller can use
dcerpc_event_context() to get a pointer to the event context for the
pipe so that events can be waited for asynchronously.

The only part that remains synchronous is the initial bind
calls. These could also be made async if necessary, although I suspect
most applications won't need them to be.
2007-10-10 12:58:24 -05:00
Andrew Bartlett
16ef31a79e r2098: The first 8 bytes of this sig is not used in the 'is it correct' calculation.
Andrew Bartlett
2007-10-10 12:58:24 -05:00
Stefan Metzmacher
4733dcbf5f r2071: - change smbtorture to use the popt_common stuff
this means -U DOM\\user is know allowed

- torture:userdomain is a new smb.conf parameter
  because lp_workgroup is not the domain of the user

- we use torture:userdomain now in the tests instad of lp_workgroup

- for backward compat the userdomain is lp_workgroup() by default and
  not lp_netbios_name(), which my change later to match 'net' and 'smbclient'..

- we now have dublicate options e.g. -N -s ...
  tridge: can we change this?

metze
2007-10-10 12:58:23 -05:00
Andrew Bartlett
183622c9f4 r2062: Fix a couple more of the printf warnings (real bugs).
You should never pass a non-constant string as a format for a printf()
function - it could contain printf macros, and these need to be
checked.

Andrew Bartlett
2007-10-10 12:58:23 -05:00
Andrew Bartlett
7e18ca7285 r2056: Allow the compiler to check this format string.
Andrew Bartlett
2007-10-10 12:58:22 -05:00
Andrew Bartlett
4e2c5a5fb3 r2035: Fix spelling.
Andrew Bartlett
2007-10-10 12:58:19 -05:00
Andrew Tridgell
eddb31d196 r2031: add a check for a blank secret return in lsa secret tests 2007-10-10 12:58:18 -05:00
Stefan Metzmacher
eb9de893b8 r1997: fix compiler warning
metze
2007-10-10 12:58:16 -05:00
Stefan Metzmacher
dd8d68f3ec r1996: fix compiler warnings
metze
2007-10-10 12:58:16 -05:00
Stefan Metzmacher
80f27766cb r1995: a ndrdump file from abartlet make it clear that this isn't a pointer
to a uint32, there're two uint32 with 0x00000000

metze
2007-10-10 12:58:16 -05:00
Andrew Bartlett
a8e76085a7 r1992: Make the NTLMSSP torture test show more detail, and return failure etc.
Andrew Bartlett
2007-10-10 12:58:15 -05:00
Andrew Tridgell
6ffdfd7799 r1985: take advantage of the new talloc in a few more places 2007-10-10 12:58:14 -05:00
Andrew Tridgell
e35bb094c5 r1983: a completely new implementation of talloc
This version does the following:

  1) talloc_free(), talloc_realloc() and talloc_steal() lose their
     (redundent) first arguments

  2) you can use _any_ talloc pointer as a talloc context to allocate
     more memory. This allows you to create complex data structures
     where the top level structure is the logical parent of the next
     level down, and those are the parents of the level below
     that. Then destroy either the lot with a single talloc_free() or
     destroy any sub-part with a talloc_free() of that part

  3) you can name any pointer. Use talloc_named() which is just like
     talloc() but takes the printf style name argument as well as the
     parent context and the size.

The whole thing ends up being a very simple piece of code, although
some of the pointer walking gets hairy.

So far, I'm just using the new talloc() like the old one. The next
step is to actually take advantage of the new interface
properly. Expect some new commits soon that simplify some common
coding styles in samba4 by using the new talloc().
2007-10-10 12:58:14 -05:00
Stefan Metzmacher
d965f84f69 r1961: print out the dcerpc fault code, when we got NT_STATUS_NET_WRITE_FAULT
(this need to be done more generic for all dcerpc calls,
 but for now I just need it in this 2 places)

metze
2007-10-10 12:58:13 -05:00
Andrew Tridgell
2ce4028842 r1897: added a choose_called_name() function that allows us to more sanely
handle connections using the IP as the server name, while not trying
for NBT name resolution on names like "192" and "192.168.1.2".

also removed the ip address argument to smbcli_socket_connect() as it
isn't used and doesn't really make sense.
2007-10-10 12:58:09 -05:00
Stefan Metzmacher
59f3d41744 r1855: fix compiler warning and output fromatting
metze
2007-10-10 12:58:02 -05:00
Andrew Tridgell
c900ebb3ac r1820: added a strcmp_safe() that handles NULL pointers. Needed for the
search torture test, as some servers return really bad entries.
2007-10-10 12:57:59 -05:00
Andrew Tridgell
ec41c73ae1 r1818: _really_ fixed epmapper this time, it was using more than one old rpc interface method. 2007-10-10 12:57:59 -05:00
Stefan Metzmacher
a2cd725681 r1805: ...I just forgot to say that the sasl bind actually works now:-)
metze
2007-10-10 12:57:58 -05:00
Simo Sorce
10baf58582 r1802: start to support SASL in our ldap libraries
does not work yet but we are close currently we send the right data
on wire and fail to decode the answer
2007-10-10 12:57:58 -05:00
Jelmer Vernooij
8d36dbed8c r1799: List more uuids. From
http://www.hsc.fr/ressources/articles/win_net_srv
2007-10-10 12:57:58 -05:00
Andrew Bartlett
c4036f2189 r1795: Fix the multiple session setup torture tests.
Andrew Bartlett
2007-10-10 12:57:57 -05:00
Simo Sorce
0eaec28f5c r1793: try to bind multiple times as anonimous and user
added -D parameter to torture to be able to specify:
- user dn
- base dn
- user secret
2007-10-10 12:57:57 -05:00
Stefan Metzmacher
4e1156602c r1773: fix the build
metze
2007-10-10 12:57:56 -05:00
Simo Sorce
e6a6c0737a r1771: OK Let's add tests for ldap.
Thanks to Metze and Volker for their unvaluable support :)
2007-10-10 12:57:56 -05:00
Andrew Bartlett
90d70a63ee r1769: Add a new torture test to check vuid properties, and SPNEGO/non-SPNEGO games.
Andrew Bartlett
2007-10-10 12:57:55 -05:00
Simo Sorce
606caddeb9 r1758: Move and enhance the add_string_to_array function as per volker job on trunk 2007-10-10 12:57:54 -05:00
Andrew Tridgell
c3bce90be7 r1740: fixed the torture suite for ASCII-only servers 2007-10-10 12:57:52 -05:00