summaryrefslogtreecommitdiff
path: root/source4/torture/rpc/samr.c
Commit message (Collapse)AuthorAgeFilesLines
* s4-smbtorture: use torture_assert in samr large-dc test.Günther Deschner2011-03-161-14/+38
| | | | Guenther
* s4: Fix a typoVolker Lendecke2011-02-151-1/+1
|
* s4:torture/rpc/samr.c - fix up the "test_GroupList" suite regarding ↵Matthias Dieter Wallnöfer2011-02-151-2/+16
| | | | | | | | | QueryDisplayInfo This is needed to comply with the previous patch. Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Tue Feb 15 17:40:22 CET 2011 on sn-devel-104
* s4-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij2010-12-111-5/+5
| | | | | | | | This is consistent with the test names used by selftest, should make the names less confusing and easier to integrate with other tools. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Dec 11 04:16:13 CET 2010 on sn-devel-104
* s4:torture/rpc/samr.c - fix output messageMatthias Dieter Wallnöfer2010-12-041-1/+1
|
* s4:introduce casts before outputs of "time_t" variablesMatthias Dieter Wallnöfer2010-11-281-1/+1
| | | | Otherwise we are getting warnings on "NetBSD".
* s4:torture/rpc/samr.c - fix uninitialised "status" variablesMatthias Dieter Wallnöfer2010-11-271-0/+4
| | | | Detected by Tru64. I wonder how this tests even worked.
* s4:torture/rpc/samr.c - fix NTTIME warnings by castsMatthias Dieter Wallnöfer2010-10-291-13/+16
| | | | | | | | And also the format specifier is wrong since NTTIME is "uint64_t" and therefore unsigned. Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Fri Oct 29 10:36:46 UTC 2010 on sn-devel-104
* s4:torture/rpc/samr.c - test the "ReplicaSourceNodeName" only against s3Matthias Dieter Wallnöfer2010-10-291-2/+4
| | | | AD handles this differently (see MS-SAMR 2.2.4.1)
* samr: for correctness, rename samr_RidTypeArray to samr_RidAttrArray.Günther Deschner2010-10-071-2/+2
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Thu Oct 7 12:04:32 UTC 2010 on sn-devel-104
* s4:torture/rpc/samr.c - fix typos in outputsMatthias Dieter Wallnöfer2010-09-121-7/+7
|
* s4:torture/rpc/samr.c - fix a wrong torture error messageMatthias Dieter Wallnöfer2010-08-141-1/+1
|
* s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2010-07-161-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>
* s4:torture/rpc/samr.c - test_SetPassword_LastSet - introduce the delays also ↵Matthias Dieter Wallnöfer2010-06-281-1/+2
| | | | for s4
* s4:torture - SAMR password tests - activate support for password sets on ↵Matthias Dieter Wallnöfer2010-06-281-22/+17
| | | | level "18" and "21"
* s4:torture/rpc/samr.c - test_SetPassword_LastSet - fix "pwdLastSet" testMatthias Dieter Wallnöfer2010-06-281-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>
* s4:torture - SAMR testsuite - now we do support "GetAliasMembership" as expectedMatthias Dieter Wallnöfer2010-06-121-4/+0
|
* s4:torture/rpc/samr.c: Fix the "ValidatePassword" testMatthias Dieter Wallnöfer2010-05-251-3/+6
| | | | It was failing randomly due to an uninitialised "status" variable.
* s4:torture/rpc/samr.c: check for NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE instead ↵Stefan Metzmacher2010-04-151-2/+1
| | | | | | of DCERPC_FAULT_OP_RNG_ERROR metze
* s4:torture/rpc: rename rpc.h => torture_rpc.hStefan Metzmacher2010-04-141-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
* subunit: Support formatting compatible with upstream subunit, for consistency.Jelmer Vernooij2010-04-111-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.
* s4:torture - remove unused variablesMatthias Dieter Wallnöfer2010-04-061-1/+0
|
* s4:torture/rpc/samr.c: add explicit check for NTSTATUS r.out.resultGünther Deschner2010-03-291-582/+745
| | | | | Guenther Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4-smbtorture: fix typo in RPC-SAMR-PASSWORDS-LOCKOUT test.Günther Deschner2010-03-171-1/+1
| | | | Guenther
* s4:torture/rpc/samr.c: make use of dcerpc_binding_handle stubsStefan Metzmacher2010-03-171-427/+511
| | | | metze
* s4:torture/rpc/lsa*: make use of dcerpc_binding_handle stubsStefan Metzmacher2010-03-171-2/+2
| | | | metze
* s4:torture/rpc: make use of use tevent_req based dcerpc_binding_handle stubsStefan Metzmacher2010-03-121-3/+5
| | | | metze
* s4:torture/rpc/samr.c - add some decision possibility constants to some switchMatthias Dieter Wallnöfer2010-03-051-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.
* s4:torture/rpc/samr.c - make some argument of function ↵Matthias Dieter Wallnöfer2010-03-051-1/+1
| | | | | | "test_SamLogon_with_creds" constant This to quiet warnings.
* s4:torture/rpc/samr - Fix up SAMR-USERS testMatthias Dieter Wallnöfer2010-03-031-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.
* s4:torture/rpc/samr - enhance the "EnumDomainGroups" test regarding ↵Matthias Dieter Wallnöfer2010-03-031-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.
* s4:torture/rpc: make use of explicit dcerpc_*_recv functionsStefan Metzmacher2010-03-011-1/+1
| | | | metze
* s4:torture/rpc: use generate_random_password()Stefan Metzmacher2010-02-261-3/+3
| | | | metze
* s4:schannel merge code with s3Simo Sorce2010-02-231-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.
* s4-smbtorture: skip over ValidatePassword if DCERPC error is returned.Günther Deschner2010-02-081-0/+4
| | | | Guenther
* s4:torture: refactor querying of domain info out into ↵Michael Adam2010-01-271-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>
* s4:torture: create new test_SetDomainInfo_ntstatus()Michael Adam2010-01-271-12/+26
| | | | | | | | for checking for SetDomainInfo giving a desired return code. Michael Signed-off-by: Günther Deschner <gd@samba.org>
* s4:torture: refactor setting of domain inf out into test_SetDomainInfo()Michael Adam2010-01-271-101/+56
| | | | | | | | and use it in several places. Michael Signed-off-by: Günther Deschner <gd@samba.org>
* s4:torture: refactor setting account flags out into ↵Michael Adam2010-01-271-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>
* torture: add new test RPC-SAMR-PASSWORDS-LOCKOUTMichael Adam2010-01-201-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
* s4-smbtorture: add setup_schannel_netlogon_pipe() function.Günther Deschner2010-01-151-34/+25
| | | | Guenther
* s4-smbtorture: fix GetAliasMembership test in RPC-SAMR.Günther Deschner2010-01-121-4/+6
| | | | Guenther
* s4-smbtorture: add RPC-SAMR-PASSWORDS-BADPWDCOUNT torture test.Günther Deschner2010-01-121-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
* s4-smbtorture: allow test_SamLogon to test interactive samlogon in RPC-SAMR ↵Günther Deschner2010-01-121-34/+71
| | | | | | family of tests. Guenther
* s4-smbtorture: skip GetAliasMembership against s4.Günther Deschner2009-12-171-0/+4
| | | | | | | It returns NT_STATUS_INTERNAL_DB_CORRUPTION for unknown sids and I could not figure out why. Guenther
* s4-smbtorture: add a samr_GetAliasMembership test to RPC-SAMR.Günther Deschner2009-12-171-0/+47
| | | | Guenther
* s4-smbtorture: refactor RPC-SAMR-LARGE-DC test a little more.Günther Deschner2009-11-261-25/+26
| | | | Guenther
* s4-smbtorture: add torture_samr_context to carry some RPC-SAMR-X specifics.Günther Deschner2009-11-261-84/+111
| | | | Guenther
* s4-smbtorture: strip trailing whitespace in RPC-SAMR.Günther Deschner2009-11-101-2/+2
| | | | Guenther
* s4:torture/samr - Add status code on "ValidatePassword" test outputMatthias Dieter Wallnöfer2009-11-061-2/+2
|