summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/cliconnect.c
Commit message (Collapse)AuthorAgeFilesLines
* s3:libsmb:smb2: pass previous session ID to session setup, not previous sessionMichael Adam2012-02-281-1/+1
| | | | | We only need the session, and under some circumstances, it might complicate things for the caller to have to cope with the whole structure (talloc...).
* libcli/smb/smbXcli: maintain smb2 channel_signing_key separate from the ↵Stefan Metzmacher2012-02-271-2/+2
| | | | | | | | | | | | | | | signing_key The signing_key is fix across all channels and is used for session setups on a channel binding. Note: - the last session setup response is signed with the new channel signing key. - the reauth session setups are signed with the channel signing key. It's also not needed to remember the main session key. metze
* s3-lib: Fix util_cmdline which doesn't use popt.Andreas Schneider2012-02-011-1/+1
| | | | | | This creates its own header file for util_cmdline so it doesn't need to link against popt. This should fix linking on FreeBSD.
* s3-libads Factor out a new routine ↵Andrew Bartlett2012-01-051-36/+10
| | | | | | | | | | | | kerberos_get_principal_from_service_hostname() This is now used in the GSE GSSAPI client, so that when we connect to a target server at the CIFS level, we use the same name to connect at the DCE/RPC level. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3: Fix some False/NULL hickupsVolker Lendecke2011-12-201-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Dec 20 13:13:17 CET 2011 on sn-devel-104
* s3:libsmb: add cli_tree_connect() for a generic tree connectStefan Metzmacher2011-11-241-0/+15
| | | | metze
* s3:libsmb: add SMB2 support to cli_session_setup()Stefan Metzmacher2011-11-241-20/+122
| | | | metze
* s3:libsmb: implement cli_state based functions on top of ↵Stefan Metzmacher2011-11-241-443/+7
| | | | | | smbXcli_conn/smbXcli_req metze
* s3:libsmb: close fd on error in cli_connect_nb()Stefan Metzmacher2011-11-211-0/+2
| | | | metze
* Revert "Fix bug #8453 - smbclient segfaults when dialect option -m is used ↵Stefan Metzmacher2011-11-161-13/+0
| | | | | | | | | | | | | for legacy dialects" This reverts commit f261ac1932ecdae925b27301aa3e907757845a85. 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
* s3:libsmb: correctly parse the LANMAN2.1 negprot response from OS/2 (bug #8584)Stefan Metzmacher2011-11-081-4/+30
| | | | metze
* s3:libsmb: key_len is 8bit only in the NT1 caseStefan Metzmacher2011-11-081-1/+1
| | | | metze
* s3:libsmb: also remember the optional server name from the negprot responseStefan Metzmacher2011-11-041-2/+23
| | | | | | W2K (at least sp4) and higher also send the server name. metze
* s3:libsmb: the workgroup in the non-extended-security negprot is not aligned ↵Stefan Metzmacher2011-11-041-2/+5
| | | | | | | | (#8573) I've tested the fix against NT4 sp6a, W2K sp4, W2K8R2 and Win8pre0. metze
* s3:libsmb: s/Undefined/SMB_SIGNING_DEFAULT/Stefan Metzmacher2011-11-031-1/+1
| | | | metze
* libcli/smb: move source3/libsmb/read_smb.* to the toplevelStefan Metzmacher2011-10-241-1/+0
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Oct 24 10:18:06 CEST 2011 on sn-devel-104
* ntlmssp: Move ntlmssp code to auth/ntlmsspAndrew Bartlett2011-10-181-1/+1
| | | | | | | | | This brings in the code from both libcli/auth and source4/auth/ntlmssp. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Fix const warning.Jeremy Allison2011-10-141-1/+1
|
* s3:utils change data_blob_dup_talloc() to take a DATA_BLOB by valueGregor Beck2011-10-121-1/+1
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:libsmb: remove unused TALLOC_FREE(subreq) calls inStefan Metzmacher2011-09-281-5/+0
| | | | | Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Sep 28 02:01:09 CEST 2011 on sn-devel-104
* s3:libsmb: call TALLOC_FREE(subreq) directly after cli_sesssetup_blob_recv()Stefan Metzmacher2011-09-281-3/+2
| | | | | | | cli_sesssetup_blob_recv() talloc moves stuff that's needed on the given memory context. metze
* s3: Fix Coverity ID 2619: UNINITVolker Lendecke2011-09-221-0/+2
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Sep 22 01:55:04 CEST 2011 on sn-devel-104
* s3: Fix Coverity ID 2618: UNINITVolker Lendecke2011-09-221-0/+2
|
* s3:libsmb: move cli->server{zone,time} to ↵Stefan Metzmacher2011-09-151-8/+14
| | | | | | | | | cli->conn.smb1.server.{time_zone,system_time} metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Sep 15 14:00:29 CEST 2011 on sn-devel-104
* s3:libsmb: split cli->secblob into ↵Stefan Metzmacher2011-09-151-12/+75
| | | | | | cli->conn.smb1.server.{guid,gss_blob,challenge,workgroup} metze
* s3:libsmb: make use of cli_state_server_gss_blob()Stefan Metzmacher2011-09-151-5/+9
| | | | metze
* s3:libsmb: make use of cli_state_server_challenge()Stefan Metzmacher2011-09-151-11/+8
| | | | metze
* s3:libsmb: remove the guid from the cli->secblob in spnego modeStefan Metzmacher2011-09-151-4/+8
| | | | metze
* s3:libsmb: make sure cli->secblob.length is 8 if we get a challengeStefan Metzmacher2011-09-151-2/+2
| | | | metze
* s3:libsmb: restructure cli_negprot_done() secblob handling a bitStefan Metzmacher2011-09-151-10/+13
| | | | metze
* s3:libsmb: move cli->sesskey to cli->conn.smb1.server.session_keyStefan Metzmacher2011-09-151-2/+5
| | | | metze
* s3:libsmb: detect lock_read and write_unlock supportStefan Metzmacher2011-09-151-0/+15
| | | | metze
* s3:libsmb: move cli->*braw_supported to cli->conn.smb1.server.*brawStefan Metzmacher2011-09-151-4/+9
| | | | | | This is currently unused, but we might use it in future. metze
* s3:libsmb: move cli->sec_mode to cli->conn.smb1.server.security_modeStefan Metzmacher2011-09-151-5/+8
| | | | metze
* s3:libsmb: move cli->max_mux to cli->conn.smb1.server.max_muxStefan Metzmacher2011-09-151-4/+7
| | | | metze
* s3:libsmb: move cli->max_xmit to cli->conn.smb1.max_xmitStefan Metzmacher2011-09-151-6/+12
| | | | | | | And keep cli->conn.smb1.client.max_xmit and cli->conn.smb1.server.max_xmit. metze
* s3:libsmb: move cli->capabilities to cli->conn.smb1.capabilitiesStefan Metzmacher2011-09-151-4/+9
| | | | | | | And keep cli->conn.smb1.client.capabilities and cli->conn.smb1.server_capabilities. metze
* s3:libsmb: move cli->protocol to cli->conn.protocolStefan Metzmacher2011-09-151-4/+4
| | | | metze
* s3:libsmb: pass max_protocol to cli_negprot()Stefan Metzmacher2011-09-151-5/+6
| | | | metze
* s3:libsmb: add basic max_protocol support in cli_negprot()Stefan Metzmacher2011-09-151-7/+15
| | | | metze
* s3:libsmb: use local variables in cli_state_create()Stefan Metzmacher2011-09-151-5/+0
| | | | | | | | | | We don't need to keep use_spnego, use_level_II_oplocks, force_dos_errors and force_ascii within struct cli_state. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Sep 15 10:12:17 CEST 2011 on sn-devel-104
* s3:libsmb: make use of SMB_CAP_BOTH/CLIENT_MASK in ↵Stefan Metzmacher2011-09-151-13/+25
| | | | | | | | cli_session_setup_capabilities() This matches a w2k3 client. metze
* s3:libsmb: calculate the negotiated SMB1 capabilities in cli_negprot_done()Stefan Metzmacher2011-09-151-6/+12
| | | | | | | | | We calculate the negotiated capabilities based on the mask for: - client only flags - flags used in both directions - server only flags metze
* s3:libsmb: no need to reset capabilities in cli_session_setup_lanman2()Stefan Metzmacher2011-09-151-10/+0
| | | | | | | This is only used cli->protocol < PROTOCOL_NT1, in which case cli_negprot_done() has already reset cli->capabilities. metze
* s3:libsmb: make sure we always set cli->capabilities at the end of ↵Stefan Metzmacher2011-09-151-3/+6
| | | | | | | | | cli_negprot_done() If the server doesn't support PROTOCOL_NT1 we should reset the negotiated capabilities to 0. metze
* s3:libsmb: remove unused cli->is_sambaStefan Metzmacher2011-09-141-22/+1
| | | | | | | | s3:libsmb: remove unused cli->is_samba metze Signed-off-by: Jeremy Allison <jra@samba.org>
* Fix bug #8453 - smbclient segfaults when dialect option -m is used for ↵Jeremy Allison2011-09-141-0/+13
| | | | | | legacy dialects Ensure we have valid pointers.
* s3:libsmb: make use of new advanded SMB signingStefan Metzmacher2011-09-141-31/+28
| | | | metze
* s3:libsmb: make use of cli_state_server_session_key()Stefan Metzmacher2011-09-131-4/+4
| | | | metze
* s3:libsmb: make use of cli_state_security_mode()Stefan Metzmacher2011-09-131-9/+12
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Sep 13 19:45:01 CEST 2011 on sn-devel-104