Bug 14831 - share and server swapped in smbget password prompt
Summary: share and server swapped in smbget password prompt
Status: ASSIGNED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Tools (show other bugs)
Version: unspecified
Hardware: All All
: P5 minor (vote)
Target Milestone: ---
Assignee: Jeremy Allison
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-13 11:55 UTC by Dennis
Modified: 2022-01-13 23:04 UTC (History)
1 user (show)

See Also:


Attachments
Patch which should solve this (404 bytes, patch)
2021-09-13 11:55 UTC, Dennis
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis 2021-09-13 11:55:24 UTC
Created attachment 16806 [details]
Patch which should solve this

When running smbget the server and share are mixed up in the password prompt:

% smbget -Ru -w mydomain -U myusername smb://server1/share1/folder
Password for [myusername] connecting to //share1/server1:

I've added a patch which should fix this.
Comment 1 Jeremy Allison 2022-01-13 23:04:57 UTC
Thanks Dennis. Can you send in the Samba Developers Declaration as described here:

https://www.samba.org/samba/devel/copyright-policy.html

and I'll try and get this merged for 4.15.next.