libsmb: provide authinfo domain for DFS referral auth
authorDavid Disseldorp <ddiss@samba.org>
Fri, 16 Jan 2015 15:21:23 +0000 (16:21 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 29 Jan 2015 20:15:10 +0000 (21:15 +0100)
commit371d159e2db2679d7346475b625a870dda4a5852
tree3814a822e0a0d96a083a734630fb2083095004ac
parent2856b641f321ecfd430fef24cd1158c0e2a1dd01
libsmb: provide authinfo domain for DFS referral auth

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>
(cherry picked from commit 6c9de0cd056afc0b478c02f1bdb0e06532388037)
[ddiss@samba.org: 4.0 rebase with cli_init_creds() call]
source3/libsmb/clidfs.c