Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMB authentication fails if password contains @ character #67

Open
apothegm opened this issue Mar 24, 2019 · 2 comments
Open

SMB authentication fails if password contains @ character #67

apothegm opened this issue Mar 24, 2019 · 2 comments

Comments

@apothegm
Copy link

I've run into this problem multiple times where I can't figure out why the heck the WMC PVR addon for Kodi gives me the "Recorded TV folder not found" error. Then I started created separate users in Windows to access the share.

I finally realized it's because there's an issue with how it builds the smb:// connection string. Since it's typically formatted as "user:password@host". So if your password contains an @, it might look like "user:pass1@@host", and it fails.

Is there a way to fix this so it supports passwords with @ characters in them?

@krustyreturns
Copy link
Contributor

Interesting, thanks. All I can think is that the '@' in the password could be substituted by %40. That is what I had to do in the login field once MS started pushing email addresses for windows login. However, I don't know if kodi (smb?) would accept it in a password. Seems easier to just not use @ in the password. I guess I could flag it as an illegal char in swmc.

@apothegm
Copy link
Author

I guess I could flag it as an illegal char in swmc.

Yeah, that might work. Not sure about substituting %40 either.

I mostly wanted to bring this up because this might be the 5th or 6th time I've run into this and I never could pinpoint exactly what I did to fix it until now. So if anyone else struggled with this problem, maybe they'll find this post useful. The struggle was real! and I don't know why it took me this long to carefully look at the Kodi logs and notice the two @ in the smb connection string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants