client icon indicating copy to clipboard operation
client copied to clipboard

Support http password

Open PatrykRzadzinski opened this issue 12 years ago • 9 comments

Hello,

I've set my owncloud behind nginx providing a http password layer authentication (like in .htaccess files), which works well if I want to access my files over a browser, but the client doesn't deal with it so well. Would it be possible to add http password support to the client?

PatrykRzadzinski avatar Feb 19 '14 10:02 PatrykRzadzinski

That's not supported on the server side, since the webdav interface itself does http auth, so that's conflicting.

danimo avatar Feb 19 '14 13:02 danimo

I see, but wouldn't it be reasonable in case someone wants an extra layer of protection? When it comes to server support - I think it's enough that nginx supports it, but could be wrong. Just a suggestion anyway.

PatrykRzadzinski avatar Feb 19 '14 14:02 PatrykRzadzinski

I understand the motivation, but how would you solve the problem? Basic auth can only be applied once. It's a conceptual problem, not one of specific implementation.

danimo avatar Feb 19 '14 14:02 danimo

All you could do is let basic auth drive the accounts, but such an account source does not yet exist, you would need to file a server issue for that. (in core).

danimo avatar Feb 19 '14 14:02 danimo

Actually I'm wrong, sorry! This is supported by the client, just didn't notice all the data has been saved. The only thing I can actually consider a concern is that the htuser and htpasswd are stored in plaintext (next to the "bytearray" coded actual owncloud password). All information is in ~/.local/share/data/ownCloud/owncloud.cfg

PatrykRzadzinski avatar Feb 19 '14 14:02 PatrykRzadzinski

@faustov : which platform are you on?

see: https://github.com/owncloud/mirall/issues/1458

moscicki avatar Feb 19 '14 15:02 moscicki

Hi Kuba,

I got a few Gentoo systems and neither of them uses qtkeychains. Both the htpasswd and the owncloud passwords were stored in my config file, however having one password in plaintext makes it questionable to have the other one encoded, because based on the first one, it is possible to guess the second one in many cases.

On the other hand, it is highly questionable how big of a concern is a password stored on user's homedir. Better not to do it, but I'd say it is a minor issue.

How about simply encoding it same way as the owncloud password? @danimo? (let me know if you'd prefer a separate issue opened for this case as it is clearly no longer about the original question - the support is there and works as it should).

PatrykRzadzinski avatar Feb 19 '14 16:02 PatrykRzadzinski

Hello,

I agree: the problem is qtkeychains handling.

I think storing password plain text is a big no-no. Our users passwords are typically single-sign-on passwords which allow to access all other on-site services. In addition some users have their home directories on shared filesystems (e.g. AFS). So the password would be exposed over the network etc.

kuba

On Feb 19, 2014, at 5:59 PM, faustov [email protected] wrote:

Hi Kuba,

I got a few Gentoo systems and neither of them uses qtkeychains. Both the htpasswd and the owncloud passwords were stored in my config file, however having one password in plaintext makes it questionable to have the other one encoded, because based on the first one, it is possible to guess the second one in many cases.

On the other hand, it is highly questionable how big of a concern is a password stored on user's homedir. Better not to do it, but I'd say it is a minor issue.

How about simply encoding it same way as the owncloud password? @danimo? (let me know if you'd prefer a separate issue opened for this case as it is clearly no longer about the original question - the support is there and works as it should).

— Reply to this email directly or view it on GitHub.

moscicki avatar Feb 19 '14 17:02 moscicki

Agree, that's a valid point and valid case, but I am not sure if you refer to the owncloud password or http password? For me the owncloud password seems encoded.

PatrykRzadzinski avatar Feb 19 '14 19:02 PatrykRzadzinski