Günther Deschner
aa72950b3d
s4-smbtorture: skip over ValidatePassword if DCERPC error is returned.
...
Guenther
2010-02-08 14:31:16 +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
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
9d881f4cfb
s4-smbtorture: add setup_schannel_netlogon_pipe() function.
...
Guenther
2010-01-15 00:53:16 +01: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
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
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
Günther Deschner
9599d142c0
s4-smbtorture: strip trailing whitespace in RPC-SAMR.
...
Guenther
2009-11-10 13:08:28 +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
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
Karolin Seeger
b7b548411c
s4:test: Fix typo.
...
Karolin
2009-10-19 10:40:15 +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
Andrew Tridgell
7bdb4306b0
s4-torture: added a very simple samr ValidatePassword test
2009-10-02 16:03:02 +10: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
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
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
bdd214b38c
s4-smbtorture: use torture_comment in RPC-SAMR-USERS-PRIVILEGES test.
...
Guenther
2009-06-17 01:29:22 +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
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