1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

103 Commits

Author SHA1 Message Date
Günther Deschner
8071c56ac2 r25667: Start on frsapi testsuite.
Guenther
(This used to be commit ebcbdb5fbdb30005a60431687a738df5f26d3472)
2007-12-21 05:43:06 +01:00
Ronnie Sahlberg
52857d83c1 r25263: add a test to check the accessmasks and ACLs on policy handles returned on the
SAMR pipe.

also test which bits in the accessmasks grant which right to perform operations on the returned policy handle
(This used to be commit cb5bc801362a4a81a690e641146c70a7af8e6096)
2007-10-10 15:07:01 -05:00
Andrew Bartlett
c44019e1e3 r25073: Correct test name so make test can pass again.
Andrew Bartlett
(This used to be commit adcb3c864a5af5286cd7f7f6e2a3b904c7db9f42)
2007-10-10 15:06:25 -05:00
Jelmer Vernooij
45d0b9a0a3 r25070: Revert DRSUAPI conversion to new API, as it broke some tests.
(This used to be commit cfb33df2d0eb36704d4702948a78102153663131)
2007-10-10 15:06:24 -05:00
Jelmer Vernooij
8e2d624a58 r24937: Merge tests spoolss RPC callbacks.
(This used to be commit 9b256a0ca232ea6e89771bf73a1adf877273a752)
2007-10-10 15:03:39 -05:00
Jelmer Vernooij
3d7849847c r24889: Move choosing the binding options into RPC-SECRETS.
(This used to be commit 24d322b746cf25010045515f9beff63e2b5cccd2)
2007-10-10 15:03:29 -05:00
Jelmer Vernooij
b53ecda303 r24885: Convert to new torture API.
(This used to be commit 2918a056787467186a491574da95ea38c9aea1ee)
2007-10-10 15:03:28 -05:00
Jelmer Vernooij
7fd416bd3e r24855: Convert RPC-DRSUAPI, RPC-SCHANNEL to use the torture API.
(This used to be commit dadcc4708e1813c0b657f1d357c2ae202ea4ec5a)
2007-10-10 15:03:20 -05:00
Jelmer Vernooij
9c006b122f r24850: Convert to torture API.
(This used to be commit 6c7a004b9d95e443d07307bbe94f691cc4b03490)
2007-10-10 15:03:19 -05:00
Jelmer Vernooij
edeea82ae4 r24849: Add helper function for running tests as a member server.
(This used to be commit 61b2f0a405ea70203ea982b9a151643f28b1da7e)
2007-10-10 15:03:19 -05:00
Jelmer Vernooij
2a8ff00eea r24835: Put all RPC tests in the list (skipping when necessary), warn if tests aren't there.
(This used to be commit 1ff13ae254288afc56a3b19d00c7a20120eb4c74)
2007-10-10 15:03:17 -05:00
Jelmer Vernooij
3e7203d0b3 r24755: Use common code for finding the RPC binding in the torture tests.
(This used to be commit e3310e773924ddd2129e8ca1a86e23d0f713c19c)
2007-10-10 15:03:03 -05:00
Jelmer Vernooij
18302e7030 r24751: Run more tests, remove empty testsuites, more small improvements.
(This used to be commit 2a5a0819eea86ba322434306e062d13893b5722e)
2007-10-10 15:03:02 -05:00
Jelmer Vernooij
0e6773525f r24741: More use of the torture API.
(This used to be commit de05c3651a6e9e6611b296873526afd9292327c1)
2007-10-10 15:03:02 -05:00
Jelmer Vernooij
9cca9ddc79 r24736: Convert to using torture API.
(This used to be commit a0f11881546f6cd367d459e016956f76910a0a89)
2007-10-10 15:03:01 -05:00
Jelmer Vernooij
919aa6b27e r24735: Use torture API in more places.
(This used to be commit 1319d88c099496be29dd9214fa2492c81e848369)
2007-10-10 15:03:00 -05:00
Jelmer Vernooij
b409d4120f r24667: Finally merge the registry improvements that Wilco Baan Hofman and I have
been working on for at least half a year now. Contains the following
improvements:

 * proper layering (finally!) for the registry library. Distinction is
   now made between 'real' backends (local, remote, wine, etc) and
   the low-level hive backends (regf, creg, ldb, ...) that are only used
   by the local registry backend
 * tests for all important hive and registry operations
 * re-enable RPC-WINREG tests (still needs more work though, as
							   some return values aren't checked yet)
 * write support for REGF files
 * dir backend now supports setting/reading values, creating keys
 * support for storing security descriptors
 * remove CREG backend as it was incomplete, didn't match the data model
   and wasn't used at all anyway
 * support for parsing ADM files as used by the policy editor (see lib/policy)
 * support for parsing PREG files (format used by .POL files)
 * new streaming interface for registry diffs (improves speed and memory usage
	for regdiff/regpatch significantly)

   ... and fixes a large number of bugs in the registry code
(This used to be commit 7a1eec6358bc863dfc671c542b7185d3e39d7b5a)
2007-10-10 15:02:34 -05:00
Stefan Metzmacher
bd93ed4680 r24606: move librpc/rpc/table.c -> librpc/ndr/ndr_table.c
and rename the containing functions to have a ndr_
prefix

metze
(This used to be commit cb234d43ae693af5d8a921a15c9bcac3c6f0359a)
2007-10-10 15:02:23 -05:00
Stefan Metzmacher
f14bd1a90a r24557: rename 'dcerpc_table_' -> 'ndr_table_'
metze
(This used to be commit 84651aee81aaabbebf52ffc3fbcbabb2eec6eed5)
2007-10-10 15:02:15 -05:00
Stefan Metzmacher
b8cdadced4 r24551: rename dcerpc_interface_table -> ndr_interface_table
rename dcerpc_interface_list  -> ndr_interface_list

and move them to libndr.h

metze
(This used to be commit 4adbebef5df2f833d2d4bfcdda72a34179d52f5c)
2007-10-10 15:02:12 -05:00
Andrew Tridgell
0479a2f1cb r23792: convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
(This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
2007-10-10 14:59:12 -05:00
Andrew Tridgell
a2a49c5af7 r23090: a test showing two netlogon pipes open at once, using the LogonEx ops
(This used to be commit 576dbdc8eece5c2fef743835c7cc255f02050ad3)
2007-10-10 14:52:48 -05:00
Stefan Metzmacher
c5693fc49d r22580: remove not yet needed line...
metze
(This used to be commit 57939600ee954c7510d8219200d3c759fbb69372)
2007-10-10 14:51:47 -05:00
Stefan Metzmacher
628ff1bea3 r22579: disable progress printing in the build-farm
metze
(This used to be commit 93089ad5e8b6e20c4fa92bf13b0137765aeac689)
2007-10-10 14:51:47 -05:00
Stefan Metzmacher
9545dc2835 r21588: add a RPC-HANDLES-LSARPC-SHARED test, which demonstrates
policy handles can be shared between connections

metze
(This used to be commit 874cb393666b950b379d07e6af5bcf41f2bf4746)
2007-10-10 14:49:01 -05:00
Andrew Tridgell
bedc59ca5c r21570: added a RPC-HANDLES test that tries to show that rpc policy handles
are not shared between connections. It tests three types of policy
handles, on lsa, samr and drsuapi. You need to run on ncacn_ip_tcp
with seal for drsuapi.

Metze, can you have a look and see how this tallies with what you've
seen?
(This used to be commit c1f41ac045f6023da06c3dbd0a37f39edd8a62f8)
2007-10-10 14:48:57 -05:00
Andrew Tridgell
b115da2230 r21208: fix a crash bug caused by r21205
please test patches, even if they look trivial!
(This used to be commit 8134a628f06f0df2ee94612854e0fb3e2efc2eb8)
2007-10-10 14:44:45 -05:00
Jelmer Vernooij
6d7039026c r21205: Fix warning.
Trivial patch from "Lunar Child <luch@etersoft.ru>"
(This used to be commit 1b75a9ff2d7f91f13fbdfd136b40eca14867bf6f)
2007-10-10 14:44:44 -05:00
Stefan Metzmacher
5cc44027dc r20145: fix whitespaces
metze
(This used to be commit d2d9842914bb049189f9349ff96b32c088cd02a8)
2007-10-10 14:29:15 -05:00
Andrew Tridgell
c24b7a045a r19549: fixed some indentation
(This used to be commit ea1e4685d914c09d615bb7c4a5678b5de00da5f4)
2007-10-10 14:24:48 -05:00
Jelmer Vernooij
8773e743c5 r19339: Merge my 4.0-unittest branch. This adds an API for more fine-grained
output in the testsuite rather than just True or False for a
set of tests.

The aim is to use this for:
 * known failure lists (run all tests and detect tests that
						started working or started failing). This
   would allow us to get rid of the RPC-SAMBA3-* tests
 * nicer torture output
 * simplification of the testsuite system
 * compatibility with other unit testing systems
 * easier usage of smbtorture (being able to run one test
						and automatically set up the environment for that)

This is still a work-in-progress; expect more updates over the next couple of
days.
(This used to be commit 0eb6097305776325c75081356309115f445a7218)
2007-10-10 14:21:12 -05:00
Volker Lendecke
518666fde1 r19293: Add RPC-SAMBA3-WINREG, the start of a test of what Samba3 is able to perform
right now.

Volker
(This used to be commit f381232c3ad032fcffb37d68d005e94cb2c95971)
2007-10-10 14:21:03 -05:00
Volker Lendecke
554972d1d2 r19247: Ok, figured out that wkssvc wksgetinfo also gives the server name. I thought I
had tested that w2k3 copies the input server name to output.

Volker
(This used to be commit b7e54501f773a11892ab5ef3202ee4d57723725e)
2007-10-10 14:20:57 -05:00
Volker Lendecke
2dc38416b6 r17205: Even if this makes me look foolish, at least start to scratch on the surface
of spoolss. If snum is to be removed, then we should make at least the attempt
to walk parts of the code before and after the changes.

This walks GetPrinterInfo level 0-7.

Volker
(This used to be commit 0c05f571a0eda2412896f340b7c751cf7cbdbd2a)
2007-10-10 14:10:18 -05:00
Volker Lendecke
7718ef4c66 r17187: Beginnings of a little lsa walker for Samba3, if only to prevent the
regression we had in 3.0.23...

Volker
(This used to be commit 0236f3b41a4f9015f8551ffb67db59fa48212bf5)
2007-10-10 14:10:17 -05:00
Volker Lendecke
152ea280f1 r17082: Add a test that walks and tests denying tconX access via the share security
descriptor. This is something that W2k3 does _not_ pass and probably is not
expected to, it seems the don't check access at tconX time.

Thanks to metze for the hint how in the srvsvc_NetShareInfo1501 struct the
length of the sd can be encoded in idl.

As metze says, there's probably more to the share secdesc, this needs more
testing. This one is here to walk the samba3 code.

Volker
(This used to be commit 67185508229a8d7f144c22cb194f573c932d6de5)
2007-10-10 14:10:11 -05:00
Volker Lendecke
41c571e659 r17064: lsa_GetUserName needs to return the name for S-1-5-7 on an anonymous login.
Found that because I want to play around with setsharesecurity, for this I
need the "whoami" call figuring out the SID of the currently connected user.

Not activating this test yet until the build farm has picked up the new samba4
revision.

Volker
(This used to be commit 5603db30e7dfbb3d5c4599d36a50007a2b3cac75)
2007-10-10 14:10:10 -05:00
Volker Lendecke
c7d7022e77 r16956: Walk some of the samba3 srvsvc code
(This used to be commit bd84fde777366899391d122e0aa5034ba0b80037)
2007-10-10 14:10:03 -05:00
Andrew Bartlett
ba968d6684 r16847: Add the parts of the SAMR test that pass back into 'make test'.
I still need to figure out what causes the rest to fail...

Andrew Bartlett
(This used to be commit aa34bd46cb1446b9fb6fd8f1b8ffca5f81b3c052)
2007-10-10 14:09:53 -05:00
Stefan Metzmacher
946e1c1b87 r16741: add a RPC-LSA-GETUSER test,
which is very useful for analysing a windows machine remotely

with this I found that vista-beta2 doesn't have an 'administrator' account
and mapps any not known user to MACHINENAME\Guest

metze
(This used to be commit 97ae93627527f65b6ecded9884a26d4cffa1409d)
2007-10-10 14:09:43 -05:00
Jelmer Vernooij
a3545383fb r16331: Split out registering of multi fn tests, fix typo in name of pac suite.
(This used to be commit 9e8574ac6cd38d1ff388f0c9ff37d86b316a431e)
2007-10-10 14:09:11 -05:00
Volker Lendecke
2a9982aa52 r16045: RPC-SAMBA3SESSIONKEY tests the different variants of joins (anon/auth smb,
anon/auth bind).

Jeremy, this is the little test I promised to you that shows the places where
we need the SystemLibraryDTC key.

Volker
(This used to be commit 9164c24d8741384ff5173fbf6cf3337f42d80e70)
2007-10-10 14:08:53 -05:00
Volker Lendecke
232db0b46d r16044: Create a samba3 specific file in torture/rpc. The tests in there survive
against W2k3, but they are designed to walk existing Samba3 code paths. It
might be possible that I add something like that to other subdirs like raw/.

RPC-BINDSAMBA3 excercises the bind variants that samba3 supports right now.

RPC-NETLOGSAMBA3 does a samba3 style join, does some schannel-protected
netlogon operations and leaves again. Samba3 right now does not survive this,
I'm about to fix it soon. I'll also post a *VERY* dirty hack (fake users in
sys_getpwnam()) to be able to run this in the build farm.

Volker
(This used to be commit 60b45bf8b6d0d2bb216e319891d50d0e07ab3010)
2007-10-10 14:08:53 -05:00
Volker Lendecke
53107aed4a r15912: Run an rpc request with an invalid uid and make sure NT_STATUS_INVALID_HANDLE
is returned.

Volker
(This used to be commit 0ef6ecda1dd009174c2c684a1dd3adabf4772daf)
2007-10-10 14:08:39 -05:00
Rafal Szczesniak
b369ffd1d5 r15394: Put initial code for testing async dcerpc binding. Currently
it only tests multiple simultaneous bind requests using transport
specified in command line. It will be interesting to use various
transports at the same time and test it agains windows servers...

rafal
(This used to be commit 7e4756116e59f9a0599a80fb5ac06118817f4326)
2007-10-10 14:05:32 -05:00
Stefan Metzmacher
1af925f394 r14860: create libcli/security/security.h
metze
(This used to be commit 9ec706238c173992dc938d537bdf1103bf519dbf)
2007-10-10 13:59:44 -05:00
Jelmer Vernooij
42da534d66 r14735: Use dcerpc_syntax_id rather then seperate GUID + if_version everywhere
(This used to be commit a316b33057f3ec8532677980e093cd327d33f257)
2007-10-10 13:59:17 -05:00
Rafal Szczesniak
c653dc2a6a r14667: Fix indentation.
rafal
(This used to be commit 634111bb127432904b80c27032c16e87df76c2b4)
2007-10-10 13:59:07 -05:00
Andrew Bartlett
2295953069 r14636: Print an error on torture connect failure. (Helps with debugging).
Andrew Bartlett
(This used to be commit 335bb7e6924d357e3dadf02f133a3037bebfe385)
2007-10-10 13:59:03 -05:00
Jelmer Vernooij
35349a58df r14542: Remove librpc, libndr and libnbt from includes.h
(This used to be commit 51b4270513752d2eafbe77f9de598de16ef84a1f)
2007-10-10 13:58:42 -05:00