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
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
Brad Smith
8bdc289099
s3: Further fix for bug 8777
2012-03-02 10:30:07 +01:00
Volker Lendecke
dcb1cd2933
s3: Enable statvfs usage on NetBSD
...
linux_statvfs is pretty much what you use when you have susv4.
No real code change, this moves linux_statvfs to the bottom of the
(LINUX) to #ifdef (STAT_STAVFS).
2012-03-02 10:30:07 +01:00
Stefan Metzmacher
89b413895b
s3:rpc_server: initialize struct schannel_state to zero
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Mar 2 08:48:23 CET 2012 on sn-devel-104
2012-03-02 08:48:23 +01:00
Stefan Metzmacher
083d80c502
s3:rpc_client: initialize struct schannel_state to zero
...
metze
2012-03-02 07:07:10 +01:00
Andrew Bartlett
cfa33c4567
s3-selftest: Add tests for ntlm_auth gss-spnego client and server
...
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Mar 2 07:05:44 CET 2012 on sn-devel-104
2012-03-02 07:05:44 +01:00
Andrew Bartlett
19cfa3e604
s3-rpcclient: Ensure interfaces are loaded after smb.conf
...
This ensures that the interfaces line in the smb.conf is honoured.
Andrew Bartlett
2012-03-02 05:27:16 +01:00
Andrew Bartlett
f1452a2964
s3-libsmb: Initialise ticket to ensure we do not invalid memory
...
The free is however a talloc_free(), which has additional protection against
freeing the wrong thing.
Andrew Bartlett
Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Mar 2 01:45:19 CET 2012 on sn-devel-104
2012-03-02 01:45:19 +01:00
Jeremy Allison
049375ec51
Move to talloc from malloc.
2012-03-01 15:05:56 -08:00
Jeremy Allison
e735b52254
Fix mixup between talloc/malloc.
2012-03-01 15:05:56 -08:00
Andrew Bartlett
8ea795672d
s3-selftest: make ntlm_auth test more robust to bad input
...
If we do not know the helper protocol, make sure to error.
Andrew Bartlett
2012-03-01 22:04:46 +11:00
Andrew Bartlett
eca3a14870
s3-selftest: Add more tests for ntlm_auth
2012-03-01 22:04:46 +11:00
Andrew Bartlett
74c6d2bcf4
s3-ntlm_auth fix up gss-spnego-client so as to work with gss-spnego
...
The SPNEGO code changed since this was last tested.
Andrew Bartlett
2012-03-01 22:04:45 +11:00
Andrew Bartlett
4dae0e7ec5
s3-ntlm_auth: Wrap kerberos token in GSSAPI
...
While windows will accept this ticket without the wrapping, it is
nicer to follow the standard and wrap it up in GSSAPI.
This should allow the ntlm_auth gss-spnego-client to talk to
the ntlm_auth gss-spengo server.
Reported by Christof Schmitt <christof.schmitt@us.ibm.com>
Andrew Bartlett
2012-03-01 22:04:45 +11:00
Andrew Bartlett
5b700cb0e3
s3-ntlm_auth: Add --target-service and --target-hostname options
...
This will allow the gss-spnego-client protocol to work with modern
SPNEGO servers that do not send the principal in the mechListMIC.
Andrew Bartlett
2012-03-01 22:04:45 +11:00
Andrew Bartlett
6090a155f0
build: look for backtrace_symbols in libexec
2012-03-01 22:04:45 +11: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
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
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
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
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
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
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
aa4331be9e
libcli/smb/smbXcli: maintain smb2 channel_signing_key separate from the signing_key
...
The signing_key is fix across all channels and is used for session setups
on a channel binding.
Note:
- the last session setup response is signed with the new channel signing key.
- the reauth session setups are signed with the channel signing key.
It's also not needed to remember the main session key.
metze
2012-02-27 12:51:33 +01:00
Stefan Metzmacher
18cd0b789e
s3:torture/test_smb2: remove explicit smb2_signing_check_pdu()
...
smb2cli_session_set_session_key() already checks the signature
and that function really knows the signing key.
metze
2012-02-27 12:51:33 +01:00
Stefan Metzmacher
c45cb3353b
s3:torture/test_smb2: a reauth doesn't update the session/signing key
...
metze
2012-02-27 12:51:33 +01:00
Andrew Tridgell
8a0e420d4c
dbwrap: changed log level for information about lock order
...
we were filling our logs with lock ordering debug lines
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Feb 27 12:50:29 CET 2012 on sn-devel-104
2012-02-27 12:50:29 +01:00
Andrew Bartlett
b6fcac65fb
s3-selftest: avoid running LOCAL- tests twice
...
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Feb 27 09:07:59 CET 2012 on sn-devel-104
2012-02-27 09:07:59 +01:00
Andrew Bartlett
c318c94170
s3-param: Align lp_{max,min}protocol with lib/param names
...
This adds an alisas to ensure that both our loadparm systems know all
the names.
I would like to move to the 'server ..' name as canonical, and this
will be raised on the list.
Andrew Bartlett
2012-02-27 07:36:05 +01:00