summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/clidfs.c
Commit message (Collapse)AuthorAgeFilesLines
* libsmb: provide authinfo domain for encrypted session referralsDavid Disseldorp2015-01-211-1/+1
| | | | | | | | | | | | 6c9de0cd056afc0b478c02f1bdb0e06532388037 requires this extra change. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11059 Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Jan 21 04:29:06 CET 2015 on sn-devel-104
* libsmb: provide authinfo domain for DFS referral authDavid Disseldorp2015-01-191-3/+8
| | | | | | | | | | | libsmbclient uses the smbc_init->smbc_get_auth_data_fn() provided workgroup/domain in initial connections, but then switches to the default smb.conf workgroup/domain when handling DFS referrals. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11059 Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* libsmb: reuse connections derived from DFS referralsDavid Disseldorp2015-01-191-24/+79
| | | | | | | | | | | | | | | | | | | | | | | [MS-DFSC] 3.2.1.1 and 3.2.1.2 states that DFS targets with the same site location or relative cost are placed in random order in a DFS referral response. libsmbclient currently resolves DFS referrals on every API call, always using the first entry in the referral response. With random ordering, libsmbclient may open a new server connection, rather than reuse an existing (cached) connection established in a previous DFS referred API call. This change sees libsmbclient check the connection cache for any of the DFS referral response entries before creating a new connection. This change is based on a patch by Har Gagan Sahai <SHarGagan@novell.com>. Bug: https://bugzilla.samba.org/show_bug.cgi?id=10123 Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:libsmb: avoid calling cli_set_username() in clidfsStefan Metzmacher2014-10-171-3/+0
| | | | | | Change-Id: I8b32be8a10d2bff33bb468cc68c98e555b220bde Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s3:libsmb: Remove unused domain copy stored in cli_stateStefan Metzmacher2014-10-171-2/+2
| | | | | | Change-Id: I7333140906bb3a487205b5760396dcc00a9f49b0 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3:libsmb: Remove unused password copy stored in cli_stateAndrew Bartlett2014-10-171-2/+2
| | | | | | Change-Id: Ia6b33a25628ae08be8a8c6baeb71ce390315cb45 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* Fixed a memory leak in cli_set_mntpoint().Har Gagan Sahai2014-08-131-2/+4
| | | | | | | | | | | | | | Fixes bug #10759 - Memory leak in libsmbclient in cli_set_mntpoint function https://bugzilla.samba.org/show_bug.cgi?id=10759 Signed-off-by: Har Gagan Sahai <SHarGagan@novell.com> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Aug 13 04:36:50 CEST 2014 on sn-devel-104
* param: rename lp function and variable from "cli_minprotocol" to ↵Garming Sam2014-02-071-1/+1
| | | | | | | | "client_min_protocol" Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:libsmb: add SMB2/3 support to cli_dfs_get_referral()Stefan Metzmacher2013-10-171-17/+56
| | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=10200 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3/libsmb: make use of smbXcli_tcon_is_dfs_share()Stefan Metzmacher2013-10-171-2/+16
| | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=10200 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3/libsmb: Use smbXcli_conn_dfs_supported instead of test on CAP_DFSLuk Claes2013-10-171-1/+1
| | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=10200 Signed-off-by: Luk Claes <luk@debian.org> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3/libsmb: Use smbXcli_conn_use_unicode instead of smb1 specific testLuk Claes2013-10-171-1/+1
| | | | | | Signed-off-by: Luk Claes <luk@debian.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* As SMB3 has transport level encryption, allow smbclient -e to force encryted ↵Jeremy Allison2013-08-211-1/+17
| | | | | | | SMB3 transport. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3:libsmb: use lp_cli_minprotocol() in do_connect()Stefan Metzmacher2013-08-151-1/+2
| | | | | | | https://bugzilla.samba.org/show_bug.cgi?id=9514 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:libsmb: Ensure we ask for DEFAULT_SMB2_MAX_CREDITS on successful negprot.Jeremy Allison2013-08-151-0/+5
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3: Make --pw-nt-hash useable in smbclientVolker Lendecke2012-06-121-0/+3
| | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Jun 12 12:41:10 CEST 2012 on sn-devel-104
* s3:libsmb: get rid of cli_ucs2Luk Claes2012-05-281-1/+1
| | | | | | | | Signed-off-by: Luk Claes <luk@debian.org> Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon May 28 16:58:03 CEST 2012 on sn-devel-104
* s3:libsmb: get rid of cli_negprotLuk Claes2012-05-281-1/+2
| | | | | Signed-off-by: Luk Claes <luk@debian.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:libsmb: get rid of cli_state_encryption_onLuk Claes2012-05-281-2/+2
| | | | | Signed-off-by: Luk Claes <luk@debian.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:libsmb: get rid of cli_state_capabilitiesLuk Claes2012-05-281-3/+3
| | | | | Signed-off-by: Luk Claes <luk@debian.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:libsmb: get rid of cli_state_protocolLuk Claes2012-05-281-2/+2
| | | | | Signed-off-by: Luk Claes <luk@debian.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:libsmb: get rid of cli_state_remote_nameLuk Claes2012-05-281-6/+7
| | | | | Signed-off-by: Luk Claes <luk@debian.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:libsmb: make use of cli_tree_connect()Stefan Metzmacher2011-11-241-3/+3
| | | | metze
* s3-libsmb/clidfs.c: remove cli_nt_error()Björn Baumbach2011-11-161-2/+2
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:libsmb: pass max_protocol to cli_negprot()Stefan Metzmacher2011-09-151-3/+1
| | | | metze
* s3:libsmb: pass CLI_FULL_CONNECTION_* flags via cli_connect_nb()Stefan Metzmacher2011-09-081-5/+13
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Sep 8 10:21:50 CEST 2011 on sn-devel-104
* s3:libsmb/cli*: use CLI_BUFFER_SIZE instead of cli->max_xmitStefan Metzmacher2011-08-091-1/+1
| | | | | | | | | | | | The max_data parameter of trans2/nttrans calls are not bound to cli->max_xmit. Even with cli->max_xmit, which means the max size of the whole SMB pdu, we would get fragmented trans2/nttrans replies. That's why we can also use our maximum, which is CLI_BUFFER_SIZE. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Aug 9 18:14:38 CEST 2011 on sn-devel-104
* s3:libsmb/clidfs: make use of cli_state_encryption_on()Stefan Metzmacher2011-08-031-2/+2
| | | | metze
* s3:libsmb/cli*: make use of cli_state_protocol()Stefan Metzmacher2011-08-021-2/+2
| | | | metze
* s3:libsmb/cli*: make use of cli_state_capabilities()Stefan Metzmacher2011-08-021-3/+3
| | | | metze
* s3: Fix Coverity ID 2596, REVERSE_INULLVolker Lendecke2011-07-241-1/+2
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Jul 24 16:37:19 CEST 2011 on sn-devel-104
* s3:libsmb/clidfs: make use of cli_state_remote_name()Stefan Metzmacher2011-07-221-7/+14
| | | | metze
* s3:libsmb: remove const from cli_cm_display()Stefan Metzmacher2011-07-221-1/+1
| | | | metze
* s3:libsmb: move cli->cnum to cli->smb1.tid and hide it behind ↵Stefan Metzmacher2011-07-201-2/+2
| | | | | | cli_state_[g|s]et_tid() metze
* s3:libsmb: use trans2_bytes_push_str() in cli_dfs_get_referral()Stefan Metzmacher2011-07-071-6/+10
| | | | metze
* s3:libsmb: use a talloc_stackframe in cli_dfs_get_referral()Stefan Metzmacher2011-07-071-4/+3
| | | | metze
* s3:libsmb: don't use cli->inbuf in cli_dfs_get_referral()Stefan Metzmacher2011-07-061-5/+7
| | | | | | | The rdata buffer returned by cli_trans() doesn't belong to cli->inbuf, so don't use it. metze
* s3:libsmb: fix error handling in cli_dfs_get_referral()Stefan Metzmacher2011-07-061-3/+11
| | | | | | We should not return NT_STATUS_OK on error. metze
* s3: make cli_resolve_path return NTSTATUSVolker Lendecke2011-07-061-37/+41
| | | | This looks larger than it is. No parameters needed changing.
* s3: Make cli_cm_open return NTSTATUSVolker Lendecke2011-07-031-25/+32
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Jul 3 23:57:53 CEST 2011 on sn-devel-104
* s3: Make cli_cm_connect return NTSTATUSVolker Lendecke2011-07-031-14/+22
|
* s3: Make "do_connect" return NTSTATUSVolker Lendecke2011-07-031-17/+19
|
* s3: Remove a use of cli_errstrVolker Lendecke2011-07-031-6/+8
|
* s3: Use cli_connect_nb in do_connectVolker Lendecke2011-05-291-45/+6
|
* s3-libsmb: move protos to libsmb/proto.hGünther Deschner2011-05-061-0/+1
| | | | Guenther
* Fix for servers that don't put a path separator at the end of the service.Larry Reid2011-04-031-4/+13
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Apr 3 10:33:42 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-trans2: only include trans2.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3-dfs: removed the last user of sec_len==-1 in pull_*_base_talloc()Andrew Tridgell2011-03-251-1/+2
| | | | hopefully there aren't any others lurking in the code
* s3-msdfs: avoid global inclusion of msdfs.h.Günther Deschner2011-03-161-0/+1
| | | | Guenther