I got the latest OSMC for Raspberry Pi 2 and given some privacy issues I planned to add passwords to my SMB shares in my WD EX4. Once I added them I rebooted the EX-4 and also my PI.
When I try to access my share OSMC keep asking for the password and seems to be not taking the password. I did access the password protected share via my MAC (connect as) and it’s taking my U/P.
Please help with this issue. I also did try to setup Full access / Read only via EX-4 but no chnage in OSMC and it’s not taking the new password. I even added the U/P to passwords.xml and also to sources.xml one at a time and also both at the same time but no luck,
100%. It’s a very simple u/p. User name in my WD EX4 is admin and I also created one called osmc.
Both are not working when I give the password. I know EX4 is correctly setup as via MAC when I access my share its taking the U / P and when connect as guest I can’t see password enabled folder.
Just a thought: once given an smb username/password combination, does Kodi still store this within the file ‘passwords.xml’ in plaintext, or is this saved elsewhere, hashed maybe, so that the old login data (before those smb shares got a password protection) got somewhat cached by Kodi and it still tries to use them?
As I said, just a thought…
Yes. It’s saving it to the file but only the username. Given the password is not successful it’s not remembering it.
If I update the password directly in password.xml and try to load it it’s also not showing until I restart the PI and when I restart it Username and password loading but when try it’s keep asking me the user name.
I did more checkings and I think I found the bug. It seems to be once you add a share as Public to OSMC and then try to add a U/P to it for some reason it’s not working. In my case I can’t just remove current shares as I got media library scanned and it will take a lone time to scan them back.
I did add a new share with U/P and it worked.
I am happy to be a guinea pig for this… Lot os other users reporting the same issue and it will be good to get this fixed. I will wait for more information or instructions from you guys…
This does not seem to fly anymore. I’ve added a new share, but that didn’t work either. Watching the network traffic it’s clear that osmc tries to access the share with a null username.
When trying through the web browser, the URL showing is not using the username and password I’ve provided in the sources.xml. If I do put it in the URL manually, it works for that folder, that time, but all links to subfolders are again links without username and password.
I started digging a bit in the code but eventually just used this workaround: