Andrew Bartlett
a37990c5c1
selftest: Rework Samba4.pm process termination.
...
We now double-check the waitpid() result with kill(0, $pid)
We now also send a SIGTERM, then a SIGKILL.
Andrew Bartlett
2012-03-04 10:14:34 +01:00
Andrew Bartlett
e495118aab
selftest: Fix waitpid termination test
2012-03-04 10:14:34 +01:00
Andrew Bartlett
d715e2c294
selftest: Use fork()/exec() rather than system()
...
This follows the Samba3.pm model for starting child processes is to
use fork()/exec(). This reduces the number of processes being created
by selftest.pl, and gives us more information about the child process
and the running state in the parent.
Andrew Bartlett
2012-03-04 10:14:34 +01:00
Andrew Bartlett
769cee44a2
s3-winbindd: Add stdin handler for winbind
...
This will help avoid runaway processes in the test env, particularly when
the whole selftest.pl is killed.
Andrew Bartlett
2012-03-04 10:14:34 +01:00
Andrew Bartlett
807f5f1a8b
s3-nmbd: Add stdin handler for nmbd
...
This will help avoid runaway processes in the test env, particularly
when the whole selftest.pl is killed.
Andrew Bartlett
2012-03-04 10:14:34 +01:00
Andrew Bartlett
b07d504ca4
change low FDs are handled in Samba
...
We now only close fds 0, 1, 2 when we are a forked daemon, and take
care not to close a file descriptor that we might need for foreground
stdin monitoring.
This should fix stdout logging in the lsa and epmapper deamons (ie in
make test).
Andrew Bartlett
2012-03-04 10:14:34 +01:00
Matthieu Patou
679bbd014e
s3: don't replace the error message if already defined
...
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sun Mar 4 10:13:24 CET 2012 on sn-devel-104
2012-03-04 10:13:24 +01:00
Matthieu Patou
7916d64bbd
s3: print a nice warning when HAVE_ADS is not enabled but you still try to do net rpc keytab vampire
2012-03-04 07:55:46 +01:00
Jelmer Vernooij
4a8d55cd7d
selftest: Remove unused vde functions.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Mar 4 07:54:51 CET 2012 on sn-devel-104
2012-03-04 07:54:51 +01:00
Jelmer Vernooij
9654c61a9f
selftest/README: Expand inconsistent tabs
2012-03-04 01:20:03 +01:00
Jelmer Vernooij
f75746e353
selftest: Remove outdated template.
2012-03-04 01:19:17 +01:00
Jelmer Vernooij
ed92f3de63
selftest: Remove unused and broken target 'windows'.
2012-03-04 01:18:58 +01:00
Jelmer Vernooij
cc17ddeca1
samba.7: Remove references to long gone testprns and smbsh utilities.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Mar 4 01:56:19 CET 2012 on sn-devel-104
2012-03-04 01:56:19 +01:00
Volker Lendecke
c887cb6852
s3: Fix a bogus if (client_len < 0)
...
On some platforms socklen_t might be unsigned, so comparing for <0
always returns true. Also, tsocket_address_bsd_sockaddr returns
ssize_t.
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Sat Mar 3 23:38:31 CET 2012 on sn-devel-104
2012-03-03 23:38:31 +01:00
Michael Adam
58c26c2fd4
selftest: more precisely skip durable-open, not durable.open
...
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Sat Mar 3 19:17:32 CET 2012 on sn-devel-104
2012-03-03 19:17:32 +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
f6047afb2d
s4:libcli:smb2: set SMB2_CAP_ALL in the negprot
2012-03-03 17:03:07 +01:00
Stefan Metzmacher
8dc1873ff5
s3:libsmb: pass smb2 capabilities and client guid in cli_state_create()
...
metze
Signed-off-by: Michael Adam <obnox@samba.org>
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
ac43937ce4
smbXcli: add the possiblilty to negotiate client capabilites in smb >= 2.2
...
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-03-03 17:03:07 +01:00
Michael Adam
5a5f98dc70
s4:libcli:smb2: allow max protocol 0x0224
2012-03-03 17:03:07 +01:00
Michael Adam
a92b5f33de
s4:libcli:smb2: add support for parsing the durable handle v2 response in smb2_create_recv()
2012-03-03 17:03:07 +01:00
Michael Adam
dfbf55bb36
s4:libcli:smb2: add support durable handle reconnect v2 blob in smb2_create_send
2012-03-03 17:03:07 +01:00
Michael Adam
b1a2ab1fa9
s4:libcli:smb2: add support durable handle request v2 blob in smb2_create_send
2012-03-03 17:03:06 +01:00
Michael Adam
edeed1552d
s4:libcli:smb2: add durable handle v2 data to the smb2_create i/o structure
2012-03-03 17:03:06 +01:00
Michael Adam
76e6733344
libcli:smb: define SMB2_DHANDLE_FLAG_PERSISTENT
2012-03-03 17:03:06 +01:00
Michael Adam
db632fdd2c
libcli:smb: add new SMB2 share flags
...
* FORCE_LEVELII_OPLOCKS
* ENABLE_HASH_V1
* ENABLE_HASH_V2
* ENCRYPT_DATA
2012-03-03 17:03:06 +01:00
Michael Adam
6f860837e5
libcli:smb: upgrade SMB2_CAP_ALL to include the newly known caps
2012-03-03 17:03:06 +01:00
Michael Adam
8c5d288ecf
libcli:smb: add defines for SMB2.2 share capabilities
...
* continuous avaliability
* cluster
* scaleout
2012-03-03 17:03:06 +01:00
Michael Adam
29eed6359a
libcli:smb: add defines for SMB2.2 global capabilities
...
* multi channel
* persistent handles
* directory leasing
* encryption
2012-03-03 17:03:06 +01:00
Michael Adam
0bdd18efc9
libcli:smb: define DH2Q and DH2C tags for smb2 extra create blobs
...
These are the tags for the SMB2_CREATE_DURABLE_HANDLE_REQUEST_V2
and SMB2_CREATE_DURABLE_HANDLE_RECONNECT_V2, the second version
of the SMB2_CREATE_DURABLE_HANDLE_REQUEST (DHnQ) and
SMB2_CREATE_DURABLE_HANDLE_RECONNECT (DHnC), which are only
available for SMB 2.2 (and newer).
2012-03-03 17:03:06 +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
Michael Adam
87fc8c0f64
s3:smbd:smb2_write: improve logging in the error case
2012-03-03 17:03:06 +01:00
Matthias Dieter Wallnöfer
a66d0f33ee
s4:samba-tool domain level raise command - reference SAMDB object correctly
...
https://bugzilla.samba.org/show_bug.cgi?id=8787
Reviewed-by: Jelmer
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Mar 3 12:54:21 CET 2012 on sn-devel-104
2012-03-03 12:54:20 +01:00
Christian Ambach
dc24e229a5
smb2_constants: fix a typo
...
Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Sat Mar 3 09:04:40 CET 2012 on sn-devel-104
2012-03-03 09:04:40 +01:00
Christian Ambach
a1ac670a8c
s3:smb2_server: use SMB2_WATCH_TREE
...
it makes the code easier to understand if it uses the names specified in MS-SMB2 instead
of just the underlying values
2012-03-02 21:47:10 -08:00
Christian Ambach
583a53835b
smb2_constants: add SMB2_WATCH_TREE
2012-03-02 21:47:09 -08:00
Christian Ambach
8b25bc80c9
s3:smb2_server fix a typo
2012-03-02 21:47:09 -08:00
Volker Lendecke
197c185bc7
s3: Fix some blank line endings
...
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Sat Mar 3 03:41:03 CET 2012 on sn-devel-104
2012-03-03 03:40:56 +01:00
Volker Lendecke
bc6803febb
examples: Make examples/VFS/Makefile.in FreeBSD-friendly
...
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Sat Mar 3 00:53:43 CET 2012 on sn-devel-104
2012-03-03 00:53:40 +01:00
Arvid Requate
b1cedbbeea
SEGV in acl_validate_spn_value: dnsHostName NULL
...
This patch addresses a segfault in acl_validate_spn_value which occurs
when the "dnsHostName" attribute is missing. This seems to be the case
in domains migrated with samba3upgrade. Looks similar to MS KB 817543.
Signed-off-by: Nadezhda Ivanova <nivanova@drizzit.(none)>
Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Fri Mar 2 21:26:40 CET 2012 on sn-devel-104
2012-03-02 21:26:40 +01:00
Andrew Bartlett
95976d4ec2
selftest: Rework samba4.blackbox.bogusdomain to use a temporary user
...
This avoids leaving an account in the test environment after the test is run
and therefore avoids issues with interations with other tests.
Also, we now use the local administrator account in the member server to
add the test account.
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Mar 2 14:44:36 CET 2012 on sn-devel-104
2012-03-02 14:44:36 +01:00
Andrew Bartlett
5d4144a826
selftest: close stdin and wait with waitpid() for a safer exit
...
This avoids timelimit sending kill -9 after 1 second, which may
disrupt the writing of gcov data.
Andrew Bartlett
2012-03-02 12:30:05 +01:00
Andrew Bartlett
0d94d681c4
selftest: Put stdin pipe on the environment
...
This seems to help us close the right pipe at cleanup time.
Andrew Bartlett
2012-03-02 12:30:05 +01:00
Volker Lendecke
6c1c092f07
s3: Test for statfs before statfs64
...
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Fri Mar 2 12:04:35 CET 2012 on sn-devel-104
2012-03-02 12:04:34 +01:00