Commit 0e229191 authored by Bailey Berro's avatar Bailey Berro Committed by Commit Bot

Convert all unresolved hostnames to cannonical format

For chromad kerberos users, we do not resolve mount paths and instead
rely on the domain controller to resolve it. This CL fixes a bug where
windows URIs were not converted to the cannoncial smb:// format that is
expected by libsmbclient resulting in an INVALID_OPERATION error.

Bug: chromium:906269
Change-Id: I363e9375a32d2d0d6a990c0fdaab11a4aced064a
Reviewed-on: https://chromium-review.googlesource.com/c/1341022Reviewed-by: default avatarZentaro Kavanagh <zentaro@chromium.org>
Commit-Queue: Bailey Berro <baileyberro@chromium.org>
Cr-Commit-Position: refs/heads/master@{#609532}
parent fa3b87cc
......@@ -200,7 +200,7 @@ void SmbService::CallMount(const file_system_provider::MountOptions& options,
// service tickets are keyed on hosname.
const base::FilePath mount_path =
use_chromad_kerberos
? share_path
? base::FilePath(parsed_url.ToString())
: base::FilePath(share_finder_->GetResolvedUrl(parsed_url));
GetSmbProviderClient()->Mount(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment