summaryrefslogtreecommitdiffstats
path: root/source4/libcli/smb2
Commit message (Collapse)AuthorAgeFilesLines
...
* s4:smbcli:smb2: add a random GUID to the transport connection in ↵Michael Adam2012-02-231-1/+5
| | | | | | | | | | | | | | | | | | | | smb2_transport_init() This GUID is used in the smb2 negprot when max protocol is bigger than 0x0202. According to section 2.2.3 of the MS-SMB2 document, the Client GUID filed in the SMB2 negotiate request must be filled with a (non-zero) GUID if there are other dialects than 0x0202 in the dialects field. http://msdn.microsoft.com/en-us/library/cc246543%28v=prot.13%29.aspx Apart from corresponding to the docs, this change makes some of our durable-open tests (e.g reopen2 and open-oplock) _not_ hang when running against windows 8 preview (which might be still buggy). Pair-Programmed-With: Gregor Beck <gbeck@sernet.de> Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Thu Feb 23 03:23:57 CET 2012 on sn-devel-104
* s4:libcli:smb2: don't allocate the smb2_tree struct earlier than necessary ↵Michael Adam2012-02-031-5/+5
| | | | | | in smb2_connect() Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
* s4:libcli/torture:smb2: change smb2_tree_connect to take a smb2_session ↵Michael Adam2012-02-032-6/+6
| | | | | | | | instead of smb2_tree arguement. Only the tree->session is needed. This way it is less confusing. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
* s4:libcli/smb2: mark a request as error if we can't ship itStefan Metzmacher2011-12-091-0/+2
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Dec 9 15:13:11 CET 2011 on sn-devel-104
* s4:libcli: do the nbss session request within smbcli_sock_connect_*()Stefan Metzmacher2011-11-301-39/+17
| | | | metze
* s4:libcli/smb2: make sure only one idle event runs at a timeStefan Metzmacher2011-11-292-9/+17
| | | | metze
* s4:libcli/smb2: use talloc_zero() in smb2_request_init()Stefan Metzmacher2011-11-241-16/+3
| | | | metze
* s4:libcli/smb2: fix compiler warning in smb2_push_o16s16_string()Stefan Metzmacher2011-11-241-1/+3
| | | | metze
* s4:libcli/smb2: implement on top of smbXcli_conn/reqStefan Metzmacher2011-11-2411-863/+422
| | | | metze
* s4:libcli/smb2: s/SMB_SIGNING_SUPPORTED/SMB_SIGNING_IF_REQUIRED/Stefan Metzmacher2011-11-031-2/+2
| | | | metze
* s4:libcli/smb2: remove unused SMB_SIGNING_AUTO handlingStefan Metzmacher2011-11-031-2/+0
| | | | metze
* s4:libcli/smb2: SMB_SIGNING_DEFAULT matches SMB_SIGNING_SUPPORTED on the ↵Stefan Metzmacher2011-11-031-0/+2
| | | | | | client for now metze
* s4:libcli/smb2: let SMB_SIGNING_AUTO behave like SMB_SIGNING_SUPPORTEDStefan Metzmacher2011-11-031-7/+1
| | | | | | This matches the smb1 behavior. metze
* s4:libcli: in smb2_create_recv, map SMB2_CREATE_DURABLE_HANDLE_RESPONSE ↵Michael Adam2011-10-301-0/+7
| | | | buffer smb2_create.out.durable_open
* replace: Add don't include unistd.h directly and add uid_wrapper.Andreas Schneider2011-10-271-2/+1
|
* s4:libcli/smb2: make use of _smb_setlen_tcp()Stefan Metzmacher2011-10-191-2/+2
| | | | metze
* gensec: move event context from gensec_*_init() to gensec_update()Andrew Bartlett2011-10-181-1/+2
| | | | | | | | | | | | This avoids keeping the event context around on a the gensec_security context structure long term. In the Samba3 server, the event context we either supply is a NULL pointer as no server-side modules currently use the event context. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:libcli/smb2: ignore SMB2_OP_CANCEL responsesStefan Metzmacher2011-09-281-0/+10
| | | | | | | | | | | | If there're a problem with signing or the session doesn't exists any more the server responses with a failure, instead of not sending a response. For now we ignore the reponse, as there's not much we could do with it and it's not likely that we generate bad requests, which trigger that behavior, except for testing. metze
* s4:libcli/smb2: correctly sign SMB2_OP_CANCEL request if they belong to a ↵Stefan Metzmacher2011-09-281-0/+1
| | | | | | session metze
* s4:libcli/smb2: don't try to check the signing if we got ↵Stefan Metzmacher2011-09-281-1/+2
| | | | | | NT_STATUS_USER_SESSION_DELETED metze
* cli-raw: Add public libsmbclient-raw library.Jelmer Vernooij2011-08-181-1/+1
|
* s4:libcli: use tevent_ fn names instead of legacy event_ onesSimo Sorce2011-08-132-8/+8
|
* build: provide tevent-util as a public libraryAndrew Bartlett2011-08-081-1/+1
| | | | | | | This is needed so that OpenChange can get at _tevent_req_nterr(), which is referenced by generated PIDL output. Andrew Bartlett
* gensec: clarify memory ownership for gensec_session_info() and ↵Andrew Bartlett2011-08-031-6/+1
| | | | | | | | | | | | | | | gensec_session_key() This is slightly less efficient, because we no longer keep a cache on the gensec structures, but much clearer in terms of memory ownership. Both gensec_session_info() and gensec_session_key() now take a mem_ctx and put the result only on that context. Some duplication of memory in the callers (who were rightly uncertain about who was the rightful owner of the returned memory) has been removed to compensate for the internal copy. Andrew Bartlett
* cli_raw: Make name lowercase.Jelmer Vernooij2011-07-231-1/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Jul 23 23:20:51 CEST 2011 on sn-devel-104
* libcli/util Rename common map_nt_error_from_unix to avoid duplicate symbolAndrew Bartlett2011-06-202-2/+2
| | | | | | | | | | | | The two error tables need to be combined, but for now seperate the names. (As the common parts of the tree now use the _common function, errmap_unix.c must be included in the s3 autoconf build). Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Jun 20 08:12:03 CEST 2011 on sn-devel-104
* s4:libcli/smb2: let smb2_session_setup_spnego_* use tevent_reqStefan Metzmacher2011-04-282-72/+118
| | | | metze
* s4:libcli/smb2: move smb2_session_setup_spnego_send() to the topStefan Metzmacher2011-04-281-62/+64
| | | | | | | smb2_session_setup_spnego_send() should be on the top of the smb2_session_setup_spnego_* block. metze
* s4:libcli/smb2: move smb2_connect_tcon_done()Stefan Metzmacher2011-04-281-20/+22
| | | | | | It should be after smb2_connect_session_done(). metze
* s4:libcli/smb2: move smb2_connect_session_done()Stefan Metzmacher2011-04-281-36/+38
| | | | | | It should be after smb2_connect_negprot_done(). metze
* s4:libcli/smb2: move smb2_connect_negprot_done()Stefan Metzmacher2011-04-281-69/+71
| | | | | | It should be after smb2_connect_socket_done(). metze
* s4:libcli/smb2: move smb2_connect_socket_done()Stefan Metzmacher2011-04-281-55/+57
| | | | | | It should be after smb2_connect_resolve_done(). metze
* s4:libcli/smb2: move smb2_connect_resolve_done()Stefan Metzmacher2011-04-281-36/+35
| | | | | | It should be after smb2_connect_send(). metze
* s4:libcli/smb2: rename step functions of smb2_connect_*()Stefan Metzmacher2011-04-281-26/+10
| | | | | | They should all start with a smb2_connect_ prefix. metze
* s4:libcli/smb2: convert smb2_connect_*() to tevent_reqStefan Metzmacher2011-04-282-108/+198
| | | | metze
* Ensure convert_string_XXX is always called with a valid converted_size pointer.Jeremy Allison2011-03-291-1/+2
| | | | | | | Preparation for cleaning up this API. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Mar 29 21:01:49 CEST 2011 on sn-devel-104
* charcnv: removed the allow_badcharcnv and allow_bad_conv options to ↵Andrew Tridgell2011-03-241-3/+2
| | | | | | | | | convert_string*() we shouldn't accept bad multi-byte strings, it just hides problems Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Mar 24 01:47:26 CET 2011 on sn-devel-104
* s4: Remove the old perl/m4/make/mk-based build system.Jelmer Vernooij2010-10-311-11/+0
| | | | | | | | The new waf-based build system now has all the same functionality, and the old build system has been broken for quite some time. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Oct 31 02:01:44 UTC 2010 on sn-devel-104
* s4:libcli:smb2 Rename pending_id to async_id and make 64-bitSteven Danneman2010-09-223-5/+5
| | | | Match MS-SMB2 - 2.2.1.1 SMB2 Packet Header - ASYNC
* Finish removal of iconv_convenience in public API's.Jelmer Vernooij2010-05-181-2/+1
|
* s4-waf: removed the AUTOGENERATED markersAndrew Tridgell2010-04-061-4/+0
| | | | we won't be using the mk -> wscript generator again
* s4-waf: mark the wscript files as python so vim/emacs knows how to highlight ↵Andrew Tridgell2010-04-061-0/+2
| | | | them
* build: commit all the waf build files in the treeAndrew Tridgell2010-04-061-0/+10
|
* Change uint_t to unsigned int in source4Matt Kraai2010-02-023-5/+5
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4-libcli: use GUID_to_ndr_blob()Andrew Tridgell2009-12-101-3/+3
|
* s4-libcli: use new GUID functions in libcliAndrew Tridgell2009-12-101-4/+3
|
* s4 torure: Add SMB2 utility functionsZack Kirsch2009-12-071-0/+1
| | | | | - Add a torture_setup_dir() equivalent in SMB2, called smb2_util_setup_dir(). - Add verify_sd() and verify_attrib() helper functions for SMB2.
* s4/libcli: rename previously reserved field in SMB2 LOCK structSteven Danneman2009-11-251-1/+1
| | | | | The lock.in.reserved field has been renamed lock_sequence in the SMB 2.1 dialect. See MS-SMB 2.2.26.
* s4/libcli: Initialize client PID for SMB2 connectionsSteven Danneman2009-11-253-0/+6
| | | | Set the SMB pid to the Unix pid of the client process.
* s4/torture: Ported SMB oplock torture tests to SMB2Steven Danneman2009-10-011-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | I've ported all applicable SMB oplock torture tests to SMB2, giving us a good base for SMB2 oplock testing. There are several differences between oplocks in SMB and SMB2, mostly because of differences in W2K3 and W2K8. The existing SMB oplock tests all pass against W2K3, but several fail against W2K8. These same tests were failing in SMB2, util I reworked them. BATCH19, BATCH20: In W2K3/SMB a setfileinfo - rename command wouldn't cause a sharing violation or break an existing oplock. It appears that in W2K8/SMB2 a sharing violation is raised. BATCH22: In W2K3/SMB when a second opener was waiting the full timeout of an oplock break, it would receive NT_STATUS_SHARING_VIOLATION after about 35 seconds. This bug has been fixed in W2K8/SMB2 and instead the second opener succeeds. LEVELII500: Added 1 new test checking that the server returns a proper error code when a client improperly replies to a levelII to none break notification. STREAM1: W2K8 now grants oplocks on alternate data streams.