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

29374 Commits

Author SHA1 Message Date
Stefan Metzmacher
2c4255084a s4:scripting: rename upgradeprovision -> samba_upgradeprovision
metze
2012-09-12 07:07:27 +02:00
Stefan Metzmacher
a0baaf2064 s4:setup: remove standalone 'provision'
metze
2012-09-12 07:07:27 +02:00
Andrew Bartlett
ac804f0d7f smbd-posix_acls: Use a IDL union to store the ACL entry
This is a clearer, long-term-stable structure we can hash without
risking it changing.

Andrew Bartlett
2012-09-12 05:26:16 +02:00
Michael Adam
df5f962c60 s4:torture:smb2: fix error reporting in the oplock-brl3 test
(Error was set to an unused variable)

Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Tue Sep 11 22:09:18 CEST 2012 on sn-devel-104
2012-09-11 22:09:18 +02:00
Michael Adam
439c907f6b s4:torture:smb2: fix error reporting in the oplock-brl2 test
(Error was set to an unused variable)
2012-09-11 20:10:08 +02:00
Michael Adam
e9df135ca5 s4:torture:smb2: fix error reporting in the oplock-brl1 test
(Error was set to an unused variable)
2012-09-11 20:10:08 +02:00
Michael Adam
c960e55fbf s4:torture:smb2: remove an unused variable from the oplock-exclusive2 test 2012-09-11 20:10:07 +02:00
Michael Adam
7c6f1fb294 s4:torture:smb2: remove an unused variable from the oplock-exclusive1 test 2012-09-11 20:10:07 +02:00
Andrew Bartlett
6fbce905db provision: Only give the "no posix ACLs" exception if we could not set the SD
This will allow us to run make test on all platforms again, as we emululate the posix ACLs using the fake_acls
module.  By then testing smbd.have_posix_acls() we gain a more specific error message.

Andrew Bartlett
2012-09-11 16:25:36 +02:00
Andrew Bartlett
1a3d6de20a torture: Add discard_const_p() to work around dlz_create prototype 2012-09-11 16:25:35 +02:00
Michael Adam
a4358f6ffd s4:torture:smb2: add a durable-open.delete_on_close2 test
This test verifies that the delete on close flag is kept during
a disconnect and is still active on the reconnected handle.
When the reconnected handle is closed, the file is deleted.
2012-09-11 14:29:54 +02:00
Michael Adam
3d7196d0a4 s4:torture:smb2: fix the durable-open.delete_on_close1 test
This test used to flap because there was an invalid check of
the file-id. This might or might not be the same after a
new open. Hence the flapping.

The new version simply opens a file as durable handle with
delete_on_close set, writes a byte and closes the file.
Then on a new connect, the file is opened again, and it is checked
that the file has been created (again) and that it is empty.
2012-09-11 14:29:54 +02:00
Stefan Metzmacher
fdd2a7e65f s4:setup/tests: make use of samba-tool domain provision
metze
2012-09-11 08:35:56 +02:00
Stefan Metzmacher
318770a67f s4:scripting: install samba_kcc to SBINDIR
It's use as "%s/samba_kcc", dyn_SCRIPTSBINDIR" similar
to samba_spnupdate and samba_dnsupdate.

metze
2012-09-11 08:35:56 +02:00
Stefan Metzmacher
15c793fa34 s4:scripting: use the 'sbin_files' variable
metze
2012-09-11 08:35:56 +02:00
Stefan Metzmacher
a4fc79f8fc s4:samba-tool: add 'samba-tool domain provision'
This is mostly a copy of the standalone source4/setup/provision.

metze
2012-09-11 08:35:49 +02:00
Stefan Metzmacher
ca3f285390 s4:python/netcmd: give the Commad implementations access to the raw arguments
metze
2012-09-11 08:23:56 +02:00
Stefan Metzmacher
7f98cf1698 s4:samba-tool: remove unused code in testparm.py
metze
2012-09-11 08:23:56 +02:00
Stefan Metzmacher
475755ef9f s4:samba-tool: allow sys.exit(ret) to control the exit code
Some subcommands may use sys.exit(0), which shouldn't be reported
as an error to the caller.

metze
2012-09-11 08:23:55 +02:00
Volker Lendecke
814dc3c62b smbtorture: Test that delete requests are not special
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-09-10 14:58:51 -07:00
Michele Baldessari
008bb29023 Set trans to a value that is not LDB_SUCCESS (all LDB_ constants are
positive) so that any "goto failed:" call does not end up calling
ldb_transaction_cancel() if trans is initialized to 0 (LDB_SUCCESS)
by chance.

Signed-off-by: Jeremy Allison <jra@samba.org>
2012-09-10 14:58:28 -07:00
Stefan Metzmacher
06809f4ba9 s4:provision: ask the admin about the desired DNS implementation
In interactive mode we should let the admin confirm which
implementation he wants.

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Sep 10 11:45:08 CEST 2012 on sn-devel-104
2012-09-10 11:45:08 +02:00
Matthieu Patou
e3b6b465ee Force cast to long as on some platform tv_usec is 32bit long
Autobuild-User(master): Matthieu Patou <mat@samba.org>
Autobuild-Date(master): Mon Sep 10 07:33:50 CEST 2012 on sn-devel-104
2012-09-10 07:33:50 +02:00
Michael Adam
4931a9010f s4:torture:smb2: simplify durable-open.file-position test to only use one I/O and one handle
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07 23:39:42 +02:00
Michael Adam
97be058c9e s4:torture:smb2: change the durable-open.file-position test to use one connection only
And do a tcp disconnect followed by a session reconnect instead
of immediately using the already opened second connection.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07 23:39:39 +02:00
Michael Adam
32956300a7 s4:torture:smb2: fix durable-v2-open.reopen2 to pass against windows
The DH2Q response blob is not sent upon successful durable handle v2 reconnect.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07 23:39:37 +02:00
Michael Adam
1b96a6df19 s4:torture:smb2: simplify the durable-v2.reopen2 test (using only one i/o struct)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07 23:39:34 +02:00
Michael Adam
fc0631cae6 s4:torture:smb2: simplify the durable-v2-open.reopen1 test
only use one smb2_create i/o struct and store the create GUID centrally

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07 23:39:31 +02:00
Michael Adam
67290e7d2e s4:torture:smb2: in the durable-v2-reopen1 test, use a minimal request
don't copy the old request, but only set the necessary fields

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07 23:39:29 +02:00
Michael Adam
d3946fed75 s4:torture:smb2: fix cut'n'paste error in the durable-v2-open.reopen2 test
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07 23:39:25 +02:00
Michael Adam
e1dd2fc2fa s4:torture:smb2: fix name of test file in the durable-open.alloc-size test
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07 23:39:21 +02:00
Alexander Bokovoy
dd2ab2e679 s4-torture: dns torture test depends on AD DC build 2012-09-07 12:31:42 +02:00
Michael Adam
972bf34332 s4:torture:smb2: add a test for alloc size behaviour under durable reconnect
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-09-07 08:48:05 +02:00
Stefan Metzmacher
640752b969 s4:torture/smb2: add smb2.durable-v2-open.reopen{1,2} tests
They show that only the content of the DH2C request matches and
all other values in the SMB2 Create request are ignored.

metze
2012-09-07 00:32:30 +02:00
Stefan Metzmacher
1874ebeb37 s4:torture/smb2: check that the server should ignore the fname in a DHnC request
metze
2012-09-07 00:32:30 +02:00
Stefan Metzmacher
afaea04f1c s4:torture/smb2: don't expect a DHnQ response in a DHnC request
This is fixed in Windows 2012 and matches the [MS-SMB2] documentation
now.

metze
2012-09-07 00:32:30 +02:00
Kai Blin
8ba8020586 s4 dns: Make debug output less noisy
Autobuild-User(master): Kai Blin <kai@samba.org>
Autobuild-Date(master): Fri Sep  7 00:31:56 CEST 2012 on sn-devel-104
2012-09-07 00:31:56 +02:00
Kai Blin
319b239dc4 s4 dns: Check if signing user is allowed to update records
This should fix bug #9142
2012-09-06 22:43:05 +02:00
Andrew Bartlett
baf2db685f selftest: Test configure stage of dlz_bind9
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Sep  6 09:07:11 CEST 2012 on sn-devel-104
2012-09-06 09:07:11 +02:00
Andrew Bartlett
52f0dedc1a selftest: Add tests for the dlz_bind9 module
This will help ensure that we do not break the fundemental loading etc.

From here, it should be easy to extend this to more comprehensive tests.

Andrew Bartlett
2012-09-06 15:22:26 +10:00
Andrew Bartlett
0d99175f2a join.py: Only replicate DNS zones if the source DC had DNS zones
This avoid folks needing to specify --dns-backend=NONE

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Sep  6 04:48:55 CEST 2012 on sn-devel-104
2012-09-06 04:48:55 +02:00
Kai Blin
5e492f8d32 s4 dns: Allow configuring signed updates
Autobuild-User(master): Kai Blin <kai@samba.org>
Autobuild-Date(master): Wed Sep  5 20:42:46 CEST 2012 on sn-devel-104
2012-09-05 20:42:46 +02:00
Kai Blin
2b17566e89 s4 dns: Make sure to remember incoming tkey name 2012-09-05 19:08:33 +02:00
Kai Blin
53f602c374 s4 dns: Verify incoming TSIG signatures 2012-09-05 19:02:17 +02:00
Kai Blin
7fe5e2cdcb s4 dns: Handle GSS-TSIG signature creation 2012-09-05 19:02:17 +02:00
Kai Blin
956f41bddf s4 dns: When we got a TKEY, we need to remember which key to use for signing 2012-09-05 19:02:17 +02:00
Kai Blin
e81d026576 s4 dns: TKEY record needs to remember incoming algorithm
Samba3 (and older windows versions) use gss.microsoft.com, win7 (and the RFC) use gss-tsig
2012-09-05 19:02:17 +02:00
Kai Blin
c0e6a4b1b0 s4 dns: Move dns_find_tkey to an extra file 2012-09-05 19:02:16 +02:00
Andreas Schneider
58d8d9440f s4-dns: Fix linking the dns service.
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Wed Sep  5 18:40:00 CEST 2012 on sn-devel-104
2012-09-05 18:40:00 +02:00
Andrew Bartlett
7b86c18f38 selftest: Add python blackbox tests for samba-tool ntacl get/set
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Sep  5 15:47:55 CEST 2012 on sn-devel-104
2012-09-05 15:47:55 +02:00