Stefan Metzmacher
5604e8d614
s4:libcli: remember operating system and lan manager strings from session setup
...
metze
2009-05-01 15:46:08 +02:00
Stefan Metzmacher
b97a591e2c
s4:libcli/raw: write can return STATUS_BUFFER_OVERFLOW as a real error
...
We should not try to parse the result if the status is not NT_STATUS_OK.
metze
2009-05-01 15:12:07 +02:00
Björn Jacke
42e3ae6550
libcli: fix a "not handled in switch" compile warning
...
return NULL also for RAW_CLOSE_GENERIC
2009-04-22 00:03:22 +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
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
87ce6b198a
s4:libcli/raw: s/class/eclass
...
metze
2009-02-02 13:09:08 +01:00
Stefan Metzmacher
0ac7792e02
s4:libcliraw: s/private/private_data
...
metze
2009-02-02 13:08:51 +01:00
Stefan Metzmacher
1ee4bbec1a
s4:libcli/raw: s/private/private_data
...
metze
2009-02-02 13:08:28 +01:00
Stefan Metzmacher
9967907190
util_str: setup the correct talloc name for strings
...
metze
(partly from samba4wins tree 447e7f9532131117e896712db9def321c96718eb)
2009-01-19 07:05:21 +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
ff36c52d8c
Remove another use of global_loadparm.
...
Eventually, we should move some of these parameters into a separate
struct (perhaps into smb_transport_options?), to avoid the long lists of
parameters.
2008-11-02 16:07:28 +01:00
Jelmer Vernooij
7a6190e9a7
Remove another use of global_loadparm.
2008-11-02 01:03:26 +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
af2940459d
Fix prototype for attrib_string().
2008-11-01 16:00:41 +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
284f523ec7
Remove a few more usages of global_loadparm.
2008-10-24 13:22:12 +02:00
Jelmer Vernooij
8b06312f7e
Eliminate another instance of global_loadparm.
2008-10-24 13:13:27 +02:00
Jelmer Vernooij
e9ab9e52f0
Just hardcode workgroup to empty string, to avoid use of
...
global_loadparm.
2008-10-24 04:00:07 +02:00
Jelmer Vernooij
922a29992e
Remove iconv_convenience parameter from simple string push/pull
...
functions.
2008-10-24 03:40:09 +02:00
Jelmer Vernooij
87ec1d2532
Make sure prototypes are always included, make some functions static and
...
remove some unused functions.
2008-10-20 18:59:51 +02:00
Jelmer Vernooij
c484b0465c
Move SMB-specific attribute function to SMB client library.
2008-10-19 10:45:02 +02:00
Jelmer Vernooij
9565999755
Fix include paths to new location of libutil.
2008-10-11 21:31:42 +02:00
Jelmer Vernooij
181ee01da6
Pass session options around; saves another use of global_loadparm.
2008-09-30 02:47:19 +02:00
Jelmer Vernooij
c8a19f0b83
Pass options struct into session initialization functions rather than
...
using global_loadparm.
2008-09-30 01:29:53 +02:00
Andrew Tridgell
9cf3d82d63
added the structure for LINK_INFORMATION setfileinfo call
2008-09-24 18:10:23 -07:00
Jelmer Vernooij
6925202bde
Move source4/lib/crypto to lib/crypto.
2008-09-24 15:30:23 +02:00
Andrew Tridgell
66092ced5e
Merge branch 'master' of ssh://git.samba.org/data/git/samba
2008-09-23 11:15:46 -07:00
Stefan Metzmacher
8c3d969934
libcli/raw: real signing starts at seqnumber 2
...
metze
2008-09-23 11:30:03 +02:00
Stefan Metzmacher
7deacc615e
libcli/raw: in SMB_SIGNING_ENGINE_BSRSPYL state it's ok to accept any signature
...
Even if signing is mandatory.
With NTLMSSP this happens for the session setup:
request1 => BSRSPYL
response1 => BSRSPYL
request2 => BSRSPYL
response2 => <SIGNATURE>
and with krb5:
request1 => BSRSPYL
response1 => <SIGNATURE>
metze
2008-09-23 11:30:03 +02:00
Stefan Metzmacher
e00ab641b4
libcli/raw: give the caller the chance to do the signing checks on its own.
...
metze
2008-09-23 11:30:02 +02:00
Stefan Metzmacher
781d7c4c1c
libcli/raw: give the caller the chance to prevent the talloc_free(req) in the _recv functions
...
metze
2008-09-23 11:30:02 +02:00
Günther Deschner
a1a92688ba
s4-nbt: use ../libcli/nbt
...
Guenther
2008-09-23 09:37:24 +02:00
Andrew Tridgell
219aa1b4fd
added FULL_EA_INFORMATION setea call
2008-09-23 16:45:10 +10:00
Andrew Bartlett
d104a706d1
Make SMB signing work with Windows 2008 and kerberos.
...
Pinched from b53e6387e30010509034835acf88b91b380ff44a by metze.
Andrew Bartlett
(This used to be commit d55602e23e7947462cb402b20b2d354b96aa7ba3)
2008-09-06 09:07:41 +10:00
Stefan Metzmacher
dbcdbb3348
libcli/raw: fix the special NTCREATE_OPTIONS_*_MASK values
...
We now reuse ignored values for the ntvfs backend private flags.
metze
(This used to be commit 14eda93aeface307e1ffd1ea012d8f236fa78290)
2008-08-14 13:13:50 +02:00
Andrew Bartlett
853194c308
More 'must be ignored' options from the MS-SMB doc.
...
Also in particular the 'sync' flags (which Samba has traditionally
ignored).
Thanks to Olivier Salamin <olivier.salamin@gmail.com> for pointing out
more flags that needed to be handled.
Andrew Bartlett
(This used to be commit 370bb39cd79fe49efd36a1ceb3e896d386e6d3ce)
2008-07-18 18:40:19 +10:00
Andrew Bartlett
e92125e631
Ignore and handle more NT Create & X options.
...
The MS-SMB document explains that some of these options should be
ignored. The test proves it.
/* Must be ignored by the server, per MS-SMB 2.2.8 */
/* Must be ignored by the server, per MS-SMB 2.2.8 */
If we implement HSM in samba4 (likely) we should honour this bit.
/* Don't pull this file off tape in a HSM system */
Andrew Bartlett
(This used to be commit 502739ff90d56d2c9aabe8e224317f6ceb175c17)
2008-07-16 14:00:18 +10:00
Stefan Metzmacher
997f539bf5
libcli/raw: remove unused smb_raw_max_trans_data() function
...
metze
(This used to be commit d235ce673705641e06b4ad5f5679e146b59a19e1)
2008-07-07 20:59:18 +02:00
Stefan Metzmacher
efaf4cedb2
libcli/raw: make multi fragmented nttrans requests possible
...
metze
(This used to be commit a6aa055097313975299f214d8ebe8d45aa51d10a)
2008-07-07 18:10:08 +02:00
Stefan Metzmacher
848ab7fa3b
libcli/raw: trans(2) setup count is uint8_t
...
metze
(This used to be commit 48ccb51caf7976ec07c8a9bfc1afd3076bf4ee22)
2008-07-07 18:10:07 +02:00
Stefan Metzmacher
fd1ce8c263
libcli/raw: remove unused smbcli_request_receive_more() function
...
metze
(This used to be commit e1d81388fcabba9a947ed0be9ccae875e2b19135)
2008-07-07 18:10:07 +02:00
Stefan Metzmacher
1777734240
libcli/raw: use the new recv_helper infrastructure for trans/trans2 replies
...
metze
(This used to be commit ec67c61b6a82e4f39a15f37a98ae3fe93bb81316)
2008-07-07 18:10:03 +02:00
Stefan Metzmacher
b4726d48e5
libcli/raw: use the new recv_helper infrastructure for nttrans replies
...
metze
(This used to be commit 5bf136e233e26b4372155f494bae5118ef777a76)
2008-07-07 13:43:13 +02:00
Stefan Metzmacher
7718a89222
libcli/raw: add a recv_helper hook infrastructure
...
The recv helper will be called when a response comes
and the recv helper can decide to let the request
on the SMBCLI_REQUEST_RECV when more reponse packets
are expected. It's up to the helper function
to keep a reference to the in buffers, each incoming
response overwrites req->in.
metze
(This used to be commit 6d84af89ba96627abe142ba7080c24ae2421ed6c)
2008-07-07 13:43:13 +02:00
Stefan Metzmacher
70ccb7e7ce
libcli/raw: the nttrans setup count is only 8-bit
...
metze
(This used to be commit a65599cc83a12ec61e5a6ba6ad9628619a0dc8a3)
2008-07-07 13:43:12 +02:00
Andrew Tridgell
3df3bf577d
ensure we don't end up with a partially initialised EA structure
...
(This used to be commit 388f4fde3655146bf57b4c51c59c39f475aa7fe8)
2008-06-06 10:53:00 -07:00
Andrew Tridgell
3850d47fef
updated some info levels based on WSPP docs
...
(This used to be commit f84620324a8cebcd2fd19388d910928ca1ad1334)
2008-06-02 11:02:57 +10:00