Page 1 of 2

Can't use a separate smb accounts for each profile.

Posted: 21 Oct 2017, 03:09
by kusanagy
I want to use a separate smb accounts for each profile.

example)
profileA uses smb account "userA".
profileB uses smb account "userB".

I tried it several times, but it seems to use either smb account.
By the way, I using MrMC v3.2.0 on iPad.

Can I use such a way with MrMC?

Re: Can't use a separate smb accounts for each profile.

Posted: 21 Oct 2017, 05:30
by amet
Smb accounts are tied in with sources, if you use source 1 with user A on profile 1 and create the database, then profile 2 will have its own database where you setup source 2 with user B

In theory it should work, I have never tested it though :)

Re: Can't use a separate smb accounts for each profile.

Posted: 21 Oct 2017, 11:55
by davilla
what is source path for both ?

Re: Can't use a separate smb accounts for each profile.

Posted: 21 Oct 2017, 19:28
by kusanagy
amet wrote: 21 Oct 2017, 05:30 Smb accounts are tied in with sources, if you use source 1 with user A on profile 1 and create the database, then profile 2 will have its own database where you setup source 2 with user B

In theory it should work, I have never tested it though :)
I thought that I would also succeed, but expected behavior could not be obtained :_)

Re: Can't use a separate smb accounts for each profile.

Posted: 21 Oct 2017, 19:35
by kusanagy
davilla wrote: 21 Oct 2017, 11:55 what is source path for both ?
I tried with file source and video source.

I will describe the tried case is as follow.

[ environment ]
-SMB server: QNAP NAS
-SMB account
userA/passA (for profileA)
userB/passB (for profileB)

[ tried case ]
1. Fresh install the MrMC Touch using AppStore.
2. Run the MrMC Touch app.
3. Create profile of "profileA" and "profileB".
All the settings used default values. (media info and media source are set to "separate", "fresh setting" and "fresh media sources".)

4. Load profile of "profileA".
4.1. Add the video source.
Navigate to "Media sources > Video > Add videos...".
Navigate to "Browse > Windows netowrk (SMB)" then select "home" directory on QNAP NAS.
Enter username(userA) and password(passA), and check "Remember for this path", and tap the OK.

4.2. Tap the registered "home".
-> The home direcotry of "userA" is displayed. (Expected behavior)

5. Load profile of "profileB".
5.1. Add the video source.
Navigate to "Media sources > Video > Add videos...".
Navigate to "Browse > Windows netowrk (SMB)" then select "home" directory on QNAP NAS.
-> The input directory of "username" is not displayed and the home directory of "userA" is displayed.
(Unexpected behavior)

Tap the OK then registerd "home".

5.2. Tap the registerd "home".
-> The home directory of "userA" is displayed.

5.3. Add the video source (using "Add network location")
Navigate to "Media sources > Video > Add videos...".
Navigate to "Browse > Add network location...
Enter Server name, Shared folder, and username(userB) and password(passB) then tap the OK.
-> When the registered location is selected, home directory of "userB" is displayed, so I registered it as "home2".

5.4. Tap the registerd "home2".
-> The home directory of "userB" is displayed.

5.5. Add the video source (directory that "userB" can not access)
Navigate to "Media sources > Video > Add videos...".
Navigate to "Browse > Windows netowrk (SMB)" then select the directory of QNAP NAS that "userB" can not access.
->The entry screen for username is displayed, but "userA" has been entered for username, not "userB". (Unexpected behavior)


By the way, create new profile and attempting add the video source will use username of "userA".

Please confirm about this situation.

Re: Can't use a separate smb accounts for each profile.

Posted: 21 Oct 2017, 20:00
by davilla
user/pass is associated with server/mount point. A source is associated with server/mount point/path. It's been that way for decades.

This is basically trying to associate multiple user/pass with the same server/mount point. The 1st match gets user A all the time.

We are reviewing the code base to see if we can associate a user/pass -> server/mount point according to profile.

Re: Can't use a separate smb accounts for each profile.

Posted: 22 Oct 2017, 15:15
by davilla
Are you wanting the same share point for both users?
Describe the content organization on the qnap.

Re: Can't use a separate smb accounts for each profile.

Posted: 24 Oct 2017, 14:10
by kusanagy
davilla wrote: 22 Oct 2017, 15:15 Are you wanting the same share point for both users?
Describe the content organization on the qnap.
In my QNAP, access is restricted for each subfolder as follows.
/movie/sub-folderA (All user has read access)
/movie/sub-folderB (Only userA has read access)
/movie/sub-folderC (Only userB has read access)
I'd like to mount of /movie folder on both users and control access with user/pass.

I think that the same thing can be done by the following method, but I would like to use NAS side access control if possible.
-Mount for each subfolder.
-Lock setting each users.

Re: Can't use a separate smb accounts for each profile.

Posted: 10 Nov 2017, 21:10
by kusanagy
What happened to the review results on this behavior?
Are you planning to enhance it?
Please teach me the current situation.

Re: Can't use a separate smb accounts for each profile.

Posted: 11 Nov 2017, 12:46
by davilla
kusanagy wrote: 10 Nov 2017, 21:10 What happened to the review results on this behavior?
Are you planning to enhance it?
Please teach me the current situation.
Changing how the code base works regarding user/pass and shares would be difficult. User/pass are looked up via share path.

You would have to setup two shares for each.

User A:
/movie/sub-folderA
/movie/sub-folderB

User B:
/movie/sub-folderA
/movie/sub-folderC

Then sub-folderA and sub-folderB would show up for User A, sub-folderA and sub-folderC for user B.