Kodi Community Forum

Full Version: Can't browse password-protected Samba via XBMC iOS remote?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi All,

I'm running the latest Crytalbuntu with XBMC 13.1 (installed fresh today). I'm also using the official iOS remote app (also up-to-date)

When I try from the iOS remote to browse music, videos or photos that are shared via smb over my network, I get the following error pop-up:
Code:
XBMX JSON-RPC Error: Invalid params.
(Code: -32602)
Data: (null)

METHOD
Files.GetDirectory

PARAMETERS
{directory="smb://192.168.0.22/media/video";
media=video;
sort={ignorearticle=0;method=label;order=ascending;};}

In the logs I get:
Code:
20:45:04 T:2702924608   ERROR: SMBDirectory->GetDirectory: Unable to open directory : 'smb://192.168.0.22/media/video'
                                            unix_err:'d' error : 'Permission denied'
20:45:04 T:2702924608   ERROR: GetDirectory - Error getting smb://192.168.0.22/media/video


I've done some searching on the forum and there seems to be an issue where the credentials for the SMB share are not provided via the JSON-RPC call. However, the username and password are in my sources.xml:
Code:
<source>
            <name>My Video</name>
            <path pathversion="1">smb://xbmc:[email protected]/media/video/</path>
        </source>


Does anyone know if there is a way to make this work?


Thanks...
Try create passwords.xml with something like this.

<passwords>
<path>
<from pathversion="1">smb://192.168.0.22/</from>
<to pathversion="1">smb://xbmc:[email protected]/</to>
</path>
</passwords>

Make sure you set Samba share correctly.
oldpoem: you're the man. This worked.

Thanks for your help!