Andrew Bartlett
6090a155f0
build: look for backtrace_symbols in libexec
2012-03-01 22:04:45 +11:00
Andrew Bartlett
b2a6b2f750
build: link heimdal krb5 against execinfo if found
...
This is for FreeBSD, where backtrace symbols are in execinfo
2012-03-01 22:04:44 +11:00
Amitay Isaacs
00a5366fdb
s4-provision: Use "state directory" from lp, as it is always set
...
This fixes new provisions when --targetdir is not provided.
Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Thu Mar 1 11:41:02 CET 2012 on sn-devel-104
2012-03-01 11:41:02 +01:00
Richard Sharpe
8b01b88fe8
Trivial Comment fix: Supply a missing word in a comment
...
Autobuild-User: Richard Sharpe <sharpe@samba.org>
Autobuild-Date: Thu Mar 1 06:55:44 CET 2012 on sn-devel-104
2012-03-01 06:55:44 +01:00
Volker Lendecke
8ea2b5da0c
s3: Fix "make bin/smbtorture4" in the autoconf build
...
tdb2 support does not work with a system-supplied libtdb yet
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Thu Mar 1 05:23:57 CET 2012 on sn-devel-104
2012-03-01 05:23:56 +01:00
Volker Lendecke
c17d03f823
heimdal: Fix the build on FreeBSD
...
We don't have BACKTRACE_SYMBOLS by default
2012-03-01 03:51:31 +01:00
Jeremy Allison
1c2aacd6da
Add open_dir_with_privilege() to ensure we're opening the correct directory when doing backup requests.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Mar 1 03:50:40 CET 2012 on sn-devel-104
2012-03-01 03:50:40 +01:00
Jeremy Allison
bca3fb3ecc
Implement FLAG_TRANS2_FIND_BACKUP_INTENT for trans2 with privileges.
2012-02-29 17:04:46 -08:00
Jeremy Allison
3ddd9916f5
Add accessor functions to set a bool "priv" on a directory handle. Not yet used, but will be part of FLAG_TRANS2_FIND_BACKUP_INTENT code.
2012-02-29 17:04:39 -08:00
Jeremy Allison
89c55485c3
Add the implementation of check_reduced_name_with_privilege(). Now to plumb into
...
SMB1 requests.
2012-02-29 17:04:08 -08:00
Jeremy Allison
442e79efbd
Add check_reduced_name_with_privilege(), filename_convert_with_privilege() (currently unimplemented) in order to prepare for adding SeBackup/SeRestore code to the main fileserver.
...
Not yet plumbed into the main SMB1/SMB2 code.
2012-02-29 15:57:49 -08:00
Andrew Bartlett
7cc19afb1f
selftest: add more tests for plugin_s4_dc
...
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Feb 29 12:14:05 CET 2012 on sn-devel-104
2012-02-29 12:14:05 +01:00
Andrew Bartlett
89fb6da8d0
selftest: change plugin_dc to test using s3fs
2012-02-29 10:41:07 +01:00
Andrew Bartlett
265a2bf04f
selftest: skip the troublesome samba4.rpc.unixinfo test
...
The issue here is that while the single rpc_server process is stuck in
an nss_winbind getpwuid() call, winbindd cannot contact netlogon to
make the connection to the domain.
nss_winbind comes into play when (for s3fs) the
NSS_WRAPPER_WINBIND_SO_PATH environment variable is set. In the
medium term, the unixinfo pipe should either be rewritten fully async
or removed.
Andrew Bartlett
2012-02-29 10:41:07 +01:00
Stefan Metzmacher
692c42c427
s4:winbind: use ncalrpc for connections to ourself
...
That avoids recursion if "smbd" is used as file server.
metze
2012-02-29 10:41:07 +01:00
Andrew Bartlett
8e8fde51b4
selftest: Do not run chgdcpass test on the main DC
...
If winbindd has it's password changed from under it, it becomes
grumpy.
Andrew Bartlett
2012-02-29 10:41:07 +01:00
Andrew Bartlett
71587285cc
s4-winbindd: Do not ask for a tree that we will not use
2012-02-29 10:41:06 +01:00
Amitay Isaacs
cac9bfe475
testsuite: Replace deprecated bzero with memset
...
This fixes build issues on solaris reported in bug #8767 .
https://bugzilla.samba.org/show_bug.cgi?id=8767
Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Wed Feb 29 10:39:10 CET 2012 on sn-devel-104
2012-02-29 10:39:09 +01:00
Michael Adam
f981257240
libcli/smb/smb2_signing: rename smb2_key_deviration -> smb2_key_derivation
...
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Feb 29 09:01:54 CET 2012 on sn-devel-104
2012-02-29 09:01:54 +01:00
Stefan Metzmacher
65d42ab727
s3:torture/test_smb2: test path based calls during reauth in SMB2-MULTI-CHANNEL
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Feb 29 07:23:14 CET 2012 on sn-devel-104
2012-02-29 07:23:14 +01:00
Stefan Metzmacher
300ab04a07
s3:torture/test_smb2: test handle based calls during reauth in SMB2-MULTI-CHANNEL
...
metze
2012-02-29 05:49:11 +01:00
Stefan Metzmacher
2fced53cfe
s3:torture/test_smb2: do a reauth over multiple channels in SMB2-MULTI-CHANNEL
...
metze
2012-02-29 05:49:11 +01:00
Stefan Metzmacher
670ea3e3a3
s3:torture/test_smb2: add a 3rd channel to SMB2-MULTI-CHANNEL
...
metze
2012-02-29 05:49:10 +01:00
Stefan Metzmacher
c0dac92b42
s3:torture/test_smb2: expect FILE_CLOSED on invalid handles in SMB2-MULTI-CHANNEL
...
metze
2012-02-29 05:49:10 +01:00
Stefan Metzmacher
51a15e9d31
s4:torture/smb2: remove unused var
...
metze
2012-02-29 05:49:10 +01:00
Stefan Metzmacher
c9219fe585
libcli/smb/smbXcli: use smb2_key_deviration() to setup SMB 2.24 keys
...
This uses the key diveration function from "NIST Special Publication 800-108"
in counter mode (section 5.1).
Thanks to Jeremy, Michael and Volker for the debugging!
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Feb 29 04:54:48 CET 2012 on sn-devel-104
2012-02-29 04:54:46 +01:00
Stefan Metzmacher
39ae4737e0
libcli/smb/smb2_signing: implement aes_cmac_128 based signing for SMB 2.24
...
metze
2012-02-29 03:16:23 +01:00
Stefan Metzmacher
7f5e56971f
libcli/smb/smb2_signing: add smb2_key_deviration()
...
This implements a simplified version of "NIST Special Publication 800-108" section 5.1
using hmac-sha256.
Thanks to Jeremy, Michael and Volker for the debugging!
metze
2012-02-29 03:16:23 +01:00
Stefan Metzmacher
7102eafc26
lib/crypto: add aes_cmac_128_test.c as local.crypto.aes_cmac_128 test
...
metze
2012-02-29 03:16:22 +01:00
Stefan Metzmacher
062d1a09c2
lib/crypto: add aes_cmac_128* (rfc 4493)
...
Thanks to Jeremy, Michael and Volker for the debugging!
metze
2012-02-29 03:16:22 +01:00
Volker Lendecke
de870e979b
s3: Introduce "req" helper var in reply_lockingX_success
...
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Wed Feb 29 03:08:53 CET 2012 on sn-devel-104
2012-02-29 03:08:53 +01:00
Volker Lendecke
adac885881
s3: Fix a const warning
2012-02-29 01:32:54 +01:00
Volker Lendecke
c5c67cacd9
s3: Add a test that makes a chained open break an oplock
...
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Wed Feb 29 01:13:03 CET 2012 on sn-devel-104
2012-02-29 01:13:01 +01:00
Volker Lendecke
e916778e6e
s3: More fix for smbd -i
...
We need a full re-initialize, otherwise we don't re-init the USR1
signal handler
2012-02-28 23:36:15 +01:00
Jeremy Allison
6081fabe7e
Fix problem reported by Tom Lee <tlee2951@gmail.com> - when calculating
...
the share security mask, take priviliges into account for the connecting
user.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Feb 28 20:21:26 CET 2012 on sn-devel-104
2012-02-28 20:21:26 +01:00
Andrew Tridgell
d12bad72ba
torture: added samba4-ntvfs target
...
this will be used for the samba4 server with the ntvfs backend
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Feb 28 13:34:44 CET 2012 on sn-devel-104
2012-02-28 13:34:44 +01:00
Andrew Tridgell
e2e2e60b61
s3fs: when samba is logging to stdout, ask smbd to also do so
...
this prevents make test getting spurious errors about opening log
files in the install prefix
2012-02-28 12:01:08 +01:00
Andrew Tridgell
1da318d97d
smbd: detect EOF on stdin in --foreground mode
...
if EOF is detected on stdin then exit
2012-02-28 12:01:08 +01:00
Andrew Tridgell
645fcc5375
selftest: added a pipe on stdin in s3 child processes
...
this adds a pipe for STDIN in smbd, nmbd and winbindd when run in
selftest. This allows those processes to detect when they should exit
by looking for EOF on stdin.
2012-02-28 12:01:08 +01:00
Andrew Tridgell
8db121be42
s3fs: added file_server directory
...
this contains a file server backend that forks and starts smbd
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2012-02-28 12:01:08 +01:00
Andrew Bartlett
63c96b3a58
s4-smb_server Remove inetd-mode samba3 hook
2012-02-28 12:01:08 +01:00
Amitay Isaacs
0c4d1d6b19
upgradedns: Missing rename from upgradedns to samba_upgradedns
...
Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Tue Feb 28 10:06:03 CET 2012 on sn-devel-104
2012-02-28 10:06:03 +01:00
Michael Adam
d92b955cca
s4:torture:smb2:durable-open: fix a silly access-after-free panic
...
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Tue Feb 28 08:33:44 CET 2012 on sn-devel-104
2012-02-28 08:33:44 +01:00
Stefan Metzmacher
43dd033618
s3:torture/test_smb2: test a tree_connect during reauth
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Feb 28 06:58:44 CET 2012 on sn-devel-104
2012-02-28 06:58:44 +01:00
Stefan Metzmacher
c64a85ee19
s3:torture/test_smb2: check directory listing during reauth
...
metze
2012-02-28 05:22:50 +01:00
Michael Adam
62d8d03c8c
s4:selftest: skip smb2.session testsuite
...
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Tue Feb 28 03:19:52 CET 2012 on sn-devel-104
2012-02-28 03:19:50 +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
Michael Adam
60a4095936
s4:torture:smb2: add new "session" testsuite starting with a session.reconnect test
2012-02-28 00:08:55 +01:00
Michael Adam
ba4acf05b2
s4:torture:smb2: add durable_open.reopen2a - variant of reopen2 with session reconnect
2012-02-28 00:08:54 +01:00
Michael Adam
1d9df362b2
s4:torture:smb2: add torture_smb2_connection_ext() that takes previous_session
2012-02-28 00:08:54 +01:00