Red Hat Bugzilla – Bug 621157
http basic auth does not work?
Last modified: 2010-08-04 09:22:19 EDT
Description of problem:
I can generate, using htpasswd, a password file, starting with plain-text passwords and every other encryption type, yet agedu --auth basic --auth-file does not authenticate, just keeps popping up and asks to submit user & password
Version-Release number of selected component (if applicable):
Steps to Reproduce:
I was able to reproduce this. Reporting upstream.
Looks like my problem was caused by having a newline character at the end of the password file, after all. htpasswd puts in a newline character at the end, so you're experiencing the same problem.
Create the password file with e.g.
$ echo -n "user:pass" > passwd
and then it will work.
yep indeed, thanks for this, nice one.