summaryrefslogtreecommitdiff
path: root/source4/torture/rpc/samba3rpc.c
AgeCommit message (Collapse)AuthorFilesLines
2013-10-17s4:torture/samba3rpc: let rpc.authcontext be more robust against low level ↵Stefan Metzmacher1-7/+15
changes (part2) We now use smbXcli_conn_is_connected() and dcerpc_binding_handle_is_connected() to verify only the dcerpc layer got an error. The expected error is EIO mapped to NT_STATUS_IO_DEVICE_ERROR. NT_STATUS_INVALID_HANDLE should only be visible at the SMB layer, but we keep this as allowed return value for now, until the dcerpc layer is fixed. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2013-10-17s4:torture/samba3rpc: let rpc.authcontext be more robust against low level ↵Stefan Metzmacher1-0/+4
code changes (part1) Some code uses the low level smbXcli_session structure instead of the smbcli_session structure and doesn't 'see' updates to the smbcli_session structure. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2013-08-05libcli/auth: also set secure channel type in netlogon_creds_client_init().Günther Deschner1-0/+2
Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2013-06-19build: Build with system md5.h on OpenIndianaAndrew Bartlett1-1/+1
This changes (again...) our system md5 detection to cope with how OpenIndiana does md5. I'm becoming increasingly convinced this isn't worth our while (we should have just done samba_md5...), but for now this change seems to work on FreeBSD, OpenIndiana and Linux with libbsd. This needs us to rename struct MD5Context -> MD5_CTX, but we provide a config.h define to rename the type bad if MD5_CTX does not exist (it does however exist in the md5.h from libbsd). Andrew Bartlett Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Jun 19 21:32:36 CEST 2013 on sn-devel-104
2013-01-16spoolss: Make OpenPrinterEx work with NDR64 by using UserInfo Container.Günther Deschner1-4/+4
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2012-12-09s4-torture: use netlogon_creds_arcfour_crypt() in samba3rpc test.Günther Deschner1-6/+3
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2012-12-09s4-torture: exit early when join fails in samba3rpc tests.Günther Deschner1-2/+4
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2012-12-09s4-torture: use names for r.in.logon_level of netlogon samlogon requests.Günther Deschner1-2/+2
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2012-08-31Rewrite torture_samba3_rpc_sharesec() to use a non-privileged user for share ↵Jeremy Allison1-15/+108
security descriptor testing.
2012-08-04s4:torture: add support for SMB_EXTENDED_SIGNATURES during SMBtconXStefan Metzmacher1-0/+7
metze
2012-08-02s4:torture: send the TCONX_FLAG_EXTENDED_RESPONSE flagStefan Metzmacher1-1/+1
metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Aug 2 10:54:18 CEST 2012 on sn-devel-104
2012-05-28s4:torture/samba3rpc: add smb1-pipe-nameStefan Metzmacher1-0/+252
metze
2012-05-28s4:torture/samba3rpc: add smb2-pipe-nameStefan Metzmacher1-0/+84
metze
2012-05-02s4:torture:rpc: add a new test samba3.smb2-pipe-read-logoffMichael Adam1-0/+85
- open a pipe via smb2 - trigger a read which hangs since there is nothing to read - do a logoff - wait for the read to return and check the status (STATUS_PIPE_BROKEN) Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Wed May 2 19:57:45 CEST 2012 on sn-devel-104
2012-05-02s4:torture:rpc: add a new test samba3.smb2.pipe-read-tdisMichael Adam1-0/+85
- open a pipe via smb2 - trigger a read which hangs since there is nothing to read - do a tree disconnect - wait for the read to return and check the status (STATUS_PIPE_BROKEN)
2012-05-02s4:torture:rpc: add a test samba3.smb2-pipe-read-closeMichael Adam1-0/+87
* open a pipe via smb2 * trigger a read which hangs since there is nothing to read * close the pipe file handle * wait for the read to reaturn and check the status (NT_STATUS_PIPE_BROKEN)
2012-05-02s4:torture:rpc: fix a comment typo in samba3.smb2-reauth2Michael Adam1-1/+1
2012-05-02s4:torture:rpc: remove an accidentially committed character (in a comment)Michael Adam1-1/+1
2012-04-28s4:torture: add a check for talloc success in rpc.samba3.randomauth2Michael Adam1-1/+1
Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Sat Apr 28 02:10:39 CEST 2012 on sn-devel-104
2012-04-28s4:torture: add a check for talloc success in the rpc.samba3 suiteMichael Adam1-0/+1
2012-04-28s4:torture: add a rpc.samba3.smb2-reauth2 testMichael Adam1-0/+136
like smb-reauth2, only for smb2
2012-04-27s4:torture: add a rpc.samba3.smb2-reauth1 testMichael Adam1-1/+161
2012-04-26s4:torture: add a rpc.samba3.smb-reauth2 testMichael Adam1-0/+145
* Open session. * Reauth to anon. * Open lsa pipe. * Do lsa get username. * Rauth to original user. * Do lsa get username again. expected result: the getusername works and shows 'NT AUTHORITY\ANONYMOUS LOGON' in both calls. Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Thu Apr 26 02:27:12 CEST 2012 on sn-devel-104
2012-04-25s4:torture: add a rpc.samba3.smb-reauth1 testMichael Adam1-0/+165
It does reauth while using an rpc pipe: * open session * open lsa pipe * do lsa getusername * reauth to anonymous * do lsa getusername again * reauth back to original user * do reauth again result: lsa getusername is always possible and always gives the first (authenticated user)
2011-11-29s4:torture: use tctx->ev as event context for pollingStefan Metzmacher1-13/+7
metze
2011-04-13s4/torture Fix calls to charcnv functions to always supply converted_sizeAndrew Bartlett1-1/+2
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-03-16s4-smbtorture: use torture_assert in torture_samba3_rpc_sharesec().Günther Deschner1-23/+18
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Mar 16 17:47:11 CET 2011 on sn-devel-104
2011-03-16s4-smbtorture: use torture_fail and _assert in torture_samba3_rpc_getusername().Günther Deschner1-48/+16
Guenther
2011-03-16s4-smbtorture: remove explicit mem_ctx from torture_samba3_rpc_getusername().Günther Deschner1-20/+14
Guenther
2011-03-16s4-smbtorture: use torture_fail and _assert macros in torture_netlogon_samba3().Günther Deschner1-30/+16
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Mar 16 15:51:12 CET 2011 on sn-devel-104
2011-03-16s4-smbtorture: remove explicit mem_ctx from torture_netlogon_samba3().Günther Deschner1-12/+3
Guenther
2011-03-15s4-rap: decouple rap client code from torture binary, add new LIBCLI_RAP ↵Günther Deschner1-2/+1
subsystem. Guenther
2010-12-11s4-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij1-15/+15
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-07-16s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell1-40/+40
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-05-18Finish removal of iconv_convenience in public API's.Jelmer Vernooij1-27/+12
2010-04-26s4: use generated rap header.Günther Deschner1-1/+1
Guenther
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-2/+2
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-03-29s4:torture/rpc/samba3rpc.c: add explicit check for NTSTATUS r.out.resultGünther Deschner1-9/+143
Guenther Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-24s4-smbtorture: add missing checks for WERROR results in RPC-SAMBA3 tests.Günther Deschner1-1/+17
Guenther
2010-03-24s4-smbtorture: cleanup some of the RPC-SAMBA3 tests.Günther Deschner1-1076/+612
This avoids printf, uses simplication functions where appropriate, etc. Guenther
2010-03-24s4-smbtorture: add rap_get_servername to RPC-SAMBA3 family of tests.Günther Deschner1-0/+18
Guenther
2010-03-23s4-smbtorture: remove tailing whitespace in samba3rpc testsuite.Günther Deschner1-33/+33
Guenther
2010-03-19s4-smbtorture: put all RPC-SAMB3-X torture tests into their own torture_suite.Günther Deschner1-12/+35
Guenther
2010-03-17s4:torture/rpc/samba3rpc.c: make use of dcerpc_binding_handle stubsStefan Metzmacher1-71/+125
metze
2010-03-11winreg: add winreg_KeyType enum.Günther Deschner1-2/+2
Guenther
2010-02-26s4:torture/rpc: use generate_random_password()Stefan Metzmacher1-4/+4
metze
2010-01-21s4: Fix a few warnings.Jelmer Vernooij1-1/+0
2009-12-15smbtorture4: Add rpc-samba3-getaliasmembership-0Volker Lendecke1-0/+60
2009-10-20s4-torture: ran minimal_includes.pl over source4/tortureAndrew Tridgell1-11/+0
This reduces compile time somewhat.