Bug 621157

Summary: http basic auth does not work?
Product: [Fedora] Fedora Reporter: lejeczek <peljasz>
Component: ageduAssignee: Susi Lehtola <susi.lehtola>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: susi.lehtola
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-04 13:05:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description lejeczek 2010-08-04 12:03:52 UTC
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):
0-1.r8768.fc13

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Susi Lehtola 2010-08-04 12:26:41 UTC
I was able to reproduce this. Reporting upstream.

Comment 2 Susi Lehtola 2010-08-04 13:05:19 UTC
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.

Comment 3 lejeczek 2010-08-04 13:22:19 UTC
yep indeed, thanks for this, nice one.