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

5251 Commits

Author SHA1 Message Date
Stefan Metzmacher
c211216e43 s4:torture/samba3rpc: add smb2-pipe-name
metze
2012-05-28 19:51:56 +02:00
Alexander Bokovoy
2ddf89a2bc Introduce system MIT krb5 build with --with-system-mitkrb5 option.
System MIT krb5 build also enabled by specifying --without-ad-dc

When --with-system-mitkrb5 (or --withou-ad-dc) option is passed to top level
configure in WAF build we are trying to detect and use system-wide MIT krb5
libraries. As result, Samba 4 DC functionality will be disabled due to the fact
that it is currently impossible to implement embedded KDC server with MIT krb5.

Thus, --with-system-mitkrb5/--without-ad-dc build will only produce
  * Samba 4 client libraries and their Python bindings
  * Samba 3 server (smbd, nmbd, winbindd from source3/)
  * Samba 3 client libraries

In addition, Samba 4 DC server-specific tests will not be compiled into smbtorture.
This in particular affects spoolss_win, spoolss_notify, and remote_pac rpc tests.
2012-05-23 17:51:50 +03:00
Volker Lendecke
5c219a1c5c s4:torture: Add raw.session.reauth2 test
Signed-off-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri May 18 18:25:42 CEST 2012 on sn-devel-104
2012-05-18 18:25:42 +02:00
Stefan Metzmacher
61e023bbf6 s4:torture: rename raw.session.reauth => raw.session.reauth1
metze
2012-05-18 16:36:16 +02:00
Andrew Bartlett
45082a88c7 s4-torture: Improve torture test boilerplate, use torture_assert()
This ensures that if this fails, it is reported as a subunit error correctly.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri May 18 09:35:13 CEST 2012 on sn-devel-104
2012-05-18 09:35:13 +02:00
Andrew Bartlett
8c52d1b8ac s4-torture: Always use torture_assert() to handle failures 2012-05-18 15:44:43 +10:00
Andrew Bartlett
e919cadcca s4-torture: provide correct torture failures for failure to connect 2012-05-18 15:44:43 +10:00
Andrew Bartlett
975e799e86 s4-torture: Fix rpc.samr.priv test to use torture_assert() macros 2012-05-18 15:44:43 +10:00
Stefan Metzmacher
918eb3ecc5 s4:torture: add smb2.session.expire1
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu May 17 21:53:11 CEST 2012 on sn-devel-104
2012-05-17 21:53:11 +02:00
Stefan Metzmacher
50e1861381 s4:torture: add smb2.session.reconnect2 test
This uses just one transport connection
and demonstrates the implicit logoff of the previous session.

metze
2012-05-17 20:04:35 +02:00
Stefan Metzmacher
908b737a29 s4:torture: rename smb2.session.reconnect to smb2.session.reconnect1
metze
2012-05-17 20:04:34 +02:00
Stefan Metzmacher
184227d269 s4:torture: remove unused vars in smb2.session.reauth*
metze
2012-05-17 20:04:34 +02:00
Stefan Metzmacher
865e9c4560 s4:torture/raw/context: test a session setup with a given invalid vuid
On a session setup with EXTENDED_SECURITY we'll get ERRSRV:ERRbaduid,
while a session setup without EXTENDED_SECURITY ignores the given vuid.

Before this test was doing a reauth of a given vuid, which works for newer
Windows versions, but Windows 2000 gives INVALID_PARAMETER.

metze
2012-05-09 01:02:16 +02:00
Michael Adam
6713ebfd60 s4:torture: add a new smb2.session.reauth5 test: rename after reauth to anon - fails 2012-05-08 18:49:05 +02:00
Michael Adam
35009eb3a9 s4:torture: add a new smb2.session.reauth4 test: setting security descriptor after reauth to anon - works 2012-05-08 18:49:05 +02:00
Stefan Metzmacher
5d4d8fefe2 s4:torture/raw/context: add subtests as torture testcases
TODO: add test_session with 'use spnego = false'.
      We need a way to do set an option just for one test case.

Note: the 'use spnego = false' was ignored before as it's
      only used on the first session setup on a connection.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue May  8 04:50:39 CEST 2012 on sn-devel-104
2012-05-08 04:50:39 +02:00
Stefan Metzmacher
dd804dd8ca s4:torture/raw/context: INVALID_PARAMETER vs. LOGON_FAILURE...
If the try a session setup without EXTENDED_SECURITY after
one with EXTENDED_SECURITY Windows 2008 R2 returns INVALID_PARAMETER,
while Windows 2000 sp4 returns LOGON_FAILURE...

metze
2012-05-08 02:57:07 +02:00
Stefan Metzmacher
7c0c1fabd0 s4:torture/raw: make torture_raw_context a test suite
metze
2012-05-08 02:57:07 +02:00
Stefan Metzmacher
05bed62371 s4:torture/raw/context: make use of torture_* macros and avoid 'printf'
metze
2012-05-08 02:57:07 +02:00
Stefan Metzmacher
27efeabab4 s4:torture/raw/context: pass tctx to test_pid_exit_only_sees_open()
metze
2012-05-08 02:57:07 +02:00
Stefan Metzmacher
c68cba36aa s4:torture/raw/session: make sure we got a reauth of the existing session
metze
2012-05-08 00:50:55 +02:00
Alexander Bokovoy
21d383d04f s4:torture: auth/pac.c: use Kerberos wrapper for krb5_keyblock_init
Signed-off-by: Simo Sorce <idra@samba.org>
2012-05-04 16:51:29 +02:00
Alexander Bokovoy
4875a12ab8 Avoid using Heimdal-specific tests in MIT build 2012-05-04 16:51:29 +02:00
Volker Lendecke
eb6e22bcab s4:torture: add a check for talloc success in test_session_reauth
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Fri May  4 16:50:59 CEST 2012 on sn-devel-104
2012-05-04 16:50:58 +02:00
Michael Adam
027f2b3406 s4:torture: add a new smb2.session.reauth3 test - getting security descriptor
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Thu May  3 17:38:14 CEST 2012 on sn-devel-104
2012-05-03 17:38:13 +02:00
Michael Adam
ac1e1af8cc s4:torture:rpc: add a new test samba3.smb2-pipe-read-logoff
- 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-02 19:57:45 +02:00
Michael Adam
1c14538f60 s4:torture:rpc: add a new test samba3.smb2.pipe-read-tdis
- 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-02 18:11:06 +02:00
Michael Adam
ecc28b8e5d s4:torture:rpc: add a test samba3.smb2-pipe-read-close
* 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-02 18:11:05 +02:00
Michael Adam
e615c22bc2 s4:torture:rpc: fix a comment typo in samba3.smb2-reauth2 2012-05-02 18:11:05 +02:00
Michael Adam
f479d8ff59 s4:torture:rpc: remove an accidentially committed character (in a comment) 2012-05-02 18:11:04 +02:00
Andrew Bartlett
fd2b21fc38 s4-libnet: Add mem_ctx to libnet_rpc_useradd calls (bug #8889) 2012-04-30 13:08:28 +02:00
Andrew Bartlett
645e4bb436 s4-torture: convert samba3misc tests to use torture_failure and torture_assert
This helps us when these tests fail, as subunit-formatted failures can
be declared as knownfail entries, and show up correctly in the make
test output.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Apr 30 08:34:52 CEST 2012 on sn-devel-104
2012-04-30 08:34:51 +02:00
Andrew Bartlett
6b982c365c s4-torture: move samba3 tests to use torture helper functions 2012-04-30 07:00:05 +02:00
Andrew Bartlett
7e9ed05277 s4-torture: Move various samba3 tests to the torture_suite_add_1smb_test wrapper 2012-04-30 07:00:05 +02:00
Michael Adam
12ee793332 s4:torture: add a check for talloc success in rpc.samba3.randomauth2
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Sat Apr 28 02:10:39 CEST 2012 on sn-devel-104
2012-04-28 02:10:38 +02:00
Michael Adam
97d0b8bfff s4:torture: add a check for talloc success in the rpc.samba3 suite 2012-04-28 00:34:36 +02:00
Michael Adam
8825274f6c s4:torture: add a rpc.samba3.smb2-reauth2 test
like smb-reauth2, only for smb2
2012-04-28 00:31:57 +02:00
Michael Adam
0508f84426 s4:torture: add a rpc.samba3.smb2-reauth1 test 2012-04-27 17:44:06 +02:00
Matthieu Patou
307e2d1387 torture: change dfs tests now that we return a level 4 when level 4 is requested
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Thu Apr 26 21:25:37 CEST 2012 on sn-devel-104
2012-04-26 21:25:37 +02:00
Andrew Bartlett
ed9f903b12 s4-torture: never return false in the raw.composite torture test
We must use torture_assert() macros to ensure that the failure is
recorded in the subunit stream correctly, rather than being returned
as an unknown 'error'.  (We cannot handle error results as knownfail).

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Apr 26 04:00:16 CEST 2012 on sn-devel-104
2012-04-26 04:00:16 +02:00
Michael Adam
a7ffbf467d s4:torture: add a rpc.samba3.smb-reauth2 test
* 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-26 02:27:11 +02:00
Michael Adam
71f88dbbb5 s4:torture: add a rpc.samba3.smb-reauth1 test
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)
2012-04-25 23:15:41 +02:00
Gregor Beck
e563e5a2be s4:torture: add a raw.session suite with a raw.session.reauth test
Signed-off-by: Michael Adam <obnox@samba.org>
2012-04-25 23:15:40 +02:00
Michael Adam
421b3984cd s4:torture:rpc:spoolss: also initialize driverName before checking it in test_PrinterData_DsSpooler()
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-25 14:23:05 +02:00
Andrew Bartlett
e346bba1fc s4-torture: enable raw.composite test again, and convert to new style test
This test has been skipped for some time, but is an important test for parallel operation.

Andrew Bartlett
2012-04-25 17:43:23 +10:00
Stefan Metzmacher
84ae92da6b s4:libnet: pass an explicit mem_ctx to libnet_rpc_userinfo_send() (bug #8889)
This hopefully fixes the flakey autobuild.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Apr 24 16:43:03 CEST 2012 on sn-devel-104
2012-04-24 16:43:03 +02:00
Jeremy Allison
916297e045 Fix samba3.raw.samba3hide test - ensure we set up POSIX capabilities
before doing POSIX calls like chmod.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Apr 18 23:14:40 CEST 2012 on sn-devel-104
2012-04-18 23:14:40 +02:00
Volker Lendecke
b0aaa49e3f s4-torture: Fix the raw.notify mask test
When we do the notify triggers via a different client connection, adding the
notify record becomes subject to a race. Add a dummy operation after the
initial changenotify request was sent to make sure the notify record actually
arrived.

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Wed Apr 18 19:47:53 CEST 2012 on sn-devel-104
2012-04-18 19:47:53 +02:00
Volker Lendecke
03291270a6 s4-torture: Use 2 client connections for raw.notify.mask
This makes the test more interesting in a cluster
2012-04-18 18:16:28 +02:00
Volker Lendecke
5607f91796 s4-torture: Use 2 client connections for raw.notify.tree
This makes the test more interesting in a cluster
2012-04-18 18:16:27 +02:00
Volker Lendecke
1bb7d25176 s4-torture: Use 2 client connections for raw.notify.recursive
This makes the test more interesting in a cluster
2012-04-18 18:16:27 +02:00
Michael Adam
2085c20bb1 s4:torture:smb2: add a session.reauth2 test.
* open a file,
* reauth anonymously
* try to access file via handle
* reauth as user
* try to access file again

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Apr 18 16:53:35 CEST 2012 on sn-devel-104
2012-04-18 16:53:35 +02:00
Michael Adam
f3ac212d8b s4:torture:smb2: rename the file in the session-reauth1 test more systematically
The original name seems to have come in via copy and paste.
2012-04-18 15:17:36 +02:00
Michael Adam
361deb856b s4:torture:smb2: rename the session_reauth test to session_reauth1
More tests reauth? will follow...
2012-04-18 15:17:36 +02:00
Volker Lendecke
26b9ab2780 s4-torture: notify all is empty now
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Wed Apr 18 15:16:13 CEST 2012 on sn-devel-104
2012-04-18 15:16:12 +02:00
Volker Lendecke
bd3ceb8792 s4-torture: Separate out the notify alignment subtest 2012-04-18 13:42:14 +02:00
Volker Lendecke
6b445cdfc6 s4-torture: Separate out the notify basedir subtest 2012-04-18 13:42:14 +02:00
Volker Lendecke
98f8f4236c s4-torture: Separate out the notify overflow subtest 2012-04-18 13:42:14 +02:00
Volker Lendecke
a7cff2b72e s4-torture: Separate out the notify tree subtest 2012-04-18 13:42:14 +02:00
Volker Lendecke
d1a898a76b s4-torture: Separate out the notify double subtest 2012-04-18 13:42:14 +02:00
Volker Lendecke
c180cd0468 s4-torture: Separate out the notify tcp_dis subtest 2012-04-18 13:42:14 +02:00
Volker Lendecke
e5181d0460 s4-torture: Separate out the notify ulogoff subtest 2012-04-18 13:42:13 +02:00
Volker Lendecke
07def3221e s4-torture: Separate out the notify exit subtest 2012-04-18 13:42:13 +02:00
Volker Lendecke
f864b93b31 s4-torture: Separate out the notify tdis subtest 2012-04-18 13:42:13 +02:00
Volker Lendecke
b570668f55 s4-torture: Separate out the notify file subtest 2012-04-18 13:42:13 +02:00
Volker Lendecke
6f6192b998 s4-torture: Separate out the notify mask_change subtest 2012-04-18 13:42:13 +02:00
Volker Lendecke
5429593eed s4-torture: Separate out the notify recursive subtest 2012-04-18 13:42:13 +02:00
Volker Lendecke
87e2a549e9 s4-torture: Separate out the notify mask subtest 2012-04-18 13:42:13 +02:00
Volker Lendecke
74f134df72 s4-torture: Separate out the notify dir subtest 2012-04-18 13:42:13 +02:00
Volker Lendecke
13666857f2 s4-torture: Separate out the notify tcon subtest 2012-04-18 13:42:12 +02:00
Volker Lendecke
8e41c2f81c s4-torture: Make notify a suite 2012-04-18 13:42:12 +02:00
Matthieu Patou
167c6eb61e s4-schema: rename dsdb_attribute_from_ldb to dsdb_set_attribute_from_ldb and dsdb_class_from_ldb to dsdb_set_class_from_ldb 2012-04-18 00:06:59 +02:00
Simo Sorce
70c303a7f3 auth-krb: Move pac related util functions in a single place.
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-12 12:06:43 +02:00
Jelmer Vernooij
b4d35bee38 libndr: Rename policy_handle_empty to ndr_policy_handle_empty.
This makes the NDR namespace a bit clearer, in preparation of ABI checking.
2012-03-20 13:54:07 +01:00
Jelmer Vernooij
95ca5fbadd libndr: Rename ndr64_transfer_syntax and null_ndr_syntax_id so they have a ndr_ prefix.
This makes the NDR namespace a bit clearer, in preparation of ABI checking.
2012-03-20 13:54:07 +01:00
Jelmer Vernooij
85f128e8f3 nbench: Fix typo.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Mar 13 14:53:07 CET 2012 on sn-devel-104
2012-03-13 14:53:06 +01:00
Jelmer Vernooij
ce4531ee31 tdb_wrap: Move to specific directory.
It's a bit confusing to mix low-level and high-level libraries.  We had
multiple libraries in one directory, and there were have circular
dependencies with other libraries outside that directory (in this case,
samba-hostconfig).

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Mar 10 23:13:01 CET 2012 on sn-devel-104
2012-03-10 23:13:01 +01:00
Stefan Metzmacher
fa62f9474b s4:torture/smb2: avoid hanging in smb2.session.reconnect against samba
Now we fail the test directly instead of waiting for oplocks to timeout.

Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>

metze
2012-03-08 14:23:22 +01:00
Gregor Beck
ee6cd3b84e s4:torture: smb2.getinfo test return status of stream creation
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-07 10:57:27 +01:00
Gregor Beck
aa993a89f0 s4:torture/smb2: add simple smb2.session.reauth test
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-07 10:57:27 +01:00
Gregor Beck
46a96c42a2 s4:torture make a suite for smb2.*scan
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:07 +01:00
Gregor Beck
59f818d80b s4:torture: print ntstatus on failure of setup complex file in smb2 setinfo/getinfo scan
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:07 +01:00
Gregor Beck
af6555d2a9 s4:torture: use different filenames for smb2 setinfo and getinfo scan
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:07 +01:00
Gregor Beck
80436ed099 s4:torture: cleanup after smb2 setinfo scan
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:07 +01:00
Gregor Beck
2b3ed65273 s4:torture: cleanup after smb2 getinfo scan
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:07 +01:00
Gregor Beck
10f266b6ed s4:torture: avoid reporting error on failure of smb2.ioctl tests
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:06 +01:00
Gregor Beck
01774d65c2 s4:torture: avoid reporting error on failure of smb2.getinfo test
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:06 +01:00
Gregor Beck
2aa81dc817 s4:torture: avoid reporting error on failure of smb2.setinfo test
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:06 +01:00
Gregor Beck
dc44cbfb1a s4:torture: avoid reporting error on failure of smb2.streams tests
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:06 +01:00
Gregor Beck
b80e95633e s4:torture: avoid reporting error on failure of smb2.acls tests
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:06 +01:00
Michael Adam
e6283801f4 s4:torture:smb2: start a testsuite for durable v2 handles: durable and persistent opens 2012-03-03 17:03:07 +01:00
Michael Adam
1451e5f663 s4:libcli:smb2: store the share capabilites in the smb2_tree object 2012-03-03 17:03:07 +01:00
Michael Adam
57d99bc14a s4:torture:smb2: rename some of the durable-handle subtests more systematically 2012-03-03 17:03:06 +01:00
Michael Adam
72ab279316 s4:torture:smb2:durable_open: update (C) 2012-03-03 17:03:06 +01:00
Stefan Metzmacher
4c92866fac s4:torture:smb2:durable-open: skip the open-with-lease test on servers without lease support
Signed-off-by: Michael Adam <obnox@samba.org>
2012-03-03 17:03:06 +01:00
Michael Adam
d276356168 s4:torture:smb2: durable-open: make tables static 2012-03-03 17:03:06 +01:00
Stefan Metzmacher
79576df9f0 s4:test:smb2:durable_open: skip lease tests when the server does not support leases
Signed-off-by: Michael Adam <obnox@samba.org>
2012-03-03 17:03:06 +01:00
Stefan Metzmacher
579bb0a934 s4:torture:smb2:durable_open: remove unused lease variables in the open-oplock test
Signed-off-by: Michael Adam <obnox@samba.org>
2012-03-03 17:03:06 +01:00
Matthias Dieter Wallnöfer
31bf81a03c s4:torture/smb2/ioctl.c - quiet format specifier warnings on 32 bit
Achieve this by using platform independent casts.
2012-03-01 22:04:46 +11:00
Stefan Metzmacher
51a15e9d31 s4:torture/smb2: remove unused var
metze
2012-02-29 05:49:10 +01:00