1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-21 01:59:07 +03:00

401 Commits

Author SHA1 Message Date
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
Jelmer Vernooij
45c3d0036b r1736: - Pidl updates:
- Support for "object oriented" interfaces in pidl
 - Support for inherited interfaces in pidl
 - Simplification of the support for properties on an interface
- Start on dcom rpc torture tests
2007-10-10 12:57:51 -05:00
Jelmer Vernooij
547f860285 r1703: - Lots of RPC updates, adding new pipes and protocols.
- More updates/fixes to the ethereal parser generator
2007-10-10 12:57:49 -05:00
Andrew Bartlett
0e4e3647e8 r1685: Add the ability to lookup RPC auth types for the RPC-MGMT torture test.
Andrew Bartlett
2007-10-10 12:57:48 -05:00
Andrew Tridgell
8685a584c9 r1676: - improved the handling of username/password in locktest and gentest
- use lp_maxprotocol() in the libcli/raw/ negotiate code, so we obey
  the smb.conf "max protocol" option

- better handling of -M option in masktest
2007-10-10 12:57:48 -05:00
Stefan Metzmacher
8441750fd9 r1654: rename cli_ -> smbcli_
rename CLI_ -> SMBCLI_

metze
2007-10-10 12:57:47 -05:00
Stefan Metzmacher
59de2b1f52 r1649: do a join as dc and run this test as the machine account
metze
2007-10-10 12:57:47 -05:00
Stefan Metzmacher
973ac69a01 r1647: destroy mem_ctx
metze
2007-10-10 12:57:46 -05:00
Andrew Tridgell
bcad9efd72 r1646: disable testing of group rename in the RPC-SAMR test, as it leaves the
group in a state where it can't be deleted via samr, which breaks
repeated runs of the test.
2007-10-10 12:57:46 -05:00
Jelmer Vernooij
fb2ca1f4cd r1642: Torture test for EnumServicesStatus, almost finished. 2007-10-10 12:57:46 -05:00
Andrew Tridgell
b5f25fdb74 r1637: - w2k3 can't handle more than 1000 names in a LookupNames request
- use a SID that w2k3 likes in CreateTrustedDomain
2007-10-10 12:57:46 -05:00
Andrew Tridgell
19c22760c6 r1636: improved the negnowait test so it is standalone (taking advantage of the async APIs) 2007-10-10 12:57:46 -05:00
Andrew Tridgell
13cd58efce r1632: in case of error don't send uninitialised fnums on the wire 2007-10-10 12:57:45 -05:00
Andrew Tridgell
2e297be5c3 r1628: - fixed the comment on run_deferopen. (I also think that the
deferopen test should probably be ripped out and redone, as it
   tests the wrong thing.)

 - removed some unused code

 - add progress printing to the pipe_number test

 - fixed the dir1 test to use deltree rather than trying to re-invent it itself (in a broken manner)

 - renamed all of the tests into catagories, so you can now run
   BASE-* for the base tests, and BENCH-* for the benchmarks.
2007-10-10 12:57:44 -05:00
Jelmer Vernooij
518ff5f505 r1617: Start working on the svcctl pipe 2007-10-10 12:57:44 -05:00
Andrew Tridgell
96bf4da3ed r1578: the first stage of the async client rewrite.
Up to now the client code has had an async API, and operated
asynchronously at the packet level, but was not truly async in that it
assumed that it could always write to the socket and when a partial
packet came in that it could block waiting for the rest of the packet.

This change makes the SMB client library full async, by adding a
separate outgoing packet queue, using non-blocking socket IO and
having a input buffer that can fill asynchonously until the full
packet has arrived.

The main complexity was in dealing with the events structure when
using the CIFS proxy backend. In that case the same events structure
needs to be used in both the client library and the main smbd server,
so that when the client library is waiting for a reply that the main
server keeps processing packets. This required some changes in the
events library code.

Next step is to make the generated rpc client code use these new
capabilities.
2007-10-10 12:57:42 -05:00
Stefan Metzmacher
0bb50dcf1c r1547: rename 'enum <bla>_level' -> 'enum smb_<bla>_level'
e.g. we now have 'union smb_mkdir' and 'enum smb_mkdir_level' in sync

we may should also rename 'RAW_MKDIR_*' -> 'SMB_MKDIR_*'

metze
2007-10-10 12:57:41 -05:00
Stefan Metzmacher
a9a22d1e0d r1544: add some comments and fix 'return True' -> 'return ret'
metze
2007-10-10 12:57:41 -05:00
Stefan Metzmacher
3f2b77d7ec r1543: add srvsvc_NetRemoteTOD idl and torture tests
metze
2007-10-10 12:57:41 -05:00
Stefan Metzmacher
e5bf65b840 r1530: we don't need to call srvsvc_NetShareGetInfo twice
in NetShareEnum and NetShareEnumAll

metze
2007-10-10 12:57:40 -05:00
Stefan Metzmacher
0018aeb2fe r1529: add NetSrvGetInfo torture test
metze
2007-10-10 12:57:40 -05:00
Stefan Metzmacher
d44c85176a r1528: add NetCharDevQ torture tests
metze
2007-10-10 12:57:40 -05:00
Stefan Metzmacher
dde75d3b34 r1527: add NetCharDev torture tests
metze
2007-10-10 12:57:40 -05:00
Stefan Metzmacher
3a2a8973be r1526: some cleanups and fixes for the srvsvc torture tests
metze
2007-10-10 12:57:39 -05:00
Andrew Tridgell
fb5796b0dc r1510: add a commented out routine I used to test password change on NT3. 2007-10-10 12:57:36 -05:00
Andrew Bartlett
b97d3cb2ef r1498: (merge from 3.0)
Rework our random number generation system.

On systems with /dev/urandom, this avoids a change to secrets.tdb for every fork().

For other systems, we now only re-seed after a fork, and on startup.
No need to do it per-operation.  This removes the 'need_reseed'
parameter from generate_random_buffer().

This also requires that we start the secrets subsystem, as that is
where the reseed value is stored, for systems without /dev/urandom.

In order to aviod identical streams in forked children, the random
state is re-initialised after the fork(), at the same point were we do
that to the tdbs.

Andrew Bartlett
2007-10-10 12:57:35 -05:00
Stefan Metzmacher
3fc9abcad7 r1481: add idl file and torture test dummies
for DRSUapi (the Active Directory Replication Protocol)

I'll try to fill the idl file as part of a study project
together with some other students...

metze
2007-10-10 12:57:34 -05:00
Volker Lendecke
08140cc1a8 r1470: Get the smb_trans2 structure out of the rap_cli_call struct.
Initial attempt at RAP server infrastructure. Look at rap_server.c for the
dummy functions that are supposed to implement the core functionality.

ipc_rap.c contains all the data shuffling. _rap_shareenum and _rap_serverenum2
in ipc_rap.c are (I think) regular enough to be auto-generated.

I did not test all the corner cases yet, but nevertheless I would like some
comments on the general style.

Volker

P.S: samba-3 smbclient now doesn't freak out anymore, although the results are
not entirely correct :-)
2007-10-10 12:57:33 -05:00
Volker Lendecke
1506da85b9 r1453: Change the RAP client to use the ndr routines for moving bytes around.
Volker
2007-10-10 12:56:58 -05:00
Stefan Metzmacher
f1bbde6bb4 r1403: commit volkers initial RAP torture test
we'll try to autogenerate the specific calls in future by pidl
and create a new subsystem for the rap lib

after that the server side will be added

metze
2007-10-10 12:56:54 -05:00
Stefan Metzmacher
acde1358c9 r1402: we should prompt for a password if it's not given by -U
metze
2007-10-10 12:56:54 -05:00
Volker Lendecke
8c997a2ad2 r1342: When fixing _lsa_lookupsids in samba3 I wanted to find out the number of SIDs
w2k3 can handle in a single request. With the samba3 client rpc libs I can do
about 21000 SIDs in a single request. test_many_LookupSIDs with 10000 SIDs
fails on the subsequent request with a NET_WRITE_FAULT. Maybe the Samba4 DCE
people want to take a look at this -- I don't see the problem.

Bug fix: SID components should be treated as unsigned when parsing

Volker
2007-10-10 12:56:51 -05:00
Andrew Bartlett
07fd885fd4 r1294: A nice, large, commit...
This implements gensec for Samba's server side, and brings gensec up
to the standards of a full subsystem.

This means that use of the subsystem is by gensec_* functions, not
function pointers in structures (this is internal).  This causes
changes in all the existing gensec users.

Our RPC server no longer contains it's own generalised security
scheme, and now calls gensec directly.

Gensec has also taken over the role of auth/auth_ntlmssp.c

An important part of gensec, is the output of the 'session_info'
struct.  This is now reference counted, so that we can correctly free
it when a pipe is closed, no matter if it was inherited, or created by
per-pipe authentication.

The schannel code is reworked, to be in the same file for client and
server.

ntlm_auth is reworked to use gensec.

The major problem with this code is the way it relies on subsystem
auto-initialisation.  The primary reason for this commit now.is to
allow these problems to be looked at, and fixed.

There are problems with the new code:
- I've tested it with smbtorture, but currently don't have VMware and
  valgrind working (this I'll fix soon).
- The SPNEGO code is client-only at this point.
- We still do not do kerberos.

Andrew Bartlett
2007-10-10 12:56:49 -05:00
Stefan Metzmacher
626bb153c4 r1228: use int64_t instead of long long
(jra: please use: void, char int, uint_t, [u]int<8|16|32|64>_t types in new code)

metze
2007-10-10 12:56:45 -05:00
Stefan Metzmacher
238acc5acf r1227: use uint64_t instead of unsigned long long
metze
2007-10-10 12:56:45 -05:00
Andrew Bartlett
57ca89eab3 r1197: Fix my build breakage, variables at the top of a block only...
Andrew Bartlett
2007-10-10 12:56:44 -05:00
Andrew Bartlett
b6128c2a9d r1189: Now that we use a common 'base' return structure for the SamLogon
call, avoid code duplication in the torture suite.

Andrew Bartlett
2007-10-10 12:56:44 -05:00