1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-06 13:18:07 +03:00
Commit Graph

204 Commits

Author SHA1 Message Date
Simo Sorce
b120c5f288 torture: use tevent_ functions names instead of the legacy event_ ones 2011-08-13 09:54:15 -04:00
Günther Deschner
7f52cd3b35 s4-smbtorture: add very basic tests for lsa_CreateTrustedDomainEx.
Guenther
2011-07-15 17:56:41 +02:00
Günther Deschner
3af3e4843f lsa: rename auth info argument in lsa_CreateTrustedDomainEx2
Guenther
2011-07-15 17:55:20 +02:00
Jelmer Vernooij
59a077d8f5 Fix some types
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Feb 28 23:30:06 CET 2011 on sn-devel-104
2011-02-28 23:30:06 +01:00
Jelmer Vernooij
35fbc7bbda s4-smbtorture: Make test names lowercase and dot-separated.
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
2010-12-11 04:16:13 +01:00
Andrew Bartlett
a879a4610d libcli/auth Merge source4/libcli/security and util_sid.c into the common code
This should ensure we only have one copy of these core functions
in the tree.

Andrew Bartlett

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-10-14 02:35:05 +00:00
Björn Jacke
2b254c814b s3/s4: merge msleep and smb_msleep
the merged variant is renamed to smb_msleep as some platforms already have a
msleep function.
2010-09-16 21:38:20 +02:00
Andrew Tridgell
389d35708e torture-lsa: cope with STATUS_SOME_UNMAPPED errors
Now that we support SePrintOperatorPrivilege, an interaction between
the spoolss tests and the privileges tests cause a failure. The
failure happens like this:

 - the spoolss.access test creates and then deletes an account with
   SePrintOperatorPrivilege privilege

 - this leaves the privileges database with an entry for a deleted
   account that is still visible via LSA calls. This is correct
   behaviour (verified against w2k8r2)

 - the lsa.privileges test then enumerates all accounts that have at
   least one privilege, and gets the SID for the deleted account

 - it then called LookupNames and LookupSids on this deleted account,
   and gets an error.

The fix is to not call LookupSids and LookupNames on sids which have
SID_NAME_UNKNOWN as the type

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-04 12:29:10 +10:00
Sumit Bose
18b0a52b89 Fix RPC-LSA-TRUSTED-DOMAINS for changed IDL 2010-08-25 13:27:50 +02:00
Jelmer Vernooij
f9ca9e46ad Finish removal of iconv_convenience in public API's. 2010-05-18 11:45:30 +02:00
Stefan Metzmacher
34a6350715 s4:torture/rpc/lsa.c: test for NT_STATUS_RPC_SS_CONTEXT_MISMATCH instead of NT_STATUS_NET_WRITE_FAULT
metze
2010-04-15 09:34:04 +02:00
Stefan Metzmacher
e1e2195a4a s4:torture/rpc: rename rpc.h => torture_rpc.h
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-14 20:27:11 +02:00
Jelmer Vernooij
7da94cc4a6 subunit: Support formatting compatible with upstream subunit, for consistency.
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-11 20:57:33 +02:00
Stefan Metzmacher
5844a7dfe6 s4:torture/rpc/lsa.c: add test_lsa_OpenPolicy2_ex() that takes an expected status
metze
2010-04-09 16:28:31 +02:00
Stefan Metzmacher
10e46e52ab s4:torture/rpc/lsa.c: add explicit check for NTSTATUS r.out.result
metze
2010-03-29 15:35:51 +02:00
Stefan Metzmacher
50cc29b3cb s4:torture/rpc/lsa*: make use of dcerpc_binding_handle stubs
metze
2010-03-17 09:53:13 +01:00
Stefan Metzmacher
ff54cbe3d4 s4:torture/rpc: make use of use tevent_req based dcerpc_binding_handle stubs
metze
2010-03-12 15:25:48 +01:00
Stefan Metzmacher
c84b4b23c8 s4:torture/rpc: make use of explicit dcerpc_*_recv functions
metze
2010-03-01 16:11:55 +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
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
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
Günther Deschner
1d4bf02993 lsa: fill in more unknowns in lsa_LookupSid calls.
Guenther
2009-09-11 13:59:56 +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
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
95231eae39 s4-lsa: merge lsa_QueryInfoPolicy/{2} from s3 lsa idl.
Guenther
2008-10-27 19:33:23 +01:00
Günther Deschner
92f1c0d156 s4-lsa: merge lsa_LookupNames/{2,3,4} from s3 lsa idl.
Guenther
2008-10-27 19:33:23 +01:00
Günther Deschner
992c03a192 s4-lsa: merge lsa_LookupSids/{2,3} from s3 lsa idl.
Guenther
2008-10-27 19:33:23 +01:00
Günther Deschner
8e622f57e7 s4-lsa: merge lsa_QueryDomainInformationPolicy from s3 lsa idl.
Guenther
2008-10-27 19:33:23 +01:00
Günther Deschner
ea88686419 s4-lsa: merge lsa_QueryTrustedDomainInfoByName from s3 lsa idl.
Guenther
2008-10-27 19:33:22 +01:00
Günther Deschner
36725ec0b4 s4-lsa: merge lsa_QueryTrustedDomainInfo from s3 idl.
Guenther
2008-10-27 19:33:22 +01:00
Günther Deschner
7c3d1dd8a9 s4-lsa: merge lsa_QueryTrustedDomainInfoBySid from s3 lsa idl.
Guenther
2008-10-27 19:33:22 +01:00