diff options
| author | David Disseldorp <ddiss@samba.org> | 2015-01-16 16:21:22 +0100 |
|---|---|---|
| committer | Michael Adam <obnox@samba.org> | 2015-01-19 06:48:05 +0100 |
| commit | 7b7d4f740fe5017107d3100041cc8c7982f0eac7 (patch) | |
| tree | 0d2c043ecea966fb3b633181f5606be35c41ebc6 /source4/dsdb/tests/python | |
| parent | 45829800eb3f3a8aeccfe7c1114dcf9df60371d5 (diff) | |
| download | samba-7b7d4f740fe5017107d3100041cc8c7982f0eac7.tar.gz samba-7b7d4f740fe5017107d3100041cc8c7982f0eac7.tar.xz samba-7b7d4f740fe5017107d3100041cc8c7982f0eac7.zip | |
libsmb: reuse connections derived from DFS referrals
[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>
Diffstat (limited to 'source4/dsdb/tests/python')
0 files changed, 0 insertions, 0 deletions
