summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/cliconnect.c
Commit message (Collapse)AuthorAgeFilesLines
...
* s3:libsmb: smb_bytes_talloc_string() doesn't need a cli_stateStefan Metzmacher2011-07-201-3/+3
| | | | metze
* s3:libsmb: remove unused cli_set_port()Stefan Metzmacher2011-07-111-1/+0
| | | | metze
* s3:libsmb: also remember the local socket address after connectStefan Metzmacher2011-07-111-0/+8
| | | | metze
* s3:libsmb: remove unused cli->inbuf and cli->bufsizeStefan Metzmacher2011-07-081-9/+0
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Jul 8 15:21:46 CEST 2011 on sn-devel-104
* s3:libsmb: finally remove unused cli_state->outbufStefan Metzmacher2011-07-071-5/+1
| | | | metze
* s3:libsmb: use trans2_bytes_push_str() in cli_tcon_andx_create() for the ↵Stefan Metzmacher2011-07-071-12/+11
| | | | | | | | plaintext password This makes sure we push the string always in DOS charset. metze
* Use tevent_req_oomVolker Lendecke2011-06-201-1/+1
| | | | This fixes a few Coverity errors
* s3-param Remove special case for global_myname(), rename to lp_netbios_name()Andrew Bartlett2011-06-091-1/+1
| | | | | | | | There is no reason this can't be a normal constant string in the loadparm system, now that we have lp_set_cmdline() to handle overrides correctly. Andrew Bartlett
* s3: Remove unused cli_session_requestVolker Lendecke2011-05-291-129/+0
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun May 29 22:25:55 CEST 2011 on sn-devel-104
* s3: Remove unused cli_connectVolker Lendecke2011-05-291-177/+0
|
* s3: Add set_socket_options to cli_connect_sock()Volker Lendecke2011-05-291-0/+1
| | | | | | | A leftover of stuff that cli_connect() does Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun May 29 15:47:17 CEST 2011 on sn-devel-104
* s3: Remove unused attempt_netbios_session_requestVolker Lendecke2011-05-291-65/+0
|
* s3: Extract the guest_login field in sesssetupVolker Lendecke2011-05-291-4/+17
|
* s3: Fix wct check in cli_sesssetup_blob_doneVolker Lendecke2011-05-291-1/+1
|
* s3: Add called name_type param to cli_connect_nbVolker Lendecke2011-05-281-3/+2
|
* s3: Fix a type-punned warningVolker Lendecke2011-05-281-1/+2
|
* s3: Use cli_connect_nb in cli_start_connectionVolker Lendecke2011-05-281-47/+4
|
* s3: Add cli_connect_nbVolker Lendecke2011-05-281-0/+133
| | | | | | This builds up a cli_state until after the netbios session setup. It makes use of smbsock_connect, so it connects to 139 and 445 simultaneously. This improves the connection to Windows 2008 which does not listen on *SMBSERVER anymore.
* s3: Remove two false references to cli->inbufVolker Lendecke2011-05-231-2/+2
|
* s3: Fix a leftover from fstring removal in cli_stateVolker Lendecke2011-05-231-4/+7
| | | | Jeremy, please check!
* Patch for bug #8156 - net ads join fails to use the user's kerberos ticket.Jeremy Allison2011-05-211-10/+27
| | | | | | | | | If kerberos_get_realm_from_hostname() or kerberos_get_default_realm_from_ccache() fails due to a misconfigured krb5.conf, try the "realm =" from smb.conf as a fallcback before going back to NTLMSSP (which we'll do anyway). Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat May 21 00:58:09 CEST 2011 on sn-devel-104
* The "workgroup" parameter is not used at all in ↵Jeremy Allison2011-05-201-7/+4
| | | | cli_session_setup_kerberos(). Remove it.
* s3: Do central cli_set_errorVolker Lendecke2011-05-191-27/+0
|
* s3: Remove the use of cli->inbuf/outbuf from cli_session_requestVolker Lendecke2011-05-191-45/+53
|
* s3:libsmb convert user-specified domain to uppercaseChristian Ambach2011-05-161-0/+1
| | | | | | | | | | | | | | | | with client ntlmv2 auth = yes, there is a small difference between using smbclient -U user\domain and smbclient -U user -W domain if domain is provided in lowercase using -W will uppercase the given parameter, while picking the domain name from -U will not convert it to uppercase and this leads to failing NTLMv2 authentication with this patch, there is no difference between smbclient -U domain\user and smbclient -U user -W domain any more Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Mon May 16 11:42:55 CEST 2011 on sn-devel-104
* s3-libsmb: move protos to libsmb/proto.hGünther Deschner2011-05-061-0/+1
| | | | Guenther
* s3: Make name_resolve_bcast return sockaddr_storageVolker Lendecke2011-04-301-6/+9
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Apr 30 20:40:46 CEST 2011 on sn-devel-104
* s3: Remove ip_sevice from get_ipc_connect_master_ipVolker Lendecke2011-04-301-5/+5
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Apr 30 18:16:28 CEST 2011 on sn-devel-104
* s3-tevent: only include ../lib/util/tevent wrappers where needed.Günther Deschner2011-04-291-0/+1
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Apr 29 14:00:30 CEST 2011 on sn-devel-104
* Remove another fstring in this code.Jeremy Allison2011-04-281-12/+20
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Apr 28 03:15:32 CEST 2011 on sn-devel-104
* Fixup (C) - we've both worked lots on this :-).Jeremy Allison2011-04-271-0/+2
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Apr 27 21:56:29 CEST 2011 on sn-devel-104
* Remove fstrings from client struct. Properly talloc strings (ensuring we ↵Jeremy Allison2011-04-271-42/+266
| | | | never end up with a NULL pointer).
* s3: Make cli_session_setup_lanman2 asyncVolker Lendecke2011-04-271-53/+201
| | | | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Apr 27 00:25:35 CEST 2011 on sn-devel-104
* s3: Make cli_session_setup_nt1 asyncVolker Lendecke2011-04-261-87/+246
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Make plaintext session setup asyncVolker Lendecke2011-04-261-59/+145
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: guest sesssetup is only 13 wordsVolker Lendecke2011-04-161-1/+1
| | | | | | | (cherry picked from commit 69650a2aaa8649570261df7efccb35ad76d7cfc1) Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Apr 16 16:20:08 CEST 2011 on sn-devel-104
* s3: Remove some unused codeVolker Lendecke2011-04-031-7/+0
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Apr 3 18:32:51 CEST 2011 on sn-devel-104
* s3-libsmb: put namequery headers to nmblib.hGünther Deschner2011-03-301-0/+1
| | | | | | | We might find a better name for it and merge other namequery related things as well here... Guenther
* s3: Convert cli_raw_tcon to cli_smbVolker Lendecke2011-03-271-24/+22
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Mar 27 19:50:21 CEST 2011 on sn-devel-104
* s3: Replace cli_negprot_sendsync() by cli_negprot_send()Volker Lendecke2011-03-271-35/+0
|
* s3: Fix Coverity ID 2326, CHECKED_RETURNVolker Lendecke2011-03-261-1/+1
|
* s3: Make is_zero_addr take a sockaddr_storageVolker Lendecke2011-02-271-1/+1
| | | | | | | All callers had to cast this anyway Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Feb 27 11:02:53 CET 2011 on sn-devel-104
* s3: Remove unused "retry" from cli_start_connectionVolker Lendecke2010-12-201-11/+2
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Dec 20 17:58:33 CET 2010 on sn-devel-104
* s3: Remove unused "retry" from cli_full_connectionVolker Lendecke2010-12-201-5/+3
|
* s3-libsmb Improve error message when denying LM encryptionAndrew Bartlett2010-12-141-9/+9
| | | | | | | Now that 'client ntlmv2 auth = yes' is the default, make it more clear what options a user may need to enable to get this to work. Andrew Bartlett
* s3-libsmb Don't ever ask for machine$ principals as a target.Andrew Bartlett2010-12-101-30/+6
| | | | | | | | | | | | It is never correct to ask for a machine$ principal as the target of a kerberos connection. You should always connect via the servicePrincipalName. This current code appears to have built up from a series of minimal changes, as the codebase adapted the to lack of a SPNEGO principal from Windows 2008. Andrew Bartlett
* s3-libads Default to NOT using the server-supplied principal from SPNEGOAndrew Bartlett2010-12-101-3/+2
| | | | | | | | | | | | | | | | | This principal is not supplied by later versions of windows, and using it opens up some oportunities for man in the middle attacks. (Becuase it isn't the name being contacted that is verified with the KDC). This adds the option 'client use spnego principal' to the smb.conf (as used in Samba4) to control this behaivour. As in Samba4, this defaults to false. Against 2008 servers, this will not change behaviour. Against earlier servers, it may cause a downgrade to NTLMSSP more often, in environments where server names are not registered with the KDC as servicePrincipalName values. Andrew Bartlett
* Fix bug #7698 - Assert causes smbd to panic on invalid NetBIOS session request.Jeremy Allison2010-09-261-4/+11
| | | | | | | | | | | | | | Found by the CodeNomicon test suites at the SNIA plugfest. http://www.codenomicon.com/ If an invalid NetBIOS session request is received the code in name_len() in libsmb/nmblib.c can hit an assert. Re-write name_len() and name_extract() to use "buf/len" pairs and always limit reads. Jeremy.
* Fix bug 7694 - Crash bug with invalid SPNEGO token.Jeremy Allison2010-09-231-1/+2
| | | | | | | | | | | Found by the CodeNomicon test suites at the SNIA plugfest. http://www.codenomicon.com/ If an invalid SPNEGO packet contains no OIDs we crash in the SMB1/SMB2 server as we indirect the first returned value OIDs[0], which is returned as NULL. Jeremy.
* s3-build: only include async headers where needed.Günther Deschner2010-09-201-0/+1
| | | | Guenther