1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

217 Commits

Author SHA1 Message Date
Stefan Metzmacher
d0051462b9 s4:libcli/smb2: add some more SMB2 constants
metze
2009-05-26 09:39:25 +02:00
Stefan Metzmacher
04ceabf56f s4:libcli/smb2: fix session setup with raw NTLMSSP
metze
2009-05-20 19:58:37 +02:00
Stefan Metzmacher
540b713075 s4:libcli/smb2: use raw ntlmssp if the server didn't provide a sec blob
metze
2009-05-20 19:58:37 +02:00
Stefan Metzmacher
5b55e47b71 s4:libcli/smb2: fill in transport->negotiate.secblob with the correct data
metze
2009-05-20 19:58:36 +02:00
Volker Lendecke
993bdd87b5 Move SMB2 constants to a separate file 2009-05-11 15:54:24 +02:00
Volker Lendecke
ce8f3528f1 Fix SMB2_CAP_DFS 2009-05-11 15:54:24 +02:00
Zach Loafman
afa71fbad9 s4:smb2: Add lease break support for SMB2.1
Add the structures and marshalling for the lease break variants of the
oplock break / oplock break ack messages.
2009-04-01 08:30:25 -07:00
Zach Loafman
92f3686c96 s4:smb2: Add rudimentary SMB2.1 lease support to libcli
Add the structures, constants, and marshalling for SMB2.1 leases.
2009-03-28 01:01:47 -07:00
Zach Loafman
8595f260eb s4 libcli: Add back Longhorn beta dialect as a constant
Also tweak how the dialect array and count is initialized.
2009-03-18 11:03:33 -07:00
Zach Loafman
6c08e329fa s4 libcli: Add SMB2.1 dialect to libcli
Negotiate 2.1 if possible, leave negotiate results in
transport->negotiate.dialect_revision.
2009-03-17 13:43:27 -07:00
Jelmer Vernooij
94069bd274 s4: Use same function signature for convert_* as s3. 2009-03-01 19:55:46 +01:00
Jelmer Vernooij
9ffb6d2d9e Add allow_badcharcnv argument to all conversion function, for
consistency with Samba 3.
2009-03-01 06:33:40 +01:00
Stefan Metzmacher
f023bf94f1 s4:libcli/smb2: fix c++ warning
metze
2009-02-05 18:18:33 +01:00
Stefan Metzmacher
476aa1f00d s4:smb2: s/private/private_data
metze
2009-02-02 13:08:49 +01:00
Stefan Metzmacher
096b4a9bd0 s4:libcli/smb2: s/class/info_class
metze
2009-02-02 13:08:39 +01:00
Stefan Metzmacher
71e318cf31 s4:libcli/smb2: s/private/private_data
metze
2009-02-02 13:08:28 +01:00
Stefan Metzmacher
183c379fe5 s4:lib/tevent: rename structs
list=""
list="$list event_context:tevent_context"
list="$list fd_event:tevent_fd"
list="$list timed_event:tevent_timer"

for s in $list; do
	o=`echo $s | cut -d ':' -f1`
	n=`echo $s | cut -d ':' -f2`
	r=`git grep "struct $o" |cut -d ':' -f1 |sort -u`
	files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4`
	for f in $files; do
		cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp
		mv $f.tmp $f
	done
done

metze
2008-12-29 20:46:40 +01:00
Jelmer Vernooij
29a20af75f Remove use of global_loadparm for SMB2 client connections. 2008-11-02 16:20:00 +01:00
Jelmer Vernooij
c537f7a914 Fix the build. 2008-11-02 05:49:36 +01:00
Jelmer Vernooij
b034c519f5 Add gensec_settings structure. This wraps loadparm_context for now, but
should in the future only contain some settings required for gensec.
2008-11-02 02:05:48 +01:00
Jelmer Vernooij
d9cbf2b0d9 Remove another use of global_loadparm. 2008-11-01 23:26:36 +01:00
Jelmer Vernooij
7942333712 Remove another use of global_loadparm. 2008-11-01 23:09:18 +01:00
Jelmer Vernooij
9293c59e25 Move calls to lp_* higher up in the call stack. 2008-11-01 22:42:09 +01:00
Jelmer Vernooij
57a60f0920 Move lp_*() calls a bit higher up the calls tack. 2008-11-01 22:13:47 +01:00
Jelmer Vernooij
23302413b3 Remove unused include param/param.h. 2008-10-24 16:37:56 +02:00
Jelmer Vernooij
37d885c51a Remove iconv_convenience argument from convert_string{,talloc}() but
make them wrappers around convert_string{,talloc}_convenience().
2008-10-24 14:26:46 +02:00
Jelmer Vernooij
9565999755 Fix include paths to new location of libutil. 2008-10-11 21:31:42 +02:00
Stefan Metzmacher
95940d75ec s4:libcli/smb2: remove unused header
This hopefully fixes the build with internal popt.

metze
2008-09-29 07:43:50 +02:00
Andrew Tridgell
0cf7175126 we need different error handling for truncated packets in NETPROT and
other SMB2 operations.
2008-09-24 18:58:38 -07:00
Andrew Tridgell
5a5e2df569 for use in python we need to use global_loadparm 2008-09-24 18:10:23 -07:00
Andrew Tridgell
4904882fed - SMB2 uses INVALID_PARAMETER not BUFFER_TOO_SMALL for buffer size
errors

- added a s32o16 buffer function
2008-09-24 18:10:23 -07:00
Andrew Tridgell
b1f17b23fe - use the current dialect first, for servers that only look at the
first dialect

- allow override of SMB2 port in client code
2008-09-24 18:10:23 -07:00
Andrew Tridgell
38e70dc47a be friendlier in smb2_deltree to some of the SMB2 implementations that
don't handle SEC_FLAG_MAXIMUM_ALLOWED
2008-09-24 18:10:22 -07:00
Jelmer Vernooij
6925202bde Move source4/lib/crypto to lib/crypto. 2008-09-24 15:30:23 +02:00
Andrew Tridgell
2b6e139206 fixed readonly handling in deltree 2008-09-23 15:16:46 +10:00
Stefan Metzmacher
2a336a63d7 libcli/smb2: add SMB2_CREATE_OPTIONS_NOT_SUPPORTED_MASK
SMB2 returns NOT_SUPPORTED to some more NTCREATE_OPTIONS.

metze
(This used to be commit 3ea08d4303)
2008-08-14 13:13:51 +02:00
Stefan Metzmacher
f086e796d6 libcli/smb2: use smb2 signing in auto mode if the server supports it
metze
(This used to be commit fe74faf13d)
2008-08-14 13:13:49 +02:00
Stefan Metzmacher
be92e7fc11 libcli/smb2: we don't need check the same thing twice...
metze
(This used to be commit 1380fb954a)
2008-08-14 13:13:49 +02:00
Stefan Metzmacher
be0a45d865 libcli/smb2: async replies with STATUS_PENDING are not signed
metze
(This used to be commit 3f6cbece4a)
2008-08-14 13:13:49 +02:00
Stefan Metzmacher
2d2911c788 libcli/smb2: the session key for SMB2 signing is truncated to 16 bytes
To make that work (as a client) with aes128 and aes256 krb5 keys
we need to use gsskrb5_get_subkey().

metze
(This used to be commit 0c6d988f20)
2008-07-28 16:15:23 +02:00
Stefan Metzmacher
35bd7a6378 libcli/smb2: fix per session signing state
metze
(This used to be commit 8bc12dc77a)
2008-07-28 14:09:45 +02:00
Stefan Metzmacher
4355b31730 libcli/smb2: sign SMB2 Logoff requests
metze
(This used to be commit 35ee165b14)
2008-07-28 14:09:45 +02:00
Andrew Tridgell
1c33953ae2 make signing per session in the SMB2 client library
Thanks to Metze for spotting this
(This used to be commit e9fd9b821c)
2008-06-07 08:30:51 -07:00
Andrew Tridgell
e97cf207fa added server side SMB2 signing
(This used to be commit 8e919dcb08)
2008-06-06 22:10:30 -07:00
Andrew Tridgell
7c926ff115 SMB2 signing now works. The spec was wrong (and will be fixed in the
next version)
(This used to be commit 436cb17b86)
2008-06-03 14:29:27 +10:00
Andrew Tridgell
beaa01e403 implemented client side SMB2 signing
This doessn't work against Windows yet, and I've submitted a WSPP
request for clarification of the docs to try and find out
why. Meanwhile this is no worse than what we had, as it only gets used
when the server demands signing, and we didn't work then anyway.
(This used to be commit b788096add)
2008-05-30 17:03:54 +10:00
Andrew Tridgell
f6b678b57e fixed offset for maximal access response
(This used to be commit ddd0bb3251)
2008-05-29 18:23:00 +10:00
Andrew Tridgell
f4077a05cb updated comment based on MS-SMB2 docs
(This used to be commit 5754cc1351)
2008-05-28 21:48:26 +10:00
Andrew Tridgell
0be9746e1f ensure we don't change the incoming blobs in a SMB2 create
(This used to be commit a6cc89fffe)
2008-05-28 16:58:34 +10:00
Andrew Tridgell
773f5cce80 expose a function for pushing all SMB2 create blobs
(This used to be commit f5985a0490)
2008-05-28 16:27:38 +10:00