Read only web-ui

General support for problems installing or using Deluge
Post Reply
focs
New User
New User
Posts: 3
Joined: Tue Jan 31, 2012 11:42 am

Read only web-ui

Post by focs »

Hi,
I'm trying to set up a torrent service for my whole LAN network. The idea is to let the user upload torrent files to the server (just putting the torrent file in a shared folder) and use the web-ui to let them see the status of all torrents.

As for now the web-ui only has one user, I would like to specify the user that the web-ui uses to connect to the daemon. If I use a read only account (int auth file: web:web:1) the web-ui should be able to list the current torrents but should't be able to change any of the configurations nor to delete or add any torrent.

I've tried that adding this to the web.conf file:

"default_daemon": "web:web@localhost:58846"

forcing the web-ui to use that account. But that's not working. I'm still able to add new torrents, etc...

Also, I can't connect to the daemon using the gtk gui with that account.

Any idea of what should I do next? or it it is even possible to be done?

An other issue I'm dealing with is that I can only connect to the web-ui using firefox. If I use chrome, chromium or safari it keeps asking for the password (which is still "deluge")


Any suggestion?

Btw, I'm using deluge 1.3.3 form the debian testing repository.

Fox
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Read only web-ui

Post by Cas »

I'm afraid multi-user support and auth levels are only available in our development repo (git master).
focs wrote:"default_daemon": "web:web@localhost:58846"
default_daemon is only for a host name.
focs wrote: If I use chrome, chromium or safari it keeps asking for the password (which is still "deluge")
Constantly asking for password is a time/timezone issue between browser and server with the cookie expiring immediately.
focs
New User
New User
Posts: 3
Joined: Tue Jan 31, 2012 11:42 am

Re: Read only web-ui

Post by focs »

Hi thanks, when are you planing to merge it? is it usable?

If I use it, how can I tell web-ui which user to use?
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Read only web-ui

Post by Cas »

There is no time-frame currently. It is fairly usable but there are obviously bugs in places.

There are several ways but i think the simplest would be to change the auth file localclient to be your read-only user and add an admin account for yourself.
focs
New User
New User
Posts: 3
Joined: Tue Jan 31, 2012 11:42 am

Re: Read only web-ui

Post by focs »

Hi Cas, thank you for your time.
I've tried that, and the web-ui doesn't connect. As I said I tried to connect with the gtk-ui to a read only account (user:pass:1) and it desn't even see the running daemon. I guess same thing happens with the web-ui.

Thank you again.
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Read only web-ui

Post by Cas »

Ah it seems that a read-only user has not been implemented yet.
Post Reply