The Samba-Bugzilla – Bug 3849
empty username in url causes samba to use invalid username
Last modified: 2006-06-26 22:10:37 UTC
urls like smb://:password@hostname/share, will invalidly consider password an username.
this is due to next_token that is used to get the username. it consumes any leading spliting characters before looking for the next token.
patch for url parser in libsmbclient provided, thou it might be a good idea to look over all uses of next_token.
Created attachment 1976 [details]
Fix for url parser
Thanks for the report!
I added a new function to retrieve the next token without trimming leading separator characters. This is fixed by check-ins 16552 (Samba3 branch) and 16553 (trunk). Pleae let me know if you still see any problems.