Mobileread
Restrict user to virtual library?
#1  iamagloworm 02-03-2020, 07:01 PM
Looking for a little help.

I have set up a user using [icode]calibre-server --manage-users[/icode] and specified a virtual library. When I try to login with this user I get the error [icode]The user iamagloworm is not allowed to access any libraries on this server[/icode]

What am I doing wrong?

Is there another method to restrict user according to tags?

Code
$ calibre-server --manage-users
1) Add a new user
2) Edit an existing user
3) Remove a user
4) Cancel
What do you want to do? [1-4]: 2
Existing user names:
iamagloworm
Enter the username: iamagloworm
iamagloworm has readonly access
1) Show password for iamagloworm
2) Change password for iamagloworm
3) Change read/write permission for iamagloworm
4) Change the libraries iamagloworm is allowed to access
5) Cancel
What do you want to do? [1-5]: 4
iamagloworm is currently only allowed to access the libraries named: conservation, parenting, pregnancy
iamagloworm has no additional per-library restrictions
1) Allow access to all libraries
2) Allow access to only specified libraries
3) Allow access to all, except specified libraries
4) Change per-library restrictions
5) Cancel
What do you want to do? [1-5]: 2
Enter a comma separated list of library names: conservation
Allowing access only to libraries: conservation
iamagloworm has readonly access
1) Show password for iamagloworm
2) Change password for iamagloworm
3) Change read/write permission for iamagloworm
4) Change the libraries iamagloworm is allowed to access
5) Cancel
What do you want to do? [1-5]: 5
1) Add a new user
2) Edit an existing user
3) Remove a user
4) Cancel
What do you want to do? [1-4]: 4
Reply 

#2  kovidgoyal 02-03-2020, 09:06 PM
do the library names you have allowed actually match the libraries you are serving? Andif you want to restrict the user using virtual libraries you need the per library restrictions setting.
Reply 

#3  iamagloworm 02-03-2020, 09:40 PM
thanks for the pointer. after somer further searching I found that I needed to specify per library restriction in this format [code]vl:conservation[/icode]

what I have not been able to figure out is how to specify more than one virtual library. per library restriction of [code]vl:conservation OR vl:restoration[/icode] does not seem to work. can you give me another pointer on multiple virtual libraries as user restrictions?

thanks
Reply 

#4  kovidgoyal 02-03-2020, 09:55 PM
create a virtual library that ors all the search terms from the vls you want to use and use that as your restriction.
Reply 

Today's Posts | Search this Thread | Login | Register