core icon indicating copy to clipboard operation
core copied to clipboard

password characters & length

Open jancborchardt opened this issue 13 years ago • 29 comments

From a reddit thread: http://www.reddit.com/r/privacy/comments/18de58/secure_encrypted_and_selfhosted_dropbox/

»OwnCloud wont accept my 15-cifre, alpha-numerical-symbol password, so that is a no-go.«

What do you say @LukasReschke?

jancborchardt avatar Feb 28 '13 11:02 jancborchardt

do we limit passwords? i dont think so

If we do this is retarded

BernhardPosselt avatar Feb 28 '13 11:02 BernhardPosselt

do we limit passwords? i dont think so

Limited to 255 chars - that should be far enough ;-)

Closing as invalid.

LukasReschke avatar Feb 28 '13 11:02 LukasReschke

Yeah, length limit would be retarded. Maybe the problem is the symbols.

@ChrisBuchholz are you by any chance the Chris Buchholz from that reddit thread and can let us know what exactly the problem is?

jancborchardt avatar Feb 28 '13 12:02 jancborchardt

Yeah, length limit would be retarded. Maybe the problem is the symbols.

That's a problem due the ugliness of the Web/Cal/Card-DAV standard - it defines no standard encoding so that password with some special characters are not recognised properly when accessed via DAV clients...

LukasReschke avatar Feb 28 '13 12:02 LukasReschke

@jancborchardt Yes that is me. I simply used my own password scheme which I use almost everywhere, but the resulting password, which contains number, letters, ! and % and is 15-cifres, did only work with the owncloud web-frontend. None of the other clients would let me log in. If i changed my password to something simpler, it worked fine.

ChrisBuchholz avatar Feb 28 '13 12:02 ChrisBuchholz

None of the other clients would let me log in. If i changed my password to something simpler, it worked fine.

As I said: Blame DAV for that. - @jancborchardt Only thing we can do is limit the password to ASCII or show a warning that the "logins with DAV clients may not work due to some special chars" - guessing encoding is a pain and also not 100% reliable.

LukasReschke avatar Feb 28 '13 12:02 LukasReschke

That would solve our problem: https://tools.ietf.org/html/draft-reschke-basicauth-enc-07

Let's hope it will get implemented in the future... ;-)

LukasReschke avatar Feb 28 '13 12:02 LukasReschke

@LukasReschke Family? ;)

J. Reschke

tanghus avatar Feb 28 '13 12:02 tanghus

@ChrisBuchholz 52^256 should be enough entropy for everyone ;D

BernhardPosselt avatar Feb 28 '13 12:02 BernhardPosselt

@ChrisBuchholz sorry for the inconvenience, we’re limited by the open DAV standards we use there. We should probably have a note somewhere or maybe have the same limit in the web interface then as well (with a note that it’s because of DAV).

jancborchardt avatar Feb 28 '13 13:02 jancborchardt

I just ran into this issue. Combined with #2584, this made for a very frustrating first use of ownCloud! :)

The client gives an unhelpful error message in this case: "Remote folder creation failed probably because the provided credentials are wrong." And in the log: "Too many attempts to authenticate. Stop request."

Options as I see them are:

  1. Add an errata note about password characters and WebDAV (what even are the specs for this? can't find them anywhere)
  2. Add some password validations server-side to ensure compatibilty
  3. Add validation in the clients

1 would be the quickest, 2 seems like the best solution, 3 is probably pointless.

mrtorrent avatar Mar 26 '13 22:03 mrtorrent

I can also confirm that this issue is present, just as mrtorrent commented on. I set up a user with a password that contained the special character "æ" from the standard Norwegian alphabet (we use æ-Æ, ø-Ø and å-Å in addition to A-Z). When the user tried to set up the Windows Desktop Sync he got that error message of "Remote folder creation failed [...]" as mrtorrent quoted.

He changed his password via the web interface and desktop sync setup worked.

tommyms avatar Apr 05 '13 23:04 tommyms

"<" doesn't work too. And from my point of view this is really sad. I think a warning at the password creation is the minimum. And even this is not good.

mxmxchere avatar Apr 12 '13 19:04 mxmxchere

We could switch to Digest instead of using Basic authentication... I'll think about this...

LukasReschke avatar Apr 12 '13 19:04 LukasReschke

Does this mean the password is hashed on the client and then the hash is compared to the one which is stored in the serverdb?

mxmxchere avatar Apr 12 '13 19:04 mxmxchere

Does this mean the password is hashed on the client and then the hash is compared to the one which is stored in the serverdb?

Yep, this is what digest authentication usually does, however I have to check if this is compatible with our clients etc...

LukasReschke avatar Apr 12 '13 19:04 LukasReschke

is this an option for authentification in the DAV standard?

mxmxchere avatar Apr 12 '13 19:04 mxmxchere

Yup.

LukasReschke avatar Apr 12 '13 19:04 LukasReschke

cool ;-)

mxmxchere avatar Apr 12 '13 19:04 mxmxchere

The problem with digest is that that only works if we can calculate the hash. The combination with extern userbackend like ldap, webdav and other doesn't work anymore with digest.

karlitschek avatar Apr 13 '13 12:04 karlitschek