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

193 Commits

Author SHA1 Message Date
Andrew Bartlett
18d7e5df0e dsdb: Do not hold the transaction over the IRPC call to perform a role transfer
This avoids one samba process locking out another from the DB.

Andrew Bartlett

Reviewed-by: Stefan Metzmacher <metze@samba.org>
2013-01-17 15:10:10 +01:00
David Disseldorp
bc59ebf523 selftest: enable samba3.smb2.ioctl tests against s3fs
These tests are now expected to pass with copy-chunk support now
implemented.

This effectively reverts 632b1042ae.

Reviewed by: Jeremy Allison <jra@samba.org>
2013-01-16 23:15:07 +01:00
Stefan Metzmacher
990448b499 s4:dsdb/acl_read: enable acl checking on search by default (bug #8620)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
2012-11-30 17:17:20 +01:00
Stefan Metzmacher
98d117a542 selftest/knownfail: samba*.smb2.oplock.stream1 doesn't work
metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Sep 26 07:57:12 CEST 2012 on sn-devel-104
2012-09-26 07:57:12 +02:00
Jeremy Allison
322654d792 We now pass "samba3.raw.acls.generic" and "samba3.smb2.acls.GENERIC" with the max access change.
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Sep 25 04:57:44 CEST 2012 on sn-devel-104
2012-09-25 04:57:44 +02:00
Michael Adam
841934647b selftest: we fail samba3.smb2.compound.interim2
We currently return NT_STATUS_CANCELLED where we should
return NT_STATUS_INTERNAL_ERROR.
2012-09-22 10:19:02 +02:00
Michael Adam
f43498b759 selftest: we currently fail smb2.durable-v2-open.app-instance
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Sep 19 23:05:43 CEST 2012 on sn-devel-104
2012-09-19 23:05:43 +02:00
Michael Adam
69c2e18865 selftest: we fail the smb2.durable-open.delete_on_close2 test
(we currently do not grant durable on reconnect when delete-on-close is set)

Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Tue Sep 11 16:22:20 CEST 2012 on sn-devel-104
2012-09-11 16:22:19 +02:00
Michael Adam
675871f7a7 selftest: pass smb2.durable-open.delete_on_close1 2012-09-11 14:29:54 +02:00
Stefan Metzmacher
7a51c5e469 selftest/knownfail: we pass some samba3.smb2.durable-* tests now
metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sat Sep  8 23:18:39 CEST 2012 on sn-devel-104
2012-09-08 23:18:39 +02:00
Stefan Metzmacher
51a3845190 selftest/knownfail: samba3.smb2.durable-open.alloc-size fails currently
metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Sep  7 10:47:29 CEST 2012 on sn-devel-104
2012-09-07 10:47:29 +02:00
Stefan Metzmacher
54ae7ca417 selftest/knownfail: samba3.smb2.durable-v2-open.reopen{1,2} fails currently
metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Sep  7 02:12:22 CEST 2012 on sn-devel-104
2012-09-07 02:12:22 +02:00
Jeremy Allison
5e0365dfe8 Now SEC_RIGHTS_PRIV_RESTORE and SEC_RIGHTS_PRIV_BACKUP don't include any generic bits (they're used directly in the fileserver where the generic bits have already been mapped into file specific bits) we need to add the generic bits to the test when we have these privileges.
Mark samba4.base.maximum_allowed knownfail until we implement NTCREATEX_OPTIONS_BACKUP_INTENT.
2012-08-31 20:32:37 -07:00
Jeremy Allison
4ff446636a The NTVFS server doesn't pass the SMB1 INHERITFLAGS test.
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Aug 30 21:38:02 CEST 2012 on sn-devel-104
2012-08-30 21:38:02 +02:00
Jeremy Allison
da670e4830 With the inheritance ACL changes we now pass samba3.smb2.acls.INHERITFLAGS. 2012-08-30 10:08:50 -07:00
Andreas Schneider
461209255d selftest: Remove spoolss tests from knownfail.
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu Aug 30 17:17:55 CEST 2012 on sn-devel-104
2012-08-30 17:17:55 +02:00
Andrew Bartlett
1a8fd711d7 selftest: Add test of smbclient --machine-pass against and using both s3 and s4
This uses both smbclient binaries to ensure that both work in both environments.

Andrew Bartlett
2012-08-28 07:57:29 +10:00
Volker Lendecke
f118eae76d s4-torture: Test for #9058
Signed-off-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Aug 27 17:43:09 CEST 2012 on sn-devel-104
2012-08-27 17:43:08 +02:00
Andrew Bartlett
74a4c40d4f selftest: Use new fake_acls module
This isolates us from the OS ACL library, and allows chown to 'work'
when we are non-root.  In turn, this ensures that we can test the SMB
-> POSIX layer even when the OS would refuse the set due to non-root
or simply not having acls enabled on this particular file system.

This should make a number of build farm tests much more reliable, and
allows a number more tests to pass.

Andrew Bartlett
2012-08-20 21:58:08 +10:00
Michael Adam
4f4bb1f20d s4:torture:basic: add more delete test - variants of deltest16 and deltest17
There seems to be a difference if the initial delete_on_close flag
was set on a handle that created the file or if the handle if was
for a file that already existed.

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Signed-off-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Aug 17 21:44:24 CEST 2012 on sn-devel-104
2012-08-17 21:44:24 +02:00
Stefan Metzmacher
1b487ad3d7 s3:selftest: add some tests against a share the requires encryption
metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Aug 17 16:34:26 CEST 2012 on sn-devel-104
2012-08-17 16:34:26 +02:00
Andrew Bartlett
df8e9c1287 s3-selftest: Add a seperate test for ACL tests using vfstest
This does not check for consistency or correctness yet, that will be
done with python unit tests.  The purpose of this test is to ensure
that the vfstest wrapper doesn't crash.

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Aug 16 09:32:25 CEST 2012 on sn-devel-104
2012-08-16 09:32:25 +02:00
Andrew Bartlett
807fb16086 selftest: Add knownfail for samba3.winbind.wbclient.wbcPingDc2
The soon-to-be-added command also fails against the s4 winbind.

Andrew Bartlett
2012-08-15 11:44:14 +10:00
Andrew Bartlett
624f11e4b4 s4-torture: Allow unix.whoami to test against a member server
This compares only the domain SIDs betwen the two servers, rather than
the full token, as well known and other SIDs may be added locally
in both cases.

This also expands the test environments this is run against to verify
this between our AD server and domain members.

Andrew Bartlett
2012-07-19 04:04:20 +02:00
Andrew Bartlett
4654dcaae7 s4-selftest: do a dbcheck on our two vampire DCs
However, due to using --domain-critical-only we have to knownfail the
vampire DC here, as we do not fill in the backlinks on non-critical
objects correctly.

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Jul  6 16:54:10 CEST 2012 on sn-devel-104
2012-07-06 16:54:09 +02:00
Andreas Schneider
8e32715d5d selftest: Update knownfail list for samba4.rpc.lsalookup. 2012-07-06 10:00:58 +02:00
Andrew Bartlett
207984464f s4-selftest: Test login with a password expired user
This uses rkpty to test changing an expired password.

Andrew Bartlett
2012-06-27 11:29:17 +02:00
Stefan Metzmacher
5c31e5d553 s3:selftest: run SMB2-SESSION-RECONNECT
metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Jun 25 22:42:03 CEST 2012 on sn-devel-104
2012-06-25 22:42:03 +02:00
Stefan Metzmacher
fbad41b1a4 selftest/known: samba3.smb2.session.*reconnect passes now
metze
2012-06-25 20:55:07 +02:00
Stefan Metzmacher
ed96b397f7 s3:selftest: run raw.session
Note: raw.session.reauth2 still fails:

	failure: samba3.raw.session.reauth2(s3dc) [
	_StringException: _StringException: ../source4/torture/raw/session.c:186: status
	was NT_STATUS_ACCESS_DENIED, expected NT_STATUS_OK: 2nd open failed

But it's not critical as real clients won't reauth as anonymous.

metze
2012-06-25 20:55:06 +02:00
Stefan Metzmacher
842f1c85b6 s3:selftest: run smbtorture3 SMB2-SESSION-REAUTH
metze
2012-06-25 20:55:06 +02:00
Stefan Metzmacher
ce22037621 s3:selftest: run smb2.session as ntlm and krb5
This activates the smb2.session.expire1 test, when krb5 is used.

metze
2012-06-25 20:55:06 +02:00
Stefan Metzmacher
500e646e2d selftest/knownfail: only reauth5 still fails
metze
2012-06-25 20:55:06 +02:00
Andrew Bartlett
0eab44c297 selftest: Test unix.whoami with kerberos on plugin_s4_dc
This also tests the comparison with LDAP on anonymous connections
and marks this as knownfail, while we investigate the correct
behaviour here.

Andrew Bartlett
2012-06-24 23:46:10 +10:00
Stefan Metzmacher
ea74131dc8 selftest/knownfail: mark ^samba4.raw.session.expire1 as knownfail
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Jun 22 15:03:16 CEST 2012 on sn-devel-104
2012-06-22 15:03:16 +02:00
Stefan Metzmacher
0c54e7c936 s4:torture/smb2: add smb2.durable-open.lock-oplock
metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Jun 22 03:37:54 CEST 2012 on sn-devel-104
2012-06-22 03:37:54 +02:00
Stefan Metzmacher
ff36ce74c0 selftest: samba3.smb2.durable-open.lock => samba3.smb2.durable-open.lock-lease
metze
2012-06-22 01:47:33 +02:00
Stefan Metzmacher
9089d487c4 s4:torture/smb2: add smb2.durable-open.delete_on_close1
metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Jun 21 10:19:00 CEST 2012 on sn-devel-104
2012-06-21 10:19:00 +02:00
Stefan Metzmacher
75494f75fa selftest: samba4 doesn't support reauth
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue May  8 02:43:49 CEST 2012 on sn-devel-104
2012-05-08 02:43:48 +02:00
Michael Adam
8026550115 selftest: make the knownfail patterns for the driver_info_winreg more specific
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed May  2 11:23:26 CEST 2012 on sn-devel-104
2012-05-02 11:23:25 +02:00
Andrew Bartlett
c65bc4aa92 selftest: mark samba3.raw.samba3checkfsp as flapping on plugin_s4_dc
This fails on my Fedora 16 workstation, but passes on sn-devel.

Andrew Bartlett
2012-05-02 01:00:13 +02:00
Andrew Bartlett
c350422bfe selftest: mark samba3.raw.acls.inheritance(plugin_s4_dc) as flapping
This seems to succeed on sn-devel, but fails in a local make test on
my workstation.

Andrew Bartlett
2012-05-02 01:00:13 +02:00
Andrew Bartlett
ecc0ac5103 selftest: add knownfail entries for plugin_s4_dc tests 2012-05-02 01:00:13 +02:00
Andrew Bartlett
7905f97494 selftest: change knownfail to cope with running plugin_s4_dc as well 2012-05-02 01:00:13 +02:00
Andrew Bartlett
5f0707801a selftest: Enable ACL testing against the s3dc environment
Previously, ACL tests were skipped and the correct modules for ACL
testing were not loaded.

The addition of a knownfail entry for raw.samba3* tests is due to an
inconsitancy between the behaviour with and without ACL modules loaded
- posix chown calls appear to be ignored in this mode.

Andrew Bartlett
2012-05-02 01:00:12 +02:00
Andrew Bartlett
0cb0427f13 selftest: Place the test environment at the end of the failure lines
This allows a knownfail entry to be added for only one environment, rather than
all environments.

Andrew Bartlett
2012-04-27 14:51:05 +02:00
Andrew Bartlett
67a851a050 selftest: Remove silly space before unit test name
When we have no description, there is no need for a leading space here

Andrew Bartlett
2012-04-27 14:51:05 +02:00
Michael Adam
ef8e228a5b selftest: mark the driver_info_winreg tests knownfail.
They only get executed when driver files are around.

Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-25 15:42:29 +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
e25f830f1d selftest: samba3.smbtorture_s3.LOCAL-TALLOC-DICT works now
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Mar 13 10:38:20 CET 2012 on sn-devel-104
2012-03-13 10:38:20 +01:00
Stefan Metzmacher
b42825fdae selftest: mark samba3.smb2.session tests as knownfail instead of skip
Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Mar  9 02:34:38 CET 2012 on sn-devel-104
2012-03-09 02:34:38 +01:00
Stefan Metzmacher
0eaf91ffb8 selftest: mark samba4.smb2.getinfo.getinfo as knownfail
Samba4 seems to have problems with streams on directories.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Mar  7 12:44:10 CET 2012 on sn-devel-104
2012-03-07 12:44:10 +01:00
Gregor Beck
25ba1c7bc6 selftest: remove samba3.smb2.*scan from knownfail
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:07 +01:00
Gregor Beck
632b1042ae selftest: mark samba3.smb2.ioctl tests knownfail
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:06 +01:00
Stefan Metzmacher
f0392e1b04 selftest: mark samba3.smb2.durable-v2-open tests as knownfail
metze
2012-03-06 23:53:06 +01:00
Gregor Beck
6fb34b951e selftest: mark samba3.smb2.durable-open.oplock test knownfail
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:06 +01:00
Gregor Beck
3c826d4411 selftest: mark samba3.smb2.durable-open reopen tests knownfail
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:06 +01:00
Gregor Beck
a3994f673b selftest: samba3.smb2.compound.invalid2 works
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:06 +01:00
Gregor Beck
7dc26c2799 selftest: mark smb2 tests knownfail failing in 3.6
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:06 +01:00
Andrew Bartlett
fc5762388a selftest: run smbtorture_s3 tests against the ntvfs file server
This checks not only the behaviour of the NTVFS file server, but also the
client library and authentication stack.

Andrew Bartlett
2012-03-05 08:15:05 +01:00
Michael Adam
a87e3ec107 s4:selftest: remove old "samba4.smb2.persistent.handle1" from knownfail - test does not exist 2012-02-28 01:27:59 +01:00
Andrew Bartlett
95d3096f98 s3-selftest: Remove .posix_s3 from s3 test names
As far as I can tell, this simply referred to the posix_s3.sh script
that originally ran these tests.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Feb 16 06:57:09 CET 2012 on sn-devel-104
2012-02-16 06:57:08 +01:00
Christian Ambach
ad2a2c4e3a s4:torture: add another SMB2 rename test
this mimics Word 2010 saving a file

Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Mon Feb 13 18:33:43 CET 2012 on sn-devel-104
2012-02-13 18:33:43 +01:00
Christian Ambach
be3e479feb selftest: add smb2.rename to testsuite
Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Fri Feb 10 15:02:51 CET 2012 on sn-devel-104
2012-02-10 15:02:51 +01:00
Andrew Bartlett
06f7105490 s3-libcli Change krb5 smb sealing to call via gensec and gensec_gse
This also fixes the support for smb sealing with krb5 in make test, as
this now relies on secrets.tdb rather than /etc/krb5.keytab.

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-20 23:55:54 +01:00
Andrew Bartlett
339d5ea4e6 s3-selftest The krb5 encrypted CIFS test was wrong
Sadly this fails in the test environement for now.  It needs a /etc/krb5.keytab
which we do not provide.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Jan 13 04:57:22 CET 2012 on sn-devel-104
2012-01-13 04:57:22 +01:00
Volker Lendecke
f994f0a342 Fix the local-memcache test for 64-bit
The memcache test walks the purge functionality. The maximum memcache size also
takes all memcache internal headers into account. Those headers contain
pointers, so on 64-bit they take more space...

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Jan  5 22:01:00 CET 2012 on sn-devel-104
2012-01-05 22:01:00 +01:00
Andrew Bartlett
7b4f2fad54 s3-selftest: Add test for rpcclient, including kerberos authentication
Some knownfail entries are added for things the currently fail.

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-05 17:17:28 +01:00
Andrew Bartlett
c9d929af8b s4-lsarpc handle more info levels in SetInfoTrustedDomain calls
This uses the very helpful conversion functions written for the s3 lsa server
and places these in common.

Andrew Bartlett
2011-12-12 12:57:07 +01:00
Andrew Bartlett
e42e1ac089 s4-lsarpc Fix segfaults found by the samba4.rpc.lsa.forest test
This allows us to move this test to knownfail from skip
2011-12-12 12:57:07 +01:00
Jelmer Vernooij
116a150231 knownfail: Mark some ldap.acl search tests as no longer failing.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Dec  6 00:43:40 CET 2011 on sn-devel-104
2011-12-06 00:43:39 +01:00
Jelmer Vernooij
d9459ed9d3 knownfail: Remove working winbind tests. 2011-12-05 23:11:05 +01:00
Jelmer Vernooij
bf2b801a55 knownfail: The resolve async tests work now. 2011-12-05 23:11:05 +01:00
Jelmer Vernooij
b3f81c671a knownfail: remove now succeeding local.iconv test. 2011-12-05 23:11:05 +01:00
Jelmer Vernooij
a3949f4c86 knownfail: remove base.maximum_allowed test, as it appears to be passing now. 2011-12-05 23:11:05 +01:00
Jelmer Vernooij
d9aeb2fc33 knownfail: re-add createx test. 2011-12-05 23:11:05 +01:00
Jelmer Vernooij
512d11492f knownfail: Exclude specific list of SMB2 oplock tests. 2011-12-05 23:11:05 +01:00
Jelmer Vernooij
9968fabde3 knownfail: Remove smb2.compound tests, they pass now. 2011-12-05 23:11:05 +01:00
Jelmer Vernooij
be373289db Remove samba4.raw.oplock.brl4. Bug 7928 has been fixed. 2011-12-05 23:11:05 +01:00
Jelmer Vernooij
0190a5589c knownfail: Match on end-of-file, not end-of-file-access. 2011-12-05 23:11:05 +01:00
Jelmer Vernooij
f186425a1b knownfail: samba4.base.createx_access.createx_access works. 2011-12-05 23:11:05 +01:00
Jelmer Vernooij
850c83821c knownfail: LogonControl2Ex works. 2011-12-05 23:11:05 +01:00
Jelmer Vernooij
4c3696c02c knownfail: Ignore failures for drsuapi tests over other transports as well. 2011-12-05 23:11:05 +01:00
Jelmer Vernooij
4d551a91a5 samba4: Remove rpc-handles mixed-shared tests from known failing list. 2011-12-05 23:11:05 +01:00
Jelmer Vernooij
4673559894 selftest: Re-mark some drsuapi tests as known failing. 2011-12-05 23:11:05 +01:00
Jelmer Vernooij
f9091d6fa0 selftest: Don't mark drsuapi tests as knownfailing. 2011-12-05 23:11:05 +01:00
Jelmer Vernooij
4f03164373 selftest: 'samba4.rpc.netlogon on ncalrpc with seal,padcheck.netlogon.DsrEnumerateDomainTrusts' now succeeds, remove it from the knownfail list. 2011-12-05 23:11:05 +01:00
Jelmer Vernooij
f528733d7b GetForestTrustInformation is implemented, remove it from knownfail. 2011-12-05 23:11:04 +01:00
Jelmer Vernooij
112d07256a rap netsessiongetinfo apparently *is* provided by samba3, so don't list it in knownfail. 2011-12-05 23:11:04 +01:00
Jelmer Vernooij
e6b4a74406 s3-selftest: Don't mark samba3.blackbox.failure.success test as known failing. 2011-12-05 23:11:04 +01:00
Jelmer Vernooij
5643d37a00 selftest: Split out flapping tests into a separate file. 2011-12-05 23:11:04 +01:00
Andrew Bartlett
1bc787d271 s3-selftest Add all the LOCAL-* smbtorture tests to make test
The extra knownfail and skip entries are for tests the currently do
not pass or hang.  We need to work out why this happens, and fix the
test or the test invocation.

Andrew Bartlett
2011-10-28 13:10:28 +02:00
Andrew Bartlett
659ec79245 selftest: Have only one set of selftest knownfail and skip files
Listing tests that are not ever proposed (eg samba4.* in the samba3 selftest)
is not an error, so just combine the lists.

This is being done because some folks trying to learn how our 'make
test' works are having trouble following the distributed nature of the
selftest system.

Andrew Bartlett
2011-10-28 13:10:27 +02:00