summaryrefslogtreecommitdiff
path: root/source4/torture/rpc/samr.c
AgeCommit message (Collapse)AuthorFilesLines
2010-08-14s4:torture/rpc/samr.c - fix a wrong torture error messageMatthias Dieter Wallnöfer1-1/+1
2010-07-16s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell1-2/+2
this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-06-28s4:torture/rpc/samr.c - test_SetPassword_LastSet - introduce the delays also ↵Matthias Dieter Wallnöfer1-1/+2
for s4
2010-06-28s4:torture - SAMR password tests - activate support for password sets on ↵Matthias Dieter Wallnöfer1-22/+17
level "18" and "21"
2010-06-28s4:torture/rpc/samr.c - test_SetPassword_LastSet - fix "pwdLastSet" testMatthias Dieter Wallnöfer1-33/+31
- Remove superflous checks (on level 18, 24, 26 we do always have "pwdLastSet" resets if "password_expired" > 0) - Fixed some bugs Signed-off-by: Günther Deschner <gd@samba.org>
2010-06-12s4:torture - SAMR testsuite - now we do support "GetAliasMembership" as expectedMatthias Dieter Wallnöfer1-4/+0
2010-05-25s4:torture/rpc/samr.c: Fix the "ValidatePassword" testMatthias Dieter Wallnöfer1-3/+6
It was failing randomly due to an uninitialised "status" variable.
2010-04-15s4:torture/rpc/samr.c: check for NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE instead ↵Stefan Metzmacher1-2/+1
of DCERPC_FAULT_OP_RNG_ERROR metze
2010-04-14s4:torture/rpc: rename rpc.h => torture_rpc.hStefan Metzmacher1-1/+1
The reason for this is that some systems include <rpc/rpc.h> from within system headers. HP-UX 11.00 does so somewhere deep inside of <shadow.h>. For torture/winbind/struct_based.c <rpc/rpc.h> resolves to torture/rpc/rpc.h and breaks the build. metze
2010-04-11subunit: Support formatting compatible with upstream subunit, for consistency.Jelmer Vernooij1-17/+17
Upstream subunit makes a ":" after commands optional, so I've fixed any places where we might trigger commands accidently. I've filed a bug about this in subunit.
2010-04-06s4:torture - remove unused variablesMatthias Dieter Wallnöfer1-1/+0
2010-03-29s4:torture/rpc/samr.c: add explicit check for NTSTATUS r.out.resultGünther Deschner1-582/+745
Guenther Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-17s4-smbtorture: fix typo in RPC-SAMR-PASSWORDS-LOCKOUT test.Günther Deschner1-1/+1
Guenther
2010-03-17s4:torture/rpc/samr.c: make use of dcerpc_binding_handle stubsStefan Metzmacher1-427/+511
metze
2010-03-17s4:torture/rpc/lsa*: make use of dcerpc_binding_handle stubsStefan Metzmacher1-2/+2
metze
2010-03-12s4:torture/rpc: make use of use tevent_req based dcerpc_binding_handle stubsStefan Metzmacher1-3/+5
metze
2010-03-05s4:torture/rpc/samr.c - add some decision possibility constants to some switchMatthias Dieter Wallnöfer1-0/+3
At the moment nothing is done when the enumeration variable is set to one of those constants as before. This is only to quite nasty warnings.
2010-03-05s4:torture/rpc/samr.c - make some argument of function ↵Matthias Dieter Wallnöfer1-1/+1
"test_SamLogon_with_creds" constant This to quiet warnings.
2010-03-03s4:torture/rpc/samr - Fix up SAMR-USERS testMatthias Dieter Wallnöfer1-10/+22
"QueryDomainInfo" returns only global groups, "QueryDisplayInfo" also universal ones. Consider MS-SAMR 3.1.5.5.1.1 and 3.1.5.3.1.
2010-03-03s4:torture/rpc/samr - enhance the "EnumDomainGroups" test regarding ↵Matthias Dieter Wallnöfer1-0/+15
universal groups Find the "Enterprise Admins" group which does exist on s4 and Windows directories and is always per default universal. Test this only when the target is set to s4 (s3 deployments don't contain this group). If the number of returned objects is "0" (count) then we are likely testing the builtin domain of an AD deployment.Then we ignore the inexistent "Enterprise Admins" group. I didn't enhance the test for "QueryDomainInfo" since this does itself a comparison of all returned objects with the "EnumDomainGroups" call. Therefore if the latter passes, and the "QueryDomainInfo" test passes also the "QueryDomainInfo" call is okay regarding groups.
2010-03-01s4:torture/rpc: make use of explicit dcerpc_*_recv functionsStefan Metzmacher1-1/+1
metze
2010-02-26s4:torture/rpc: use generate_random_password()Stefan Metzmacher1-3/+3
metze
2010-02-23s4:schannel merge code with s3Simo Sorce1-1/+0
After looking at the s4 side of the (s)channel :) I found out that it makes more sense to simply make it use the tdb based code than redo the same changes done to s3 to simplify the interface. Ldb is slow, to the point it needs haks to pre-open the db to speed it up, yet that does not solve the lookup speed, with ldb it is always going to be slower. Looking through the history it is evident that the schannel database doesn't really need greate expanadability. And lookups are always done with a single Key. This seem a perfet fit for tdb while ldb looks unnecessarily complicated. The schannel database is not really a persistent one. It can be discared during an upgrade without causing any real issue. all it contains is temproary session data.
2010-02-08s4-smbtorture: skip over ValidatePassword if DCERPC error is returned.Günther Deschner1-0/+4
Guenther
2010-01-27s4:torture: refactor querying of domain info out into ↵Michael Adam1-52/+40
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-27s4:torture: create new test_SetDomainInfo_ntstatus()Michael Adam1-12/+26
for checking for SetDomainInfo giving a desired return code. Michael Signed-off-by: Günther Deschner <gd@samba.org>
2010-01-27s4:torture: refactor setting of domain inf out into test_SetDomainInfo()Michael Adam1-101/+56
and use it in several places. Michael Signed-off-by: Günther Deschner <gd@samba.org>
2010-01-27s4:torture: refactor setting account flags out into ↵Michael Adam1-50/+46
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-20torture: add new test RPC-SAMR-PASSWORDS-LOCKOUTMichael Adam1-0/+451
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-15s4-smbtorture: add setup_schannel_netlogon_pipe() function.Günther Deschner1-34/+25
Guenther
2010-01-12s4-smbtorture: fix GetAliasMembership test in RPC-SAMR.Günther Deschner1-4/+6
Guenther
2010-01-12s4-smbtorture: add RPC-SAMR-PASSWORDS-BADPWDCOUNT torture test.Günther Deschner1-2/+488
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-12s4-smbtorture: allow test_SamLogon to test interactive samlogon in RPC-SAMR ↵Günther Deschner1-34/+71
family of tests. Guenther
2009-12-17s4-smbtorture: skip GetAliasMembership against s4.Günther Deschner1-0/+4
It returns NT_STATUS_INTERNAL_DB_CORRUPTION for unknown sids and I could not figure out why. Guenther
2009-12-17s4-smbtorture: add a samr_GetAliasMembership test to RPC-SAMR.Günther Deschner1-0/+47
Guenther
2009-11-26s4-smbtorture: refactor RPC-SAMR-LARGE-DC test a little more.Günther Deschner1-25/+26
Guenther
2009-11-26s4-smbtorture: add torture_samr_context to carry some RPC-SAMR-X specifics.Günther Deschner1-84/+111
Guenther
2009-11-10s4-smbtorture: strip trailing whitespace in RPC-SAMR.Günther Deschner1-2/+2
Guenther
2009-11-06s4:torture/samr - Add status code on "ValidatePassword" test outputMatthias Dieter Wallnöfer1-2/+2
2009-11-06s4:torture/samr - Activate "ValidatePassword" test per defaultMatthias Dieter Wallnöfer1-5/+2
2009-11-05s4:torture/rpc/samr - Add a comment for "ValidatePassword" testMatthias Dieter Wallnöfer1-0/+2
2009-10-20s4-torture: fixed a pipe leakAndrew Tridgell1-0/+2
The RPC-SAMR-PASSWORDS* tests could leak RPC pipes, causing an overallocation of fd's on the server
2009-10-19s4:test: Fix typo.Karolin Seeger1-1/+1
Karolin
2009-10-08s3/s4 - Adapt the IDL changes on various locationsMatthias Dieter Wallnöfer1-27/+27
2009-10-07torture: disable the ValidatePassword testAndrew Tridgell1-1/+5
This test causes problems on non-sealed connections against windows
2009-10-07s4-torture: removed an accidental commit of a local test hackAndrew Tridgell1-1/+0
Sorry about that ....
2009-10-02s4-torture: added a very simple samr ValidatePassword testAndrew Tridgell1-0/+32
2009-06-29s4-smbtorture: use torture_comment & torture_warning in RPC samr tests.Günther Deschner1-205/+206
Guenther
2009-06-29s4-smbtorture: correctly test comment behaviour in RPC-SAMR-USERS against s3.Günther Deschner1-7/+4
Guenther
2009-06-29s4-smbtorture: add torture_suite_add_machine_workstation_rpc_iface_tcase.Günther Deschner1-3/+3
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