Günther Deschner
cdf2f6b672
s4-smbtorture: w2k8r2 allows to add printers w/o defining printprocessor.
...
Guenther
2010-02-15 22:12:55 +01:00
Günther Deschner
72f250ac16
s4-smbtorture: add some security descriptor tests to RPC-SPOOLSS and RPC-SPOOLSS-PRINTER.
...
Guenther
2010-02-15 11:08:16 +01:00
Günther Deschner
f8778ba8f4
s4-smbtorture: use test_GetPrinter_level in RPC-SPOOLSS-NOTIFY.
...
Guenther
2010-02-10 01:00:25 +01:00
Günther Deschner
aa72950b3d
s4-smbtorture: skip over ValidatePassword if DCERPC error is returned.
...
Guenther
2010-02-08 14:31:16 +01:00
Matt Kraai
d8071e7ed7
Change uint_t to unsigned int in source4
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-02-02 07:18:18 +01:00
Günther Deschner
42f5125521
s4-smbtorture: check for RouterReplyPrinterEx packets inside backchannel in RPC-SPOOLSS-NOTIFY.
...
Guenther
2010-01-31 21:00:00 +01:00
Günther Deschner
0c6aae4d53
s4-smbtorture: also test RouterRefreshPrinterChangeNotify call in RPC-SPOOLSS-NOTIFY.
...
Guenther
2010-01-31 20:59:56 +01:00
Günther Deschner
377abba0e9
s4-smbtorture: rework spoolss_NotifyOption handling in RPC-SPOOLSS-NOTIFY.
...
Guenther
2010-01-31 20:49:53 +01:00
Günther Deschner
0e2d1cf9c4
s4-smbtorture: pick correct last packet while checking backchannel replies in RPC-SPOOLSS-NOTIFY.
...
Guenther
2010-01-27 15:04:00 +01:00
Michael Adam
098fc8c09c
s4:torture: refactor querying of domain info out into test_QueryDomainInfo2_level()
...
Used in several places.
(Note: The _level suffix in the function name is just because
test_QueryDomainInfo2() already exists as an overall test for all levels.)
Michael
Signed-off-by: Günther Deschner <gd@samba.org>
2010-01-27 11:24:42 +01:00
Michael Adam
0a33b20f70
s4:torture: create new test_SetDomainInfo_ntstatus()
...
for checking for SetDomainInfo giving a desired return code.
Michael
Signed-off-by: Günther Deschner <gd@samba.org>
2010-01-27 11:24:42 +01:00
Michael Adam
c1d157a481
s4:torture: refactor setting of domain inf out into test_SetDomainInfo()
...
and use it in several places.
Michael
Signed-off-by: Günther Deschner <gd@samba.org>
2010-01-27 11:24:42 +01:00
Michael Adam
50a46cff76
s4:torture: refactor setting account flags out into test_SetUserInfo_acct_flags()
...
and use this in four places (enabling/disabling accounts).
Michael
Signed-off-by: Günther Deschner <gd@samba.org>
2010-01-27 11:24:42 +01:00
Günther Deschner
5dfec4f36b
s4-smbtorture: split spoolss_RemoteFindFirstPrinterChangeNotifyEx test into smaller parts.
...
Guenther
2010-01-25 11:20:06 +01:00
Jelmer Vernooij
f679def4f2
s4: Fix a few warnings.
2010-01-21 16:15:11 +13:00
Michael Adam
9764db806f
torture: add new test RPC-SAMR-PASSWORDS-LOCKOUT
...
This tests account lockout features.
Windows 2003r2 and Windows 2008r2 survice this test.
Note: Windows does not set the ACB_AUTOLOCK account flag when it
locks out an account.
One thing that could/should be added to this test is a check of
the lockout time property.
Michael
2010-01-20 17:32:58 +01:00
Günther Deschner
f8314c27b3
s4-smbtorture: remove unneeded ncaclrpc dir setup from RPC-SPOOLSS-NOTIFY.
...
Guenther
2010-01-19 17:17:29 +01:00
Günther Deschner
f5bba4034b
s4-smbtorture: support spoolss_ReplyClosePrinter server call in RPC-SPOOLSS-NOTIFY.
...
A handle obtained with spoolss_ReplyOpenPrinter will be closed with
spoolss_ReplyClosePrinter when we call spoolss_ClosePrinter on the remote side.
Guenther
2010-01-19 14:14:30 +01:00
Günther Deschner
2b68215a22
s4-smbtorture: restructure spoolss server implementations in RPC-SPOOLSS-NOTIFY.
...
Guenther
2010-01-19 14:14:30 +01:00
Günther Deschner
e0660ed1bc
s4-smbtorture: skip ReplyOpenPrinter test in RPC-SPOOLSS-NOTIFY while testing s3.
...
Guenther
2010-01-19 14:14:30 +01:00
Günther Deschner
7d1c1e0083
s4-smbtorture: strip trailing whitespace.
...
Guenther
2010-01-19 14:14:30 +01:00
Andrew Tridgell
f461a72ec3
idl: switched to using the WSPP names for the 'neighbour' DRS options
...
The documentation shows that all these functions in fact use the same
flags variable type. To be consistent between functions, and to allow
easy reference to the WSPP docs, it is better for us to also use this
generic DrsOptions bitfield rather than one per operations.
2010-01-18 07:25:18 +11:00
Andrew Tridgell
4e0090c917
s4-torture: fixed DsReplicaGetInfo elements
2010-01-16 14:45:33 +11:00
Andrew Tridgell
93531a52f0
s4-idl: in DsReplicaGetInfo unknown2 is actually an enumeration_context
2010-01-16 14:10:44 +11:00
Erick Nogueira do Nascimento
48bdf3e608
s4-drs: torture test for DsGetReplInfo() (RPC-DSGETINFO test).
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-01-16 14:10:41 +11:00
Günther Deschner
9d881f4cfb
s4-smbtorture: add setup_schannel_netlogon_pipe() function.
...
Guenther
2010-01-15 00:53:16 +01:00
Andrew Tridgell
74a5719614
s4-torture: switch smbtorture to the generic DRS options
2010-01-14 15:37:59 +11:00
Günther Deschner
13dad38930
s4-smbtorture: fix GetAliasMembership test in RPC-SAMR.
...
Guenther
2010-01-12 12:12:05 +01:00
Günther Deschner
a744dbcf2b
s4-smbtorture: add RPC-SAMR-PASSWORDS-BADPWDCOUNT torture test.
...
This test checks the behavior (since w2k3 sp1) of the badPwdCount samr attribute
in relation to password history and successfull and unsucessful netlogon
samlogons.
Michael, please check. This should help verifiying Bug #4347 .
Guenther
2010-01-12 12:09:47 +01:00
Günther Deschner
c9e84ad397
s4-smbtorture: allow test_SamLogon to test interactive samlogon in RPC-SAMR family of tests.
...
Guenther
2010-01-12 12:09:25 +01:00
Günther Deschner
3dbe8603d9
s4-smbtorture: add test_ChangeID to RPC-SPOOLSS.
...
This tests ChangeID consistency between spoolss_GetPrinterData,
spoolss_GetPrinterDataEx and spoolss_GetPrinter (level 0).
Guenther
2010-01-06 22:09:37 +01:00
Günther Deschner
7568f49134
s4-smbtorture: add test_SetPrinter to RPC-SPOOLSS.
...
Guenther
2010-01-06 22:09:36 +01:00
Günther Deschner
0457cf915b
s4-smbtorture: refactor test_GetPrinter in RPC-SPOOLSS.
...
Guenther
2010-01-06 22:09:36 +01:00
Günther Deschner
dc4c411242
s4-smbtorture: skip GetAliasMembership against s4.
...
It returns NT_STATUS_INTERNAL_DB_CORRUPTION for unknown sids and I could not
figure out why.
Guenther
2009-12-17 18:05:36 +01:00
Günther Deschner
619ad0c6ec
s4-smbtorture: add a samr_GetAliasMembership test to RPC-SAMR.
...
Guenther
2009-12-17 15:40:42 +01:00
Günther Deschner
a9689bb755
s4-smbtorture: fix smbtorture after setprinter IDL fixes.
...
Guenther
2009-12-17 10:43:32 +01:00
Günther Deschner
308b50a7bb
s4-smbtorture: run GetPrinterDriver2 tests against each printer's driver.
...
Guenther
2009-12-16 01:13:43 +01:00
Volker Lendecke
4a19adadcc
smbtorture4: Add rpc-samba3-getaliasmembership-0
2009-12-15 12:28:16 -08:00
Günther Deschner
801fbd0569
s4-smbtorture: check whether a returned buffer size is a multiple of 4 in RPC-SPOOLSS.
...
This gives a good indication where our IDL (and the s3 spoolss implementation) is still wrong.
Guenther
2009-12-14 10:37:41 +01:00
Günther Deschner
ce33967f4a
s4-smbtorture: fix and extend enum printerkey test.
...
Guenther
2009-12-10 17:48:50 +01:00
Günther Deschner
d2f13dd688
s4-smbtorture: enhance spoolss_EnumPrinterKey torture test.
...
This demonstrates that s3 still does not have that call implemented correctly.
Guenther
2009-12-09 15:34:45 +01:00
Günther Deschner
5e8e5dfe88
s4-smbtorture: make level 8 the reference for PrinterDriverEnum test.
...
Guenther
2009-12-08 11:51:09 +01:00
Günther Deschner
35c067782b
s4-smbtorture: fill in COMPARE_STRING_ARRAY macro in spoolss driver test.
...
Guenther
2009-12-08 10:37:13 +01:00
Günther Deschner
8de6f7178c
s4-smbtorture: disable some spoolss printerdata tests which s3 does not pass at the moment.
...
Guenther
2009-12-07 14:42:13 +01:00
Günther Deschner
123d8d1c2c
s4-smbtorture: fix RPC-SPOOLSS after _spoolss_SetPrinterDataEx IDL change.
...
Guenther
2009-12-07 14:42:13 +01:00
Günther Deschner
02fe863039
s4-smbtorture: heavily expand printerdata tests in RPC-SPOOLSS.
...
Including new tests for:
- spoolss_SetPrinterDataEx
- spoolss_DeletePrinterDataEx
- spoolss_DeletePrinterKey
Guenther
2009-12-04 12:55:52 +01:00
Günther Deschner
2f0548fd98
s4-smbtorture: check more WERRORs in RPC-SPOOLSS.
...
Guenther
2009-12-03 23:48:59 +01:00
Günther Deschner
4e20a6f83b
s4-smbtorture: call test_EnumPrinterDrivers with architecture in RPC-SPOOLSS.
...
Guenther
2009-12-03 22:16:24 +01:00
Günther Deschner
450211b610
s4-smbtorture: be very strict in checking spools_EnumPrinterKey results.
...
Guenther
2009-12-03 01:04:02 +01:00
Günther Deschner
5f60855ba2
samba-spoolss: use spoolss_StringArray2 in spoolss_EnumPrinterKey.
...
This should finally resolve the endian issues we were seeing on sparc and is
much cleaner for spoolss clients and servers.
Guenther
2009-12-02 14:56:17 +01:00
Günther Deschner
8f6df5d3ec
s4-smbtorture: more and stricter tests for printer and data keys in RPC-SPOOLSS.
...
Guenther
2009-11-27 23:16:21 +01:00
Günther Deschner
60419a0eb7
s4-smbtorture: refactor RPC-SAMR-LARGE-DC test a little more.
...
Guenther
2009-11-26 01:45:35 +01:00
Günther Deschner
d22eb75a13
s4-smbtorture: add torture_samr_context to carry some RPC-SAMR-X specifics.
...
Guenther
2009-11-26 01:45:35 +01:00
Kamen Mazdrashki
65e95b8aa9
s4/drs(tort): DSSYNC test to print what is different in drs_msg also
2009-11-23 14:15:05 +01:00
Günther Deschner
0608d6b125
s4-smbtorture: fix spoolss_EnumPrinterKey client in RPC-SPOOLSS-WIN.
...
Guenther
2009-11-23 13:35:32 +01:00
Günther Deschner
d66b7d80d5
s4-smbtorture: add tests for spoolss_EnumPrinterKey to RPC-SPOOLSS-PRINTER.
...
Guenther
2009-11-23 12:17:54 +01:00
Matthias Dieter Wallnöfer
28423114ec
s4:torture/rpc/netlogon - Fix uninitialised variable
2009-11-21 17:37:39 +01:00
Kamen Mazdrashki
b9e262c512
s4/drs(tort): Convert DSSYNC test to a test case fixture
...
Now it should be much more clear why and where a test
in DSSYNC test case has failed.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-11-17 10:47:16 +11:00
Kamen Mazdrashki
442cded430
s4/drs(tort): replace DEBUG with torture_asert/comment/fail
...
I left dumping of decrypted attributes values 'as is'
(using DEBUG and DEBUGADD) as it uses dump_data() function.
dump_data() uses DEBUGADD internally, so I have no way
to redirect its output to torture_context at this point.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-11-17 10:47:05 +11:00
Kamen Mazdrashki
aaff29f5b4
s4/drs(tort): use torture_drsuapi_assert_call() macro for error checking
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-11-17 10:46:59 +11:00
Kamen Mazdrashki
673049142b
s4/drs(tort): replace 'printf' with 'torture_...' calls
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-11-17 10:46:48 +11:00
Kamen Mazdrashki
9e4beef614
s4/drs(tort): 'DsSyncBindInfo.pipe' renamed - 'pipe' is a system call
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-11-17 10:46:42 +11:00
Kamen Mazdrashki
b0de573629
s4/drs(tort): 'DsPrivate.pipe' renamed - 'pipe' is a system call
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-11-17 10:46:28 +11:00
Andrew Bartlett
b13518e4e8
s4:dsdb With these workarounds, we now pass the RPC-DSSYNC test
2009-11-17 10:38:09 +11:00
Andrew Bartlett
95a12cdf21
s4:torture Use (some) torture_assert() calls in RPC-DSSYNC test
2009-11-12 16:34:23 +11:00
Andrew Bartlett
06b234e811
s4:torture Remove _drs_util_verify_attids() from RPC-DSSYNC
...
I'm satisfied that the task this test does is already done by the time
we map the incoming schema, and process the objects. If we have the
OID mapping wrong or incomplete, we will get any errors this test
found errors there.
(And this dramaticly reduces the test time, so we can now add
RPC-DSSYNC to 'make test').
Andrew Bartlett
2009-11-12 16:34:18 +11:00
Andrew Bartlett
6d1e60987b
s4:torture/dsdb Add verification of the push-to-LDB functions in RPC-DSSYNC
...
This is done by comparing the values against the remote host's LDAP
server.
Andrew Bartlett
2009-11-12 16:34:17 +11:00
Andrew Bartlett
87e984f0bd
s4:torture Convert RPC-DSSYNC test to use LDB rather than raw LDAP
...
(This should make it easier to do more 'compare DRS with LDAP'
operations, as LDB is an easier interface to program.)
Andrew Bartlett
2009-11-12 16:34:13 +11:00
Andrew Bartlett
fd5174e88c
lib/util Split data_blob_hex_string() into upper and lower
...
Rather than have a repeat of the bugs we found at the plugfest where
hexidecimal strings must be in upper or lower case in particular
places, ensure that each caller chooses which case they want.
This reverts most of the callers back to upper case, as things were
before tridge's patch. The critical call in the extended DN code is
of course handled in lower case.
Andrew Bartlett
2009-11-12 16:34:01 +11:00
Günther Deschner
9599d142c0
s4-smbtorture: strip trailing whitespace in RPC-SAMR.
...
Guenther
2009-11-10 13:08:28 +01:00
Günther Deschner
e9c6984cb6
s4-smbtorture: re-arrange netlogon LogonControl test.
...
The LogonControl tests now are split out to a new RPC-NETLOGON-ADMIN test that
tests the behaviour of that call when called by user, dc or workstation.
Guenther
2009-11-09 17:36:53 +01:00
Matthias Dieter Wallnöfer
17d6506c9e
s4:torture/samr - Add status code on "ValidatePassword" test output
2009-11-06 15:19:39 +01:00
Matthias Dieter Wallnöfer
9f481664fb
s4:torture/samr - Activate "ValidatePassword" test per default
2009-11-06 15:19:39 +01:00
Matthias Dieter Wallnöfer
1685ee3ee7
s4:torture/rpc/samr - Add a comment for "ValidatePassword" test
2009-11-05 12:43:03 +01:00
Günther Deschner
a8de4f091e
s4-smbtorture: skip three info levels while testing s3 with RPC-LSA.
...
These are only supported by s3 when running pdb_ads atm.
Guenther
2009-11-03 22:18:09 +01:00
Günther Deschner
58d401bb21
s4-smbtorture: skip QueryInfoPolicy2 while running RPC-LSA against s3.
...
This is only supported by s3 when running pdb_ads atm.
Guenther
2009-11-03 22:17:05 +01:00
Günther Deschner
bff9819521
s4-smbtorture: skip QueryDomainInformationPolicy test against s3 in RPC-LSA.
...
Guenther
2009-11-03 22:13:28 +01:00
Günther Deschner
074ad24653
s4-smbtorture: simplify some torture_comments in RPC-LSA.
...
Guenther
2009-11-03 22:10:31 +01:00
Günther Deschner
3587bb63e2
s4-smbtorture: skip bigendian tests against s3 in RPC-LSA-SECRETS.
...
Guenther
2009-10-30 12:28:49 +01:00
Günther Deschner
5e8c86c558
s4-smbtorture: fix warning in RPC-WKSSVC torture test.
...
Guenther
2009-10-30 12:28:47 +01:00
Andrew Tridgell
4ad0397d8a
s4-ldbwrap: added re-use of ldb contexts in ldb_wrap_connect()
...
This allows us to reuse a ldb context if it is open twice, instead
of going through the expensive process of a full ldb open. We can
reuse it if all of the parameters are the same.
The change relies on callers using talloc_unlink() or free of a parent
to close a ldb context.
2009-10-23 14:52:17 +11:00
Günther Deschner
48520b2274
s4-smbtorture: test whether an lsa_EnumTrustDom implementation would hang up a client.
...
Guenther
2009-10-21 03:13:24 +02:00
Günther Deschner
a4d5487576
s4-smbtorture: fix RPC-LSA-LSALOOKUP test against w2k3 and w2k8.
...
Make sure to split out lsa_LookupName NULL name test so that we can better track
results from bogus names and NULL names.
Guenther
2009-10-20 23:57:58 +02:00
Günther Deschner
9ee5d84665
s4-smbtorture: Make it simpler to specify number of trusted domains to create in
...
RPC-LSA-TRUSTED-DOMAINS.
Guenther
2009-10-20 21:49:38 +02:00
Günther Deschner
7e180101d3
s4-smbtorture: Fix wrong comment in RPC-LSA-TRUSTED-DOMAIN test.
...
Guenther
2009-10-20 15:30:19 +02:00
Günther Deschner
bf2746b537
s4-smbtorture: split out EnumTrustedDomainsEx test in RPC-LSA-TRUSTED-DOMAINS.
...
Guenther
2009-10-20 15:30:12 +02:00
Günther Deschner
d76e77ce9a
s4-smbtorture: add stricter tests for LSA-LOOKUPNAMES replies.
...
Guenther
2009-10-20 15:28:30 +02:00
Günther Deschner
80b512fe03
s4-smbtorture: move all LookupNames tests into RPC-LSA-LOOKUPNAMES.
...
Guenther
2009-10-20 15:28:30 +02:00
Andrew Tridgell
2c34112e58
s4-torture: fixed a pipe leak
...
The RPC-SAMR-PASSWORDS* tests could leak RPC pipes, causing an
overallocation of fd's on the server
2009-10-20 16:34:42 +11:00
Andrew Tridgell
84d0047377
s4-torture: ran minimal_includes.pl over source4/torture
...
This reduces compile time somewhat.
2009-10-20 16:04:46 +11:00
Andrew Tridgell
2ff2c421d0
s4-torture: fixed a fd/mem leak in the RPC-LSA-SECRETS test
...
This test left a large number of lsa pipes open, which could trigger
the server running out of fds
2009-10-20 14:27:57 +11:00
Karolin Seeger
b7b548411c
s4:test: Fix typo.
...
Karolin
2009-10-19 10:40:15 +02:00
Karolin Seeger
fa08d0b44b
Fix typo.
...
privilage -> privilege
Karolin
2009-10-19 09:47:33 +02:00
Günther Deschner
22276961c3
s4-smbtorture: extend netr_LogonControl test in RPC-NETLOGON.
...
Guenther
2009-10-16 14:54:58 +02:00
Kamen Mazdrashki
1d3342e9fa
s4/drs(tort): _drs_util_verify_attids() to verify ATTIDs in objects received
2009-10-16 12:54:14 +03:00
Kamen Mazdrashki
8631548f12
s4/drs(tort): _drs_ldap_attr_by_oid() implementation
...
Utility function to be used to fetch Attribute name and DN
giving attribute OID
2009-10-16 12:54:14 +03:00
Matthias Dieter Wallnöfer
e9686985cb
s4: Changes the old occurences of "lp_realm" in "lp_dnsdomain" where needed
...
For KERBEROS applications the realm should be upcase (function "lp_realm") but
for DNS ones it should be used lowcase (function "lp_dnsdomain"). This patch
implements the use of both in the right way.
2009-10-14 10:50:43 +02:00
Matthias Dieter Wallnöfer
607ceff234
s3/s4 - Adapt the IDL changes on various locations
2009-10-08 09:50:19 +02:00
Andrew Tridgell
8dedceaff9
torture: disable the ValidatePassword test
...
This test causes problems on non-sealed connections against windows
2009-10-07 10:55:35 +11:00
Andrew Tridgell
d31fa07fde
s4-torture: removed an accidental commit of a local test hack
...
Sorry about that ....
2009-10-07 10:05:26 +11:00
Matthias Dieter Wallnöfer
44df2488e3
s4: fix various warnings (not "const" related ones)
2009-10-02 15:33:48 +02:00
Andrew Tridgell
7bdb4306b0
s4-torture: added a very simple samr ValidatePassword test
2009-10-02 16:03:02 +10:00
Kamen Mazdrashki
98245727c9
s4-tort-drs: Add bind_info for dcerpc_drsuapi_DsBind() call
...
After this patch DsGetNCChanges() test works fine.
bind_info returned by server is also cached for future use
Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
2009-10-01 11:29:23 +03:00
Kamen Mazdrashki
d60e3ac8d3
s4-tort-drs: DsReplicaUpdateRefs test fixed and extended
...
Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
2009-10-01 11:29:22 +03:00
Kamen Mazdrashki
b49249864a
s4-tort: Added assertion macro for DRSUAPI call
...
Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
2009-10-01 11:29:22 +03:00
Andrew Tridgell
430ee62e0c
s4-torture: add some debug info to RPC-HANDLES
2009-09-22 17:10:05 -07:00
Stefan Metzmacher
f0704f5abc
s4:torture: the spoolss notify test should listen on the ncacn_np endpoint
...
metze
2009-09-18 20:34:43 +02:00
Stefan Metzmacher
3207188287
s4:torture: don't use 'pipe' as variable name it's a system call
...
metze
2009-09-18 20:34:39 +02:00
Günther Deschner
1d4bf02993
lsa: fill in more unknowns in lsa_LookupSid calls.
...
Guenther
2009-09-11 13:59:56 +02:00
Kamen Mazdrashki
bb6fda8a9a
s4/tort: RPC-DRSUAPI test case refactored to match torture architecture
2009-09-11 11:53:18 +10:00
Kamen Mazdrashki
b24203fcb8
s4/tort: code clean up using torture_drsuapi_assert_call() macro
...
After this change, when a test fails, it gives
reasonable failure message.
2009-09-11 11:53:18 +10:00
Kamen Mazdrashki
5088caa69e
s4/tort: assert macro for drsuapi dcerpc call
...
The macro actually wraps common code pattern used in
almost every test for DRSUAPI interface
2009-09-11 11:53:17 +10:00
Kamen Mazdrashki
a03e0c478d
s4/tort: Propagate torture_context and use torture_comment
...
NOTE: Not every place where printf is used is replaced by
torture_comment. Future work shall "missed" printfs also.
2009-09-11 11:53:17 +10:00
Kamen Mazdrashki
0c8eee9711
s4/tort: CRACKNAMES tests to use private structure for testing.
...
DsCrackNamesPrivate structure basically inherits DsPrivate
structure while adding few test-specific members.
2009-09-11 07:29:56 +10:00
Kamen Mazdrashki
bebeb4ff70
s4/tort: Make common setup/teardown drsuapi test funcs really common
2009-09-11 07:29:56 +10:00
Kamen Mazdrashki
ebfc13b452
s4/tort: CrackNames test update to work against W2K3.
...
DRSUAPI_DS_NAME_FORMAT_UKNOWN added to 'known-to-fail'
responses as this actually means to ask AD to resolve
a name from FQDN format to Unknown format.
2009-09-11 07:29:55 +10:00
Andrew Tridgell
27beb7fc7e
s4/torture: fixed lots of crash bugs in the DRS tests
2009-09-10 22:59:15 +10:00
Kamen Mazdrashki
2904034410
tort: RPC-CRACKNAMES test case refactored
2009-09-08 22:44:50 +10:00
Kamen Mazdrashki
899fc0ddde
tort: DsCrackNames - propagate torture context to all tests.
2009-09-08 22:44:49 +10:00
Kamen Mazdrashki
d078d2efe8
tort: Helper function to get DC info for testing
2009-09-08 22:44:49 +10:00
Kamen Mazdrashki
5e3759d122
tort: Implement 'setup' and 'teardown' for DRSUAPI test cases.
2009-09-08 22:44:48 +10:00
Matthias Dieter Wallnöfer
65541baf4b
s4:torture - Fix uninitialized variable
2009-09-06 12:31:37 +02:00
Günther Deschner
9bf74d0ed9
s4-smbtorture: test netr_ServerSetPassword2 against Samba3.
...
Guenther
2009-09-02 10:47:36 +02:00
Günther Deschner
3f0c8772f1
s4-smbtorture: do not hard code BDC secure channel type into RPC-NETLOGON tests.
...
Guenther
2009-08-27 13:41:50 +02:00
Günther Deschner
d368c73f95
s4-smbtorture: add test_SetPassword_flags to RPC-NETLOGON-S3 testsuite.
...
Guenther
2009-08-27 13:41:02 +02:00
Günther Deschner
46184692ad
s4-smbtorture: add RPC-NETLOGON-S3 to test samba3 netlogon server.
...
Guenther
2009-08-26 23:04:18 +02:00
Andrew Bartlett
f050c500f1
s4:torture Make RPC-NETLOGON pass against ncaclrpc servers
...
The original patch didn't cope with a NULL target server name - we now key off that to decide it isn't worth checking against LDAP for this host.
I still can't get this to pass against Windows 2008, but mdw was
testing against Windows 2008R2. at least 'make test' is happy, and
the rest should not be too hard...
Andrew Bartlett
2009-08-04 18:24:37 +10:00
Matthias Dieter Wallnöfer
64b4d02032
s4: Change constant to comply with the merged build
2009-08-03 14:23:23 +02:00
Matthias Dieter Wallnöfer
720b7ea0ee
s4: Torture test for enhancements in "netr_LogonGetDomainInformations" call
...
This corrects and enhances the torture test of the mentioned call.
2009-08-03 09:46:30 +02:00
Stefan Metzmacher
1436256613
frsapi.idl: fix some unknown field names
...
metze
2009-07-21 19:11:21 +02:00
Jelmer Vernooij
de2a9fb607
Remove unused variable.
2009-07-19 17:17:23 +02:00
Günther Deschner
2e77debc99
Revert "fix LSA-PRIVILEGES"
...
This reverts commit 0d9fdbceed
.
2009-07-17 00:13:54 +02:00
Günther Deschner
106d43a1dd
Revert "fix LSA-TRUSTED-DOMAINS"
...
This reverts commit 3c9b262760
.
2009-07-17 00:13:46 +02:00
Günther Deschner
8d68d04258
s4-smbtorture: use secinfo flags instead of numbers in lsa test.
...
Guenther
2009-07-17 00:13:40 +02:00
Günther Deschner
8cac8fd5d6
s4-smbtorture: use torture_comment in RPC-LSA tests.
...
Guenther
2009-07-16 11:13:26 +02:00
Günther Deschner
0d9fdbceed
fix LSA-PRIVILEGES
2009-07-16 11:07:14 +02:00
Günther Deschner
3c9b262760
fix LSA-TRUSTED-DOMAINS
2009-07-16 11:07:06 +02:00
Günther Deschner
47eb061b53
s4-smbtorture: move all privilege tests to RPC-LSA-PRIVILEGES.
...
Guenther
2009-07-16 10:03:12 +02:00
Günther Deschner
29c3a277e1
s4-smbtorture: move all trusted domain tests to RPC-LSA-TRUSTED-DOMAINS.
...
Guenther
2009-07-16 10:03:12 +02:00
Günther Deschner
c3f461c35f
s4-smbtorture: some work on getprinterdriver and getprinterdriver2 tests.
...
Guenther
2009-07-16 03:05:44 +02:00
Günther Deschner
b6fb8cf5f3
s4-smbtorture: add RPC-SPOOLSS-PRINTER test.
...
Guenther
2009-07-14 23:03:58 +02:00
Günther Deschner
3a367ab10d
s4-smbtorture: add some tests to check spoolss_SetPrinter behavior.
...
Guenther
2009-07-14 22:59:45 +02:00
Günther Deschner
b0cce950ba
s4-smbtorture: restructure test_OpenPrinter_server in RPC-SPOOLSS a bit.
...
Guenther
2009-07-14 22:58:55 +02:00
Günther Deschner
f729abaa94
s4-smbtorture: fix getjob test in RPC-SPOOLSS.
...
Guenther
2009-07-02 22:00:41 +02:00
Günther Deschner
e7d72b585a
s4-smbtorture: Test for newly added form with enum call in RPC-SPOOLSS.
...
Guenther
2009-06-30 13:34:41 +02:00
Günther Deschner
66780e016b
s4-smbtorture: remove trailing whitespace from RPC-SPOOLSS.
...
Guenther
2009-06-30 11:38:41 +02:00
Günther Deschner
0b2b9fdeda
s4-smbtorture: use torture_comment & torture_warning in RPC samr tests.
...
Guenther
2009-06-29 23:47:47 +02:00
Günther Deschner
772d5dea30
s4-smbtorture: correctly test comment behaviour in RPC-SAMR-USERS against s3.
...
Guenther
2009-06-29 22:36:12 +02:00
Günther Deschner
50bb4bcc5b
s4-smbtorture: add RPC-SAMR-MACHINE-AUTH test.
...
This test talks to a DC as a joined workstation member - in the same way
winbindd does, in particular the calls used in this test's query pattern
will all request for SEC_FLAG_MAXIMUM_ALLOWED access_mask
(which pretty much all of samba's client code does as well).
In fact this test verifies that winbind can correctly talk to a samba dc using
samr dcerpc calls.
Guenther
2009-06-29 14:40:08 +02:00
Günther Deschner
ec5c83c0db
s4-smbtorture: add torture_suite_add_machine_workstation_rpc_iface_tcase.
...
Unlike torture_suite_add_machine_bdc_rpc_iface_tcase() which joins as a BDC
(ACB_SRVTRUST) this joins as a member workstation (ACB_WSTRUST).
Guenther
2009-06-29 12:43:32 +02:00
Matthias Dieter Wallnöfer
bc7b608625
Fixes for SAMBA3RPC torture test
...
On calls where both NT_STATUS and WERROR results are returned and consulted
we have to make sure to form function results considering both.
This errors have been found through a run against SAMBA 4.
2009-06-29 13:39:33 +10:00
Günther Deschner
46167c1d1b
s4-smbtorture: more paranoid checks while testing group membership in RPC-SAMR.
...
Guenther
2009-06-24 00:37:51 +02:00
Günther Deschner
e6cb82a7da
s4-smbtorture: fix test_GetInfoLevel crash bug in RPC-DFS.
...
Guenther
2009-06-19 11:14:51 +02:00
Matthias Dieter Wallnöfer
efe6552f0c
NETLOGON pipe improvements
...
Patch for bug #4939
This refactors the NETLOGON code related to this bug:
- Introduces a new "SYNCSTATE" enum required by the "DatabaseSync2" call (acc.
to WSPP)
- Make "DatabaseSync" dependant from "DatabaseSync2" (acc. to WSPP)
- Let "DatabaseSync2" return NT_STATUS_NOT_IMPLEMENTED (I'm not sure if this is
also true when a domain is running in mixed mode)
- Make "LogonControl" and "LogonControl2" dependant form "LogonControl2Ex"
(acc. to WSPP)
- Let "LogonControl2Ex" return WERR_NOT_SUPPORTED for now
2009-06-18 13:49:25 +10:00
Günther Deschner
bdd214b38c
s4-smbtorture: use torture_comment in RPC-SAMR-USERS-PRIVILEGES test.
...
Guenther
2009-06-17 01:29:22 +02:00
Günther Deschner
b5ca5412d8
s4-smbtorture: rename SECRETS to LSA-SECRETS.
...
Guenther
2009-06-09 14:09:23 +02:00
Günther Deschner
bf7c814694
s4-smbtorture: when testing RPC-SAMR-LARGE-DC its fine to just close the objects.
...
Guenther
2009-06-08 22:45:16 +02:00
Günther Deschner
80d0a12fb7
s4-smbtorture: add test_QueryDisplayInfo_level to RPC-SAMR-LARGE-DC.
...
Guenther
2009-06-08 22:45:16 +02:00
Günther Deschner
d11d4382b9
s4-smbtorture: also test for "all" architecture in enum driver tests in RPC-SPOOLSS.
...
Guenther
2009-06-08 21:24:31 +02:00
Günther Deschner
963efb5542
s4-smbtorture: fix test_ReportEventLog in RPC-EVENTLOG.
...
Guenther
2009-06-08 19:56:59 +02:00
Günther Deschner
9e4b510504
s4-smbtorture: exclude oem_information checking for s3 in RPC-SAMR.
...
Guenther
2009-06-08 10:45:11 +02:00
Günther Deschner
0845db66e0
s4-smbtorture: skip samr MultipleMember alias tests for 3 as well as we do already for s4.
...
Guenther
2009-06-07 00:54:57 +02:00
Günther Deschner
abbcd574db
s4-smbtorture: fix comment in RPC-SAMR-LARGE-DC test.
...
Andrew, I think you wanted to print this instead.
Guenther
2009-06-04 21:18:14 +02:00
Andrew Bartlett
a12b8571fe
s4:torture Cut the RPC-SAMR-LARGE-DC test down to size
...
This removes the validation of the estimated number of accounts,
because MS-SAMR 3.1.5.5.1.1 makes clear the number returned cannot be
relied apon.
I've also converted a bit more of the test to use torture_assert(),
and where that is impractical, to print error messages when things
fail.
Andrew Bartlett
2009-06-04 18:12:59 +10:00
Björn Jacke
b3491df2f9
s3:torture: fix password timestamp checks on NetBSD
...
The Open Group says:
"The useconds argument [of usleep] must be less than 1,000,000."
NetBSD takes this seriously. usleep of more than 999999 are effectless.
2009-06-03 17:50:01 +02:00
Günther Deschner
12496ea5ab
s4-smbtorture: remove trailing whitespace.
...
Guenther
2009-05-29 13:18:23 +02:00
Günther Deschner
059401e457
s4-smbtorture: Fix test_SamLogon() for netlogon servers not yet supporting
...
validation level 6.
Guenther
2009-05-29 13:17:53 +02:00
Andrew Bartlett
227553f904
Win2k3 don't allow creating of domain trust accounts over SAMR
2009-05-29 17:12:06 +10:00
Andrew Bartlett
b83f84c8c3
s4:torture Don't try to Close a Deleted handle
2009-05-29 17:02:19 +10:00
Andrew Bartlett
a2e72ac556
s4:torture Don't run QueryDisplayInfo test for SAMR-USERS-PRIVILEGES
2009-05-29 11:56:29 +10:00
Andrew Bartlett
a3f619f9d9
s4:torture Clean up users and groups added in RPC-SAMR-LARGE-DC
2009-05-29 11:56:27 +10:00
Andrew Bartlett
98ff29291b
s4:torture Half the repeditive tests run by RPC-SAMR-PASSWORDS-PWDLASTSET
2009-05-29 11:56:27 +10:00
Andrew Bartlett
37e09f26dc
s4:torture Make the RPC-SAMR-PWDLASTET more efficient
...
By using SamLogonEx we avoid setting up the credentials chain for each
request.
(Needs to be pushed further up the stack, to only connect to NETLOGON once).
Andrew Bartlett
2009-05-29 11:56:24 +10:00
Günther Deschner
eb5e8dc82e
s4-smbtorture: add RPC-SAMR-LARGE-DC test.
...
This rather simple test creates 4500 objects on a domain controller and checks
the enum calls for the correct number of results.
Guenther
2009-05-25 13:56:54 +02:00
Günther Deschner
a75698bdf3
s4-smbtorture: rename test_EnumDomain{Users,Groups,Aliases} in RPC-SAMR.
...
Guenther
2009-05-25 13:56:54 +02:00
Günther Deschner
05e6ebb7f8
s4-smbtorture: re-work test_Create{User,Group,Alias} a little.
...
Guenther
2009-05-25 13:56:29 +02:00
Tim Prouty
d38e5d18a7
s4 torture: Fix typo
2009-05-18 18:31:46 -07:00
Günther Deschner
5186661023
s4-smbtorture: Fix build warning in RPC-SAMR tests.
...
Guenther
2009-05-19 02:05:25 +02:00
Günther Deschner
0a9049be87
s4-smbtorture: add RPC-SAMR-USERS-PRIVILEGES test.
...
This test demonstrates the independence of the lsa and samr accounts while
remove a samr users that still has privileges granted.
Guenther
2009-05-18 22:54:14 +02:00
Günther Deschner
675e52cde7
s4-smbtorture: split RPC-SAMR-ACCESSMASK into several tests.
...
Guenther
2009-05-13 15:19:40 +02:00
Günther Deschner
2abdfab613
s4-smbtorture: cosmetic cleanup for RPC-SAMR-ACCESSMASK.
...
Guenther
2009-05-13 15:19:40 +02:00
Günther Deschner
54d925a304
s4-smbtorture: skip SetMemberAttributesOfGroup in RPC-SAMR for s3 as well.
...
Guenther
2009-05-12 00:27:24 +02:00
Günther Deschner
59cb8fd58d
s4-smbtorture: Skip secdesc set calls for non-user objects in RPC-SAMR for Samba3.
...
Note that they are skipped for all objects while testing Samba4.
Guenther
2009-05-12 00:27:23 +02:00
Günther Deschner
1fb9b65921
s4-smbtorture: Fix order of assert args in test_TestPrivateFunctionsDomain() in RPC-SAMR.
...
Guenther
2009-05-12 00:27:23 +02:00
Günther Deschner
ff7ebdf317
s4-smbtorture: switch to use torture_context in RPC-SAMR.
...
Guenther
2009-05-12 00:27:23 +02:00
Günther Deschner
0f88b3cc94
s4-smbtorture: remove trailing whitespace in RPC-SAMR.
...
Guenther
2009-05-12 00:27:23 +02:00
Günther Deschner
5f015920a8
s4-smbtorture: add very basic RPC-LSA-LOOKUPNAMES test.
...
Guenther
2009-05-11 16:44:39 +02:00
Günther Deschner
7347373e7c
s4-smbtorture: add optional very simple reply checks to lsa lookup name tests.
...
Guenther
2009-05-11 16:44:39 +02:00
Günther Deschner
7672a033ef
s4-smbtorture: remove trailing whitespace in RPC-LSA test.
...
Guenther
2009-05-11 15:06:20 +02:00
Günther Deschner
410f17cdeb
s4-smbtorture: use struct torture_context in RPC-LSA.
...
Guenther
2009-05-11 15:06:16 +02:00
Günther Deschner
a3873bca51
s4-smbtorture: avoid secdesc test on connect handle in RPC-SAMR-USERS for Samba3.
...
With this, I think, we pass RPC-SAMR-USERS.
Guenther
2009-05-09 00:51:04 +02:00
Günther Deschner
4f3bfb6261
s4-smbtorture: skip unsupported ACB bits for Samba3 in RPC-SAMR-USER.
...
Guenther
2009-05-08 22:21:41 +02:00
Günther Deschner
67df4489e2
s4-smbtorture: Support timestamp handling for Samba3 in RPC-SAMR-USERS.
...
Timestamps in passdb (currently) only have second granularity.
Guenther
2009-05-08 22:14:50 +02:00
Günther Deschner
c2498d133d
s4-smbtorture: Fix printf info-level mismatch in RPC-SAMR.
...
Guenther
2009-05-08 09:56:40 +02:00
Günther Deschner
310031274d
s4-smbtorture: avoid acct_flags check at the end of RPC-SAMR-PASSWORDS for Samba3.
...
I don't get this, why would the account suddenly get ACB_PWNOTREQ ?
Guenther
2009-05-08 00:46:54 +02:00
Günther Deschner
41cb06fba7
s4-smbtorture: prepare for running RPC-SAMR-USERS against samba3.
...
In Samba 3 there are no pdb calls to store comments, codepages and countrycodes
(yet).
Guenther
2009-05-08 00:42:21 +02:00
Günther Deschner
2cdfd67cae
s4-smbtorture: Avoid failing RPC-SCHANNEL when testing lsa_GetUserName behaviour against Samba 3.
...
Guenther
2009-05-07 13:05:13 +02:00
Stefan Metzmacher
a678144162
s4:RPC-ECHO: disable the timeout test as it can't work with our client library
...
We need proper ways to cancel requests in order to have that
test working against a correctly behaving server over ncacn_np.
metze
2009-04-25 06:09:04 +02:00
Günther Deschner
a263eaca49
s4-smbtorture: add test_ControlService() to RPC-SVCCTL.
...
Guenther
2009-04-24 13:37:07 +02:00
Günther Deschner
f926a4e390
s4-smbtorture: add test_StartServiceW() to RPC-SVCCTL.
...
Guenther
2009-04-24 13:36:47 +02:00
Günther Deschner
ae5dd1219a
s4-smbtorture: change default service to spooler in RPC-SVCCTL.
...
Guenther
2009-04-24 13:35:51 +02:00
Andrew Bartlett
1a39007101
s4:torture Fix segfault in RPC-SAMSYNC
...
This code needs to be fixed to match Win2008 behavior, but at least it
does not segfault any more.
Andrew Bartlett
2009-04-24 09:35:24 +02:00
Andrew Bartlett
f579a2c666
s4:torture use common libcli/auth crypto code
2009-04-23 17:53:25 +02:00
Stefan Metzmacher
d0e6803218
s4:librpc/rpc: remove async argument from the sync dcerpc_request() function
...
metze
2009-04-20 18:15:00 +02:00
Stefan Metzmacher
e6b796b936
s4:torture/rpc: use dcerpc_ndr_request() for the object_uuid test
...
As we want sync calls...
metze
2009-04-20 18:14:59 +02:00
Andrew Bartlett
6c9caed481
Merge commit 'origin/master' into libcli-auth-merge-without-netlogond
2009-04-20 16:53:02 +02:00
Günther Deschner
5f0c9c57f5
s4-smbtorture: test all levels in test_GetJob().
...
Guenther
2009-04-20 00:59:36 +02:00
Günther Deschner
fe2828c353
s4-smbtorture: Skip Job pause and resume on paused printers for Samba 3 for now.
...
Guenther
2009-04-17 17:27:42 +02:00
Günther Deschner
cb9c0cefaf
s4-smbtorture: rework test_EnumPrinterDrivers() a little to succeed with s3.
...
Yes, I feel dirty for this but promise to come back and fix appropriately.
Guenther
2009-04-17 17:25:14 +02:00
Günther Deschner
81253ec146
s4-smbtorture: Fix RPC-SPOOLSS-WIN for printers with a lot of jobs in the queue.
...
Guenther
2009-04-17 17:23:59 +02:00
Günther Deschner
32add69632
s4-smbtorture: disable CreateUser2 tests when running RPC-SAMR-PASSWORDS-PWDLAST
...
against Samba3.
Samba 3 does not (yet) get all the ACB_flag settings right upon creation.
Guenther
2009-04-17 11:15:58 +02:00
Günther Deschner
c794ba71b7
s4-smbtorture: add LSA-LOOKUPSIDS to verify bug #6263 .
...
Guenther
2009-04-17 01:32:45 +02:00
Günther Deschner
b0a0d2a0ae
s4-smbtorture: Fix crash in RPC-LSA-LOOKUP
...
Guenther
2009-04-17 01:32:44 +02:00
Günther Deschner
e6aa3f2d09
s4-smbtorture: Fix crash bugs in RPC-SAMR_ACCESSMASK.
...
Also disable security descriptor based tests while testing samba3.
Guenther
2009-04-15 22:50:05 +02:00
Günther Deschner
f1fd39c09f
s4-smbtorture: define TORTURE_DEFAULT_SERVICE and set to netlogon.
...
Guenther
2009-04-15 22:48:54 +02:00
Andrew Bartlett
4678d1c6f4
Merge branch 'master' of ssh://git.samba.org/data/git/samba into libcli-auth-merge-without-netlogond
2009-04-15 14:36:13 +10:00
Günther Deschner
a2ef1fee69
s4-smbtorture: make sure samba3 does not regress in EnumServicesStatusW call.
...
Guenther
2009-04-14 12:13:32 +02:00
Günther Deschner
4a2dfbf3c9
s4-smbtorture: print SPOOLSS_JOB_CONTROL flags in RPC-SPOOLSS test.
...
Guenther
2009-04-14 12:13:08 +02:00
Andrew Bartlett
5095d7b1c8
Rework Samba4 to use the new common libcli/auth code
...
In particular, this is the rename from creds_ to netlogon_creds_, as
well as other links to use the new common crypto.
Andrew Bartlett
2009-04-14 16:23:44 +10:00
Andrew Bartlett
6c8f7e4005
Port Samba4 to the new combined libcli/auth functions
...
For example, some of the new shared functionality was previously in the wkssvc
torture test.
Andrew Bartlett
2009-04-14 16:23:41 +10:00
Andrew Bartlett
872cb0257c
Move DRSUAPI per-attribute decryption into a common file
...
This file (contining metze's decryption routines) is now also be used by
Samba3's DRSUAPI implementation
Andrew Bartlett
2009-04-14 14:19:39 +10:00
Günther Deschner
1dbb6530fa
s4-smbtorture: fix two valgrind warnings.
...
Guenther
2009-04-13 23:45:45 +02:00
Günther Deschner
56f5105400
s4-smbtorture: disable test_SecondaryClosePrinter when running against s3 for now.
...
Guenther
2009-04-13 23:45:37 +02:00
Günther Deschner
0f76e2d0bd
s4-smbtorture: move test_ReplyOpenPrinter from RPC-SPOOLSS to RPC-SPOOLSS-NOTIFY.
...
Guenther
2009-04-13 23:45:29 +02:00
Günther Deschner
81aca44d30
s4-smbtorture: use printerinfo level 1 name, not description in
...
test_EnumPrinters_old().
Guenther
2009-04-13 16:10:50 +02:00
Günther Deschner
c0b71db8e1
s4-smbtorture: perform the ntsvcs devicelist tests against the Spooler service.
...
Guenther
2009-04-10 01:06:56 +02:00
Günther Deschner
693c2e9529
s4-smbtorture: add test_EnumDependentServicesW() to RPC-SVCCTL.
...
Guenther
2009-04-09 16:42:22 +02:00
Günther Deschner
1632a4ebab
s4-smbtorture: add test_QueryServiceObjectSecurity() to RPC-SVCCTL test.
...
Guenther
2009-04-09 14:52:30 +02:00
Günther Deschner
9945d15a5d
s4-smbtorture: add test_QueryServiceConfigW() to RPC-SVCCTL.
...
Guenther
2009-04-09 14:33:37 +02:00
Günther Deschner
544113f9dd
s4-smbtorture: add test_QueryServiceStatus() to RPC-SVCCTL.
...
Guenther
2009-04-09 14:33:28 +02:00
Günther Deschner
0be30e8ced
s4-smbtorture: fix test_ReportEventLog in RPC-EVENTLOG.
...
Guenther
2009-04-08 19:45:58 +02:00
Günther Deschner
1f6646e135
s4-smbtorture: Small fix for RPC-SPOOLSS-WIN to deal with driver-less printers.
...
The getdriver query failure should only be critical when there is actually a
driver associated to a printer.
Guenther
2009-04-08 13:51:26 +02:00
Günther Deschner
8e3145e551
svcctl: use offered/needed for buffer sizes as in spoolss.
...
Guenther
2009-04-08 11:03:53 +02:00
Stefan Metzmacher
c600e8ef42
s4:cldap: rewrite the cldap library based on tsocket
...
metze
2009-03-19 16:25:59 +01:00
Günther Deschner
9744a7058c
s4-smbtorture: fix spoolss notify test after spoolss_Field changes.
...
Guenther
2009-03-18 16:46:33 +01:00
Günther Deschner
342b436691
s4-smbtorture: fix spoolss_EnumPrinterKey callers in RPC-SPOOLSS-WIN test.
...
Kai, please check.
Guenther
2009-03-18 10:35:22 +01:00
Günther Deschner
6e52c232c7
s4-smbtorture: fix spoolss_EnumPrinterDataEx tests.
...
sorry, I could swear this did compile...
Guenther
2009-03-18 01:42:56 +01:00
Günther Deschner
fac7208273
s4-smbtorture: fix spoolss notify test for notify type changes.
...
Guenther
2009-03-17 19:07:37 +01:00
Günther Deschner
87d97ad042
s4-smbtorture: fix test_EnumPrinterKey.
...
Guenther
2009-03-17 12:15:33 +01:00
Günther Deschner
0e2139c693
s4-smbtorture: fix RPC-SPOOLSS test after PrinterData changes.
...
Guenther
2009-03-17 11:14:54 +01:00
Günther Deschner
c6e3e5eabc
s4-smbtorture: fix test_GetPrinterData tests after out pointer changes.
...
Guenther
2009-03-17 10:58:22 +01:00
Günther Deschner
ec0c6e1617
s4-smbtorture: fix build warning in test_EnumPrintProcDataTypes.
...
Guenther
2009-03-14 23:25:29 +01:00
Günther Deschner
a93fbf8b26
s4-smbtorture: add test_EnumPrintProcDataTypes to RPC-SPOOLSS test.
...
Guenther
2009-03-07 00:25:44 +01:00
Günther Deschner
8bc7bb77be
s4-smbtorture: exit early in test_EnumPorts when no port info has been returned.
...
Guenther
2009-03-06 14:28:22 +01:00
Günther Deschner
2fcc921237
s4-smbtorture: fix s3 flavor rpc spoolss test.
...
Guenther
2009-03-06 14:28:17 +01:00
Günther Deschner
8e68eb2cc3
s4-smbtorture: fix RPC-SPOOLSS-WIN.
...
Guenther
2009-03-06 14:28:10 +01:00
Günther Deschner
47adaea11e
s4-smbtorture: fix RPC-SPOOLSS test after enum out info pointer changes.
...
Guenther
2009-03-06 14:28:04 +01:00
Jelmer Vernooij
7ab8f373c8
Use common header file for character set handling in Samba 3 and Samba 4.
2009-03-01 22:24:34 +01:00
Jelmer Vernooij
94069bd274
s4: Use same function signature for convert_* as s3.
2009-03-01 19:55:46 +01:00
Jelmer Vernooij
9ffb6d2d9e
Add allow_badcharcnv argument to all conversion function, for
...
consistency with Samba 3.
2009-03-01 06:33:40 +01:00
Günther Deschner
8bf0c256d7
s4-smbtorture: add test_AddJob test to RPC-SPOOLSS test.
...
Guenther
2009-02-25 23:48:29 +01:00
Günther Deschner
6cd30a351a
s4-smbtorture: expand RPC-SPOOLSS enumform and getform tests for level 2 forms.
...
Guenther
2009-02-25 21:17:19 +01:00
Günther Deschner
666cc916eb
s4-smbtorture: add test_GetPrintProcessorDirectory to RPC-SPOOLSS.
...
Guenther
2009-02-25 21:17:18 +01:00
Günther Deschner
24373c16a5
s4-smbtorture: fix eventlog getinformation test.
...
Guenther
2009-02-21 21:13:59 +01:00
Günther Deschner
64cec99843
s4-smbtorture: fix spoolss test after count out,ref idl changes.
...
Guenther
2009-02-17 16:15:52 +01:00
Günther Deschner
2fde3d2bc4
s4-smbtorture: fix spoolss notify test.
...
Guenther
2009-02-17 00:32:28 +01:00
Günther Deschner
886c028e44
s4-smbtorture: fix test_PausePrinter and test_ResumePrinter.
...
Guenther
2009-02-14 01:21:21 +01:00
Stefan Metzmacher
abb96e202b
s4:torture/samba3rpc: fix the build after get_myname() changes
...
metze
2009-02-13 13:36:11 +01:00
Andrew Bartlett
0ccdb5f74a
Remove useless invocation of messaging_init() in RPC-PAC test
2009-02-13 16:56:46 +11:00
Andrew Bartlett
71632a1697
Remove auth/ntlm as a dependency of GENSEC by means of function pointers.
...
When starting GENSEC on the server, the auth subsystem context must be
passed in, which now includes function pointers to the key elements.
This should (when the other dependencies are fixed up) allow GENSEC to
exist as a client or server library without bundling in too much of
our server code.
Andrew Bartlett
2009-02-13 10:24:16 +11:00
Günther Deschner
c1dbcd4cf8
s4-smbtorture: fix SPOOLSS test w.r.t. spoolss_ReplyOpenPrinter.
...
Guenther
2009-02-10 23:57:30 +01:00
Günther Deschner
b3b06a8b7b
s4-smbtorture: fix test_EnumJobs in spoolss win test.
...
Guenther
2009-02-07 10:20:56 +01:00
Günther Deschner
6b19c39697
s4-smbtorture: fix valgrind warnings in RPC-SPOOLSS_WIN test.
...
Guenther
2009-02-07 00:46:09 +01:00
Günther Deschner
cd5a314b51
s4-smbtorture: fix test_GetPrinterData.
...
Guenther
2009-02-06 18:37:02 +01:00
Günther Deschner
afe300cb52
s4-smbtorture: fix spoolss enum tests.
...
Guenther
2009-02-06 17:36:10 +01:00
Günther Deschner
33d2507ba2
s4-smbtorture: fix test_EnumPrinterKey.
...
Guenther
2009-02-06 14:59:22 +01:00
Günther Deschner
88aaac39fa
s4-smbtorture: fix test_EnumPrinterDataEx.
...
Guenther
2009-02-06 14:59:22 +01:00
Günther Deschner
8ddb81ca0a
s4-smbtorture: fix test_GetPrinterDataEx.
...
Guenther
2009-02-06 14:59:22 +01:00
Günther Deschner
3954cd83aa
s4-smbtorture: fix test_GetPrinterDriver2.
...
Guenther
2009-02-06 14:59:22 +01:00
Günther Deschner
99398e8768
s4-smbtorture: fix test_GetForm.
...
Guenther
2009-02-06 14:59:21 +01:00
Günther Deschner
d400de2ffa
s4-smbtorture: fix test_DoPrintTest.
...
Guenther
2009-02-06 14:59:21 +01:00
Günther Deschner
6e1c008913
s4-smbtorture: fix test_DoPrintTest.
...
Guenther
2009-02-06 14:59:21 +01:00
Günther Deschner
0d4dbe6012
s4-smbtorture: fix test_GetPrinterDriverDirectory.
...
Guenther
2009-02-06 14:59:21 +01:00
Günther Deschner
b970eb791c
s4-smbtorture: fix test_GetPrinter.
...
Guenther
2009-02-06 14:59:21 +01:00
Günther Deschner
8153916f4a
s4-smbtorture: fix test_GetPrinter.
...
Guenther
2009-02-06 14:59:21 +01:00
Günther Deschner
22e2f220be
s4-smbtorture: fix test_GetJob.
...
Guenther
2009-02-06 14:59:20 +01:00
Günther Deschner
858116d54e
s4-smbtorture: in eventlog readlog test, print all records in a buffer.
...
Guenther
2009-02-04 22:49:51 +01:00
Stefan Metzmacher
4bbfdb2ded
s4:torture/rpc: avoid 'delete' and 'class' in samba3rpc.c
...
metze
2009-02-02 13:09:21 +01:00
Stefan Metzmacher
900a5a6f87
s4:torture/rpc: s/class/kclass in winreg.c
...
metze
2009-02-02 13:09:20 +01:00
Stefan Metzmacher
3131ca2340
s4:torture/rpc: avoid 'new' in samsync.c
...
metze
2009-02-02 13:09:19 +01:00
Kai Blin
07aa05f678
shared: Move dom_sid_* utility functions to top level
2009-02-01 19:42:30 +01:00
Günther Deschner
ab2ee0711e
s4-smbtorture: add my copyright.
...
Guenther
2009-01-24 03:33:55 +01:00
Günther Deschner
da338efbf9
s4-smbtorture: add BackupLog handling in eventlog test.
...
Guenther
2009-01-24 03:33:55 +01:00
Günther Deschner
d3b8fdd71e
s4-smbtorture: add test_GetLogIntormation test.
...
Guenther
2009-01-24 03:33:23 +01:00
Günther Deschner
a6131f2a8b
s4-smbtorture: add ReportEventW test.
...
Guenther
2009-01-24 03:33:23 +01:00
Günther Deschner
9361c73c2f
winreg: fix winreg_EnumValue callers.
...
Guenther
2009-01-16 00:28:46 +01:00
Günther Deschner
288c469195
s4-smbtorture: fix RPC-EVENTLOG test.
...
Guenther
2009-01-16 00:28:44 +01:00
Günther Deschner
af9f7a39f0
s4-smbtorture: also test for invalid flags in eventlog test_ReadEventLog.
...
Guenther
2009-01-14 10:18:13 +01:00
Günther Deschner
4994956ad0
s4-smbtorture: pure cosmetic cleanup of eventlog test.
...
Guenther
2009-01-14 10:18:13 +01:00
Günther Deschner
f2dd351a1e
s4-smbtorture: print hand-decoded service status array in svcctl torture test.
...
Guenther
2009-01-09 17:08:18 +01:00
Günther Deschner
74a1ed3e28
s4-smbtorture: extend test_QueryServiceConfig2W a bit.
...
Guenther
2009-01-08 17:32:44 +01:00
Günther Deschner
e0edc079bd
s4-smbtorture: fix build of svcctl torture test.
...
Guenther
2009-01-08 17:32:40 +01:00
Günther Deschner
661eeb34b5
s4-smbtorture: use names for info level in test_QueryServiceStatusEx.
...
Guenther
2009-01-08 11:19:32 +01:00
Günther Deschner
4df1a491c5
s4-smbtorture: add my copyright to svcctl test.
...
Guenther
2009-01-08 11:19:31 +01:00
Günther Deschner
176bbcf90c
svcctl: add svcctl_ConfigLevel from samba 3.
...
Guenther
2009-01-08 11:18:57 +01:00
Jelmer Vernooij
958186df2a
Fix compilation, remove unused variables.
2009-01-06 21:52:54 +01:00
Günther Deschner
10d72781fd
s4-smbtorture: verify each password change via samlogon in SAMR-PASSWORDS-PWDLASTSET test.
...
Guenther
2009-01-06 16:03:54 +01:00
Stefan Metzmacher
183c379fe5
s4:lib/tevent: rename structs
...
list=""
list="$list event_context:tevent_context"
list="$list fd_event:tevent_fd"
list="$list timed_event:tevent_timer"
for s in $list; do
o=`echo $s | cut -d ':' -f1`
n=`echo $s | cut -d ':' -f2`
r=`git grep "struct $o" |cut -d ':' -f1 |sort -u`
files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4`
for f in $files; do
cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp
mv $f.tmp $f
done
done
metze
2008-12-29 20:46:40 +01:00
Jelmer Vernooij
dcc4081f75
Fix more compiler warnings.
2008-12-23 23:22:57 +01:00
Günther Deschner
93c61a814a
s4: smbtorture, fix the build of netlogon test after idl change.
...
Guenther
2008-12-17 23:52:15 +01:00
Günther Deschner
188695f07f
s4: fix smbtorture build after idl change.
...
Guenther
2008-12-17 23:23:56 +01:00
Jelmer Vernooij
53c82ae7a3
Remove use of C++ keywords.
2008-12-16 19:07:02 +01:00
Günther Deschner
c4a5788e82
s4-smbtorture: add simple netr_ServerGetTrustInfo test.
...
Guenther
2008-12-10 11:58:28 +01:00
Matthias Dieter Wallnöfer
6e4cc12604
s4-samr: Fix Bug #5946 . userparameters handling in torture test.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2008-12-10 00:07:25 +01:00
Stefan Metzmacher
e9215c9713
RPC-BROWSER: send the correct data in later requests
...
metze
2008-12-06 15:04:34 +01:00
Stefan Metzmacher
2c31b7975d
s4:torture: add simple RPC-BROWSER test
...
metze
2008-12-06 14:56:51 +01:00
Günther Deschner
f29d31a7e0
s4-smbtorture: do full level 18, 21, 23, 24, 25, 26 testing in pwdlastset test.
...
Guenther
2008-12-05 16:29:04 +01:00
Günther Deschner
c0b67b4aa6
s4-smbtorture: add support for level 18 and 21 in test_SetUserPass_level_ex.
...
Guenther
2008-12-05 16:28:57 +01:00
Günther Deschner
97c3ae12cf
s4-smbtorture: more tests for RPC-SAMR-PASSWORDS-PWDLASTSET.
...
Guenther
2008-12-05 16:28:50 +01:00
Günther Deschner
b514da4afd
s4-smbtorture: add test for setting passwords via samr_UserInfo21.
...
Guenther
2008-12-05 16:03:08 +01:00
Günther Deschner
985d9b1099
s4-smbtorture: add test for setting passwords via samr_UserInfo18.
...
Guenther
2008-12-05 16:03:04 +01:00
Günther Deschner
58102a366b
s4-smbtorture: fix build of samr test (bad git merge).
...
Guenther
2008-12-05 15:48:47 +01:00
Günther Deschner
4bcf8edcf8
s4-samr: fix samr callers after SAMR_FIELD_PASSWORD change.
...
Guenther
2008-12-05 14:27:03 +01:00
Stefan Metzmacher
e9d1c3e7ea
RAW-NETLOGON: check netr_GetAnyDCName() result
...
metze
2008-12-04 12:48:44 +01:00
Günther Deschner
1cf5c154aa
s4-smbtorture: add some more testcases to pwdlastset test.
...
Guenther
2008-11-28 22:06:41 +01:00
Günther Deschner
fd2a15fa78
s4-smbtorture: fix RPC-SAMR-PASSWORDS-PWDLASTSET with samba3 option.
...
Guenther
2008-11-28 22:06:32 +01:00
Günther Deschner
4b687944f3
s4-smbtorture: allow to disable full testing of all possible opcode combinations.
...
Guenther
2008-11-28 14:09:26 +01:00
Günther Deschner
465466e1af
s4-smbtorture: move test to SAMR-PASSWORDS-PWDLASTSET.
...
Guenther
2008-11-28 14:09:18 +01:00
Günther Deschner
89ad20789c
s4-smbtorture: add test for samr password_expired flag while setting passwords.
...
Guenther
2008-11-28 14:09:10 +01:00
Günther Deschner
bd95b6b416
s4-smbtorture: add test_SetUserPass_level_ex.
...
Guenther
2008-11-28 14:08:14 +01:00
Günther Deschner
206375c8cf
s4-smbtorture: add samr_rand_pass_silent.
...
Guenther
2008-11-28 14:08:03 +01:00
Günther Deschner
296fae7561
s4-samr: fix samr passwdord_expired callers.
...
Guenther
2008-11-28 13:55:49 +01:00
Günther Deschner
5aebfd9086
s4-smbtorture: fix some build warnings.
...
Guenther
2008-11-27 18:19:44 +01:00
Günther Deschner
2736650f0c
eventlog: fill in some unknowns and use flags bitmap in IDL.
...
Guenther
2008-11-20 17:15:47 +01:00
Günther Deschner
54e832c171
s4-smbtorture: fix segfault in RPC-EVENTLOG test.
...
Guenther
2008-11-20 00:47:18 +01:00
Günther Deschner
2409f216cf
s4-smbtorture: add test for svcctl_QueryServiceConfig2W.
...
Guenther
2008-11-17 13:17:07 +01:00
Günther Deschner
c0db253507
s4-smbtorture: fix test for svcctl_EnumServicesStatusW.
...
Guenther
2008-11-17 13:16:11 +01:00
Günther Deschner
b43c3a36a7
s4-smbtorture: add test for svcctl_QueryServiceStatusEx.
...
Guenther
2008-11-17 13:15:59 +01:00
Günther Deschner
2d44f72c33
s4-smbtorture: pure reformatting of svcctl test.
...
Guenther
2008-11-17 13:15:20 +01:00
Günther Deschner
fea323bdf3
s4-smbtorture: add PNP_GetDeviceRegProp test for ntsvcs testsuite.
...
Guenther
2008-11-17 13:13:20 +01:00
Jelmer Vernooij
8beecd42f2
Move torture directory to top-level.
2008-11-16 00:58:08 +01:00
Günther Deschner
67018ed8bd
s4-smbtorture: add very basic RPC-NTSVCS test.
...
Guenther
2008-11-12 10:19:53 +01:00
Günther Deschner
09998ab89d
s4-samr: merge samr_QueryUserInfo{2} from s3 idl. (fixme: python)
...
Guenther
2008-11-10 21:46:31 +01:00
Günther Deschner
15e011564a
s4-samr: merge samr_QueryGroupInfo from s3 idl. (fixme python)
...
Guenther
2008-11-10 21:46:30 +01:00
Günther Deschner
0548642e5b
s4-samr: merge samr_QueryAliasInfo from s3 idl. (fixme: python)
...
Guenther
2008-11-10 21:46:30 +01:00
Günther Deschner
99c2fac6b2
s4-samr: merge samr_EnumDomainGroups from s3 idl. (fixme: python)
...
Guenther
2008-11-10 21:46:30 +01:00
Günther Deschner
1ea97d76ed
s4-samr: merge samr_EnumDomainUsers from s3 idl. (fixme: python)
...
Guenther
2008-11-10 21:46:30 +01:00
Günther Deschner
d4d9a73ad1
s4-samr: merge samr_EnumDomains from s3 idl. (fixme: python)
...
Guenther
2008-11-10 21:46:30 +01:00
Günther Deschner
bb1d7684d2
s4-samr: merge samr_LookupDomain from s3 idl. (fixme: python)
...
Guenther
2008-11-10 21:46:30 +01:00
Günther Deschner
61391d0ade
s4-samr: merge samr_LookupNames from s3 idl. (fixme: python)
...
Guenther
2008-11-10 21:46:30 +01:00
Günther Deschner
2efec54b8d
s4-samr: merge samr_EnumDomainAliases from s3 idl. (fixme: python)
...
Guenther
2008-11-10 21:46:29 +01:00
Günther Deschner
aaca059a35
s4-samr: merge samr_QueryDisplayInfo from s3 idl. (fixme: python)
...
Guenther
2008-11-10 21:46:29 +01:00
Günther Deschner
3a9b42fa75
s4-samr: merge samr_QueryDisplayInfo2 from s3 idl. (fixme: python)
...
Guenther
2008-11-10 21:46:29 +01:00
Günther Deschner
bab255f09b
s4-samr: merge samr_QueryDisplayInfo3 from s3 idl. (fixme: python)
...
Guenther
2008-11-10 21:46:29 +01:00
Günther Deschner
68a2ca11dc
s4-samr: merge samr_GetGroupsForUser from s3 idl. (fixme: python)
...
Guenther
2008-11-10 21:46:29 +01:00
Günther Deschner
f20dd953ef
s4-samr: merge samr_QueryDomainInfo2 from s3 idl. (fixme: python)
...
Guenther
2008-11-10 21:46:29 +01:00
Günther Deschner
f7dfea32fc
s4-samr: merge samr_QueryDomainInfo from s3 idl. (fixme python)
...
Guenther
2008-11-10 21:46:29 +01:00
Günther Deschner
9774927947
s4-samr: merge samr_QueryGroupMember from s3 idl. (fixme: python)
...
Guenther
2008-11-10 21:46:28 +01:00
Günther Deschner
a2a26da899
s4-samr: merge samr_Connect5 from s3 idl. (fixme python)
...
Guenther
2008-11-10 21:46:28 +01:00
Günther Deschner
88ff1be036
s4-samr: merge samr_GetBootKeyInformation from s3 idl. (fixme: python)
...
Guenther
2008-11-10 21:46:28 +01:00