summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/cliconnect.c
Commit message (Collapse)AuthorAgeFilesLines
* s3:libsmb: Attempt to fix bug 6665Volker Lendecke2009-09-031-0/+6
| | | | | | Before the async libsmb rewrites, we sent tid==0 on negprot. With the rewrite, we send 0xffff. This *should* not matter, but this is one difference in the sniffs I see.
* s3/debug: make SPENGO OID list appear under one debug headerSteven Danneman2009-08-261-1/+4
|
* Fix bug #6419 - smbclient -L 127.0.0.1" displays "netbios name" instead of ↵Jeremy Allison2009-06-011-3/+26
| | | | | | | | "workgroup" Unify the handling of the sessionsetup parsing so we don't get different results when parsing a guest reply than an ntlmssp reply. Jeremy.
* s3: return proper error code in cli_smb_req_sendBo Yang2009-05-131-4/+15
| | | | Signed-off-by: Bo Yang <boyang@samba.org>
* Clean up assignments to iov_base, ensure it's always cast to void *. This ↵Jeremy Allison2009-05-121-2/+2
| | | | | | should quieten some warnings with picky compilers on the buildfarm. Jeremy.
* Make cli_tcon_andx chainableVolker Lendecke2009-05-071-15/+42
|
* Make cli_session_setup_guest chainableVolker Lendecke2009-05-071-9/+31
|
* Merge commit 'origin/master' into libcli-auth-merge-without-netlogondAndrew Bartlett2009-04-201-1/+1
|\
| * When doing a cli_ulogoff don't invalidate the cnum, invalidate the vuid.Jeremy Allison2009-04-161-1/+1
| | | | | | | | Jeremy.
* | More work to adapt to merged libcli/auth function prototypesAndrew Bartlett2009-04-141-4/+5
|/
* Add a bad hack to enable level 2 oplocks in torture_open_connection_shareVolker Lendecke2009-04-061-0/+4
|
* Convert cli_tcon_andx to tevent_reqVolker Lendecke2009-04-061-54/+69
|
* Convert cli_negprot to tevent_reqVolker Lendecke2009-04-061-36/+68
|
* Convert cli_session_setup_guest to tevent_reqVolker Lendecke2009-04-061-39/+69
|
* s3:libsmb: use new simplified smb_signing code for the client sideStefan Metzmacher2009-03-231-23/+16
| | | | | | | | | | We store the seqnum/mid mapping in the cli_request structure for async requests and in the cli_state structure for sync calls. We skip the signing check for oplock requests while waiting for async requests coming in. metze
* Fix connect to port 139 only -- thanks gd for bugging me :-)Volker Lendecke2009-03-231-4/+3
|
* Convert open_socket_out_defer to tevent_reqVolker Lendecke2009-03-161-22/+37
|
* Remove pwd_cache.c, it was doing nothing. Make user_name, domain, andJeremy Allison2009-03-131-7/+28
| | | | | password talloc'ed strings within the cli_struct. Jeremy.
* Fix a smbclient segfault against security=share serversVolker Lendecke2009-03-071-3/+10
|
* s3:libsmb: remove cli_setup_signing_state() and add struct cli_state ↵Stefan Metzmacher2009-03-061-3/+1
| | | | | | | | *cli_initialise_ex() This prepares the next changes. metze
* s3:libsmb: smb signing works the same for extented and non-extended securityStefan Metzmacher2009-03-061-5/+18
| | | | | | This is only cosmetic, but it makes it easier to understand. metze
* Convert name_mangle() to use tallocVolker Lendecke2009-02-241-4/+21
|
* Do not use strlen if not necessary... :-)Volker Lendecke2009-02-101-4/+2
|
* Fix Coverity ID 870Volker Lendecke2009-02-031-0/+4
|
* Split up async_req into a generic and a NTSTATUS specific partVolker Lendecke2009-02-011-4/+4
|
* Make cli_tcon_andx asyncVolker Lendecke2009-01-301-50/+147
|
* Make cli_session_setup_guest asyncVolker Lendecke2009-01-301-37/+103
|
* Add the strlen to push to smb_bytes_push_str, return the converted sizeVolker Lendecke2009-01-291-1/+4
| | | | | The pushed strlen replaces the STR_TERMINATE flag which I personally always find very confusing.
* Decouple clistr_pull from struct cli_state->inbufVolker Lendecke2009-01-261-13/+25
|
* s3: make better use of ccache by not including version.h in every C-file.Michael Adam2009-01-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | version.h changes rather frequently. Since it is included via includes.h, this means each C file will be a cache miss. This applies to the following situations: * When building a new package with a new Samba version * building in a git branch after calling mkversion.sh after a new commit (i.e. virtually always) This patch improves the situation in the following way: * remove inlude "version.h" from includes.h * Use samba_version_string() instead of SAMBA_VERSION_STRING in files that use no other macro from version.h instead of SAMBA_VERSION_STRING. * explicitly include "version.h" in those files that use more macros from "version.h" than just SAMBA_VERSION_STRING. Michael
* Remove smbclient globals that bled into clidfs.c. Now we only haveJeremy Allison2009-01-141-5/+1
| | | | | the connections list and authentication structures to worry about. Jeremy
* s3:libsmb: handle the smb signing states the same in the krb5 and ntlmssp casesStefan Metzmacher2009-01-121-16/+35
| | | | | | | | | | | | | | | | | | | | | | | SMB signing works the same regardless of the used auth mech. We need to start with the temp signing ("BSRSPYL ") and the session setup response with NT_STATUS_OK is the first signed packet. Now we set the krb5 session key if we got the NT_STATUS_OK from the server and then recheck the packet. All this is needed to make the fallback from krb5 to ntlmssp possible. This commit also resets the cli->vuid value to 0, if the krb5 auth didn't succeed. Otherwise the server handles NTLMSSP packets as krb5 packets. The restructuring of the SMB signing code is needed to make sure the krb5 code only starts the signing engine on success. Otherwise the NTLMSSP fallback could not initialize the signing engine (again). metze
* Simulate the Windows behaviour to fire 445 and after a timeout 139Volker Lendecke2009-01-041-14/+76
|
* Async wrapper for open_socket_out_send/recvVolker Lendecke2009-01-041-8/+15
|
* open_socket_out is always used with SOCK_STREAM, remove argument "type"Volker Lendecke2009-01-031-7/+5
|
* Pass "bytes_alignment" up through cli_request_sendVolker Lendecke2008-12-191-1/+1
| | | | This parameter makes smb_spice_chain add padding before the bytes field
* Make cli_negprot asyncVolker Lendecke2008-12-191-50/+97
|
* Make cli_negprot return NTSTATUS instead of boolVolker Lendecke2008-12-191-16/+17
|
* cli_negprot_send -> cli_negprot_sendsyncVolker Lendecke2008-12-191-1/+1
|
* Remove a pointless static variableVolker Lendecke2008-12-131-7/+7
| | | | Every sane compiler will only allocate "*SMBSERVER" once
* Micro-Optimize cliconnect.cVolker Lendecke2008-12-131-22/+27
| | | | | | | In this form, the prots array is fully read-only in the text segment and thus can be shared between processes. Probably pointless, but I had fun doing it :-)
* Slightly simplify cli_session_setup_ntlmsspVolker Lendecke2008-12-071-10/+2
| | | | Remove three pointless variables
* s3: Change sockaddr util function names for consistencyTim Prouty2008-12-031-1/+1
| | | | Also eliminates name conflicts with OneFS system libraries
* Do not build the session request if it si not used anywayVolker Lendecke2008-11-301-4/+4
|
* fix nonempty blank linesVolker Lendecke2008-11-301-19/+19
|
* Make use of smb_bufrem()Volker Lendecke2008-11-011-1/+1
|
* Use sockaddr_storage only where we rely on the size, use sockaddrJelmer Vernooij2008-10-231-1/+1
| | | | | otherwise (to clarify we can also pass in structs smaller than sockaddr_storage, such as sockaddr_in).
* s3: use shared asn1 code.Günther Deschner2008-10-221-7/+8
| | | | Guenther
* Fix bug #5675 with a varient of Tim Waugh's patch,Jeremy Allison2008-08-071-3/+2
| | | | | | as proposed by James Peach. Jeremy. (This used to be commit 5c27ad75836136c39774c9456d63f46fa62e281f)
* Fix bug reported by David Eisner <deisner@gmail.com>. When allocating cliJeremy Allison2008-06-021-3/+3
| | | | | | | buffers for large read/write - make sure we take account of the large read/write SMB headers as well as the buffer space. Jeremy. (This used to be commit 19519bca9b64b736d2fe0447b7cd495f00dba60a)