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

3719 Commits

Author SHA1 Message Date
Jeremy Allison
6be10cb761 Revert fac5c654e2
s3: Add a fallback for missing open&x support in OS/X Lion

This is now done inside the synchronous cli_open() wrapper
function.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sun Dec  4 08:19:31 CET 2011 on sn-devel-104
2011-12-04 08:19:31 +01:00
Jeremy Allison
c8a1082f2b Move the callers that need to use the new cli_open() back to calling
it from cli_openx().
2011-12-03 21:36:47 -08:00
Jeremy Allison
b44cfdf163 Add cli_open() back as a synchronous wrapper function the calls
NtCreateX followed by openX() if NtCreateX is unsupported.
2011-12-03 21:31:32 -08:00
Jeremy Allison
4e709dc42f Rename cli_open -> cli_openx. Prelude to replacing generic cli_open()
with a call that uses NTCreateX in preference to OpenAndX.
2011-12-03 21:13:08 -08:00
Volker Lendecke
1c46fb5c3e s3: Use autogenerated open_files.idl 2011-12-02 22:43:05 +01:00
Jeremy Allison
3e0d923096 Ensure we map our own Samba return of ERRSRV, ERRunknownsmb
on an unknown SMB request to NT_STATUS_NOT_IMPLEMENTED.
2011-12-02 20:41:02 +01:00
Jeremy Allison
af76d2588c After a discussion with Volker, sdd a backup_intent state to the client struct.
This causes the backup_intent flags to be added to findfirst/findnext
and ntcreate/nttrans_create calls.

cli_set_backup_intent() sets the flag and returns the old value of
its state.
2011-12-01 13:24:22 -08:00
Volker Lendecke
29735327f6 s3: Add some const
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Nov 25 10:21:07 CET 2011 on sn-devel-104
2011-11-25 10:21:07 +01:00
Stefan Metzmacher
b01d80a25e s3:smb2cli: zero tid in smb2cli_tdis*
metze
2011-11-24 19:02:33 +01:00
Stefan Metzmacher
cc67f7e548 s3:smb2cli: free session in smb2cli_logoff*
metze
2011-11-24 19:02:33 +01:00
Stefan Metzmacher
ee36217c40 s3:libsmb: make use of cli_tree_connect()
metze
2011-11-24 19:02:32 +01:00
Stefan Metzmacher
665593d6ac s3:libsmb: add cli_tree_connect() for a generic tree connect
metze
2011-11-24 19:02:32 +01:00
Stefan Metzmacher
8428db0a17 s3:smb2cli: remove unused smb2cli_sesssetup_ntlmssp*
metze
2011-11-24 19:02:32 +01:00
Stefan Metzmacher
8a9bfd61b7 s3:libsmb: add SMB2 support to cli_session_setup()
metze
2011-11-24 19:02:32 +01:00
Stefan Metzmacher
dd28b28ede s3:libsmb: implement cli_trans* on top of smb1cli_trans*
metze
2011-11-24 19:02:32 +01:00
Stefan Metzmacher
f60b768df4 s3:smb2cli: remove unused smb2cli_negprot()
metze
2011-11-24 19:02:32 +01:00
Stefan Metzmacher
6ab3f8cedb s3:smb2cli: pass struct smbXcli_conn directly to smb2cli_req_create/_send()
metze
2011-11-24 19:02:31 +01:00
Stefan Metzmacher
9ebdee2817 s3:libsmb: implement cli_state based functions on top of smbXcli_conn/smbXcli_req
metze
2011-11-24 19:02:31 +01:00
Stefan Metzmacher
bf1ff0572d s3:smb2cli: add forward declaration for struct cli_state
metze
2011-11-24 19:02:31 +01:00
Stefan Metzmacher
3327c1e86e s3:smb2cli: make smb2cli_session_setup_send/recv non-static
metze
2011-11-24 19:02:31 +01:00
Stefan Metzmacher
99b3d57fc3 s3:smb2cli: make use of smbXcli_session and setup the session key for SMB2 signing
metze
2011-11-24 19:02:31 +01:00
Stefan Metzmacher
7e7bca4188 s3:smb2cli: implement smb2cli_negprot() on top of smbXcli_negprot()
metze
2011-11-24 19:02:31 +01:00
Stefan Metzmacher
1cfeb3f8a0 smbXcli: pass client_guid to smbXcli_conn_create()
metze
2011-11-24 19:02:31 +01:00
Stefan Metzmacher
349977e1a0 s3:smb2cli: replace smb2cli_base.c code with the more generic smbXcli_base.c code
metze
2011-11-24 19:02:30 +01:00
Stefan Metzmacher
b895f1fb01 s3:libsmb: close fd on error in cli_connect_nb()
metze
2011-11-21 18:03:07 +01:00
Stefan Metzmacher
20df0f34a8 s3:libsmb: verify num_setup for SMBnttrans in cli_pull_trans()
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Nov 18 15:13:52 CET 2011 on sn-devel-104
2011-11-18 15:13:52 +01:00
Stefan Metzmacher
d3cb61cf05 s3:libsmb: fix compiler warning in cli_pull_trans()
metze
2011-11-18 13:30:48 +01:00
Stefan Metzmacher
48bcb8c846 s3:libsmb: only align unicode pipe_name (bug #8586)
metze
2011-11-18 13:30:48 +01:00
Björn Baumbach
948e010f20 s3-libsmb/passchange.c: remove some cli_nt_error() calls
Signed-off-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Nov 16 20:36:11 CET 2011 on sn-devel-104
2011-11-16 20:36:10 +01:00
Björn Baumbach
6003debf7e s3-libsmb/clidfs.c: remove cli_nt_error()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-11-16 19:02:12 +01:00
Björn Baumbach
e4934a1e42 s3-libsmb: introduce option to disable dos error mapping
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-11-16 19:02:12 +01:00
Stefan Metzmacher
949f12d592 Revert "Fix bug #8453 - smbclient segfaults when dialect option -m is used for legacy dialects"
This reverts commit f261ac1932.

We now handle that in cli_state_create().

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Nov 16 15:44:05 CET 2011 on sn-devel-104
2011-11-16 15:44:05 +01:00
Stefan Metzmacher
c96292c710 s3:libsmb: always init cli->{server_os,server_domain,server_type}
We should do that at creation time of cli_state.

metze
2011-11-16 14:07:35 +01:00
Stefan Metzmacher
4b31c4273c s3:libsmb: consistently use state->size in cli_write_andx_create() (bug #5326)
Otherwise we may get unexpected results.

This is a fix that was missing in commit 95595dd93f
(s3:libsmb: fix cli_write_and_x() against OS/2 print shares (bug #5326))

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Nov  9 10:13:32 CET 2011 on sn-devel-104
2011-11-09 10:13:32 +01:00
Stefan Metzmacher
95595dd93f s3:libsmb: fix cli_write_and_x() against OS/2 print shares (bug #5326)
Print shares doesn't support CAP_LARGE_WRITEX, while it's negotiated
by the file server part.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Nov  8 17:01:36 CET 2011 on sn-devel-104
2011-11-08 17:01:36 +01:00
Stefan Metzmacher
0fb4991116 s3:libsmb: correctly parse the LANMAN2.1 negprot response from OS/2 (bug #8584)
metze
2011-11-08 15:24:51 +01:00
Stefan Metzmacher
9a3fe3a329 s3:libsmb: key_len is 8bit only in the NT1 case
metze
2011-11-08 15:24:51 +01:00
Stefan Metzmacher
230cd1e276 s3:libsmb: return NT_STATUS_OK for if a request is not the last one in the chain
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Nov  7 11:38:05 CET 2011 on sn-devel-104
2011-11-07 11:38:05 +01:00
Stefan Metzmacher
597f2ae342 s3:libsmb: make sure have_andx_command() returns false for non AndX commands
metze
2011-11-07 09:18:18 +01:00
Stefan Metzmacher
b20775fb3b s3:libsmb: remember the seqnum on all chained requests
This is needed in order to verify the incoming signature
correctly.

metze
2011-11-07 09:18:10 +01:00
Stefan Metzmacher
20fe7658a7 s3:libsmb: get cmd of the chained request before changing wct_ofs
metze
2011-11-07 09:18:10 +01:00
Stefan Metzmacher
0c1669ee4b s3:smb2cli: ignore the NBT/Length header in smb2cli_inbuf_parse_compound()
This is not needed and in future we want to support SMBDirect,
which add a different header.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun Nov  6 17:17:04 CET 2011 on sn-devel-104
2011-11-06 17:17:04 +01:00
Stefan Metzmacher
e99017af72 s3:libsmb: also remember the optional server name from the negprot response
W2K (at least sp4) and higher also send the server name.

metze
2011-11-04 14:16:29 +01:00
Stefan Metzmacher
aea76a3aaa s3:libsmb: the workgroup in the non-extended-security negprot is not aligned (#8573)
I've tested the fix against NT4 sp6a, W2K sp4, W2K8R2 and Win8pre0.

metze
2011-11-04 14:16:28 +01:00
Günther Deschner
185b94eefa nbt: trim down header dependencies of nbt.idl.
Guenther
2011-11-03 18:35:08 +01:00
Günther Deschner
2ecd50116c librpc: remove nbt dependency to samr.
Guenther
2011-11-03 18:35:08 +01:00
Stefan Metzmacher
7de694974e s3:libsmb: make use of SMB_SIGNING_* constants
metze
2011-11-03 16:55:13 +01:00
Stefan Metzmacher
a7051dfcff s3:libsmb: make use of SMB_SIGNING_* constants
metze
2011-11-03 16:55:13 +01:00
Stefan Metzmacher
1b04e54b57 s3:libsmb: s/Undefined/SMB_SIGNING_DEFAULT/
metze
2011-11-03 16:55:13 +01:00
Stefan Metzmacher
44d7774a18 s3:param: the behavior of "client/server signing = auto" is the same as "true"
So remove the special case for 'Auto'.

metze
2011-11-03 16:55:11 +01:00