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

79108 Commits

Author SHA1 Message Date
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
Michael Adam
28b77605c4 s4:libcli:smb2: add a smb2_connect_ext variant of smb2_connect that takes a previous_session argument 2012-02-28 00:08:54 +01:00
Michael Adam
e9210987c6 s4:libcli:smb2: add a previous session argument to smb2_connect_send() 2012-02-28 00:08:53 +01:00
Michael Adam
681bca6768 s4:torture:smb2: add previous_session argument to torture_smb2_session_setup()
To allow for doing a session reconnect
2012-02-28 00:08:53 +01:00
Michael Adam
69a64e6695 s4:libcli:smb2: add a previous session argument to smb2_session_setup_spnego()
So that we can do a session reconnect.
2012-02-28 00:08:53 +01:00
Michael Adam
727f3ee6ac s3:libsmb:smb2: pass previous session ID to session setup, not previous session
We only need the session, and under some circumstances, it might complicate
things for the caller to have to cope with the whole structure (talloc...).
2012-02-28 00:08:52 +01:00
Matthieu Patou
5ebbd46b4a s3-winbindd: Close netlogon connection if the status returned by the NetrSamLogonEx call is timeout in the pam_auth_crap path
If not the child process would hang for quite a long time up to the
moment when the connection is cleaned by the kernel (took ~ 20 minutes)
in my tests.

Signed-off-by: Jeremy Allison <jra@samba.org>

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Feb 27 23:10:03 CET 2012 on sn-devel-104
2012-02-27 23:10:03 +01:00
Stefan Metzmacher
b8407c22d9 s3:torture/test_smb2: show that a session is not valid for path based calls during reauth
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Feb 27 16:29:02 CET 2012 on sn-devel-104
2012-02-27 16:29:02 +01:00
Stefan Metzmacher
f8cd6e8b59 s3:torture/test_smb2: show that a session is valid during a multi-leg reauth
metze
2012-02-27 14:55:15 +01:00
Stefan Metzmacher
1444d4900f s3:torture/test_smb2: fix missleading file name in reauth test
metze
2012-02-27 14:55:15 +01:00
Stefan Metzmacher
615c41ce12 libcli/smb/smb2_signing: pass down 'protocol' to smb2_signing_[sign|check]_pdu()
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Feb 27 14:26:32 CET 2012 on sn-devel-104
2012-02-27 14:26:32 +01:00
Stefan Metzmacher
7309e11ad5 libcli/smb/smb2_signing: rename session_key to signing_key
metze
2012-02-27 12:51:34 +01:00