1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
Commit Graph

221 Commits

Author SHA1 Message Date
Andreas Schneider
a070ce3555 s4-torture: Don't consider NONE_MAPPED an error in LookupSids3. 2012-07-06 10:00:57 +02:00
Andreas Schneider
2a46c7fff2 s4-torture: Don't consider NONE_MAPPED an error in LookupNames4. 2012-07-06 10:00:57 +02:00
Andreas Schneider
eeba5ad9fa s4-torture: Add a lsarpc test_GetUserName_fail function. 2012-07-06 10:00:57 +02:00
Andreas Schneider
5dc5cdaa6c s4-torture: Add a lsarpc test_OpenPolicy2_fail function. 2012-07-06 10:00:57 +02:00
Andreas Schneider
39a13d1981 s4-torture: Add a lsarpc test_OpenPolicy_fail function. 2012-07-06 10:00:57 +02:00
Andreas Schneider
4ece074f25 s4-torture: Add a lsarpc test_LookupNames4_fail function. 2012-07-06 10:00:57 +02:00
Andreas Schneider
ed7be198c4 s4-torture: Add a lsarpc test_LookupSids3_fail function. 2012-07-06 10:00:57 +02:00
Andreas Schneider
47e5a8c2b3 s4-torture: Test LookupSids3/LookupNames4 over np and tcpip. 2012-07-06 10:00:56 +02:00
Andreas Schneider
1c46bffb11 s4-torture: Make sure lsa_OpenPolicy2 fails over TCP/IP. 2012-07-06 10:00:56 +02:00
Andreas Schneider
8bc4d7a3e6 s4-torture: Make sure lsa_OpenPolicy fails over TCP/IP. 2012-07-06 10:00:56 +02:00
Andreas Schneider
22da7106b3 s4-torture: Make sure ncacn_np tests are only called over the a pipe. 2012-07-06 10:00:56 +02:00
Andreas Schneider
00171a549a s4-torture: Test LookupSids3 and LookupNames4 only over tcpip.
LookupSids3 and LookupNames4 are only available over tcpip and MUST
fail over named pipes.
2012-07-06 10:00:56 +02:00
Andreas Schneider
682277b44c s4-torture: Use test_LookupSids3 function. 2012-07-06 10:00:56 +02:00
Andreas Schneider
1000884bb3 s4-torture: Fix build warnings in lsa test. 2012-07-06 10:00:56 +02:00
Andreas Schneider
be288b0c82 s4-torture: LookupSids3 is only available over NCACN_IP_TCP.
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Wed Dec 14 15:39:58 CET 2011 on sn-devel-104
2011-12-14 15:39:58 +01:00
Günther Deschner
d292bc0710 s4-smbtorture: For now, skip trusted domain auth validation tests against the sambas.
Guenther
2011-08-31 12:55:42 +02:00
Sumit Bose
247851d6be s4-smbtorture: Add trust password to CreateTrust test
Instead of using empty authinfo and authinfo_internal structures a trust
password is added to these structures. After creating the trust the trust
account is used to validate that the trust password is set correctly.

Signed-off-by: Günther Deschner <gd@samba.org>
2011-08-31 12:55:23 +02:00
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