Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 386093 - Tracd doesn't handle authentication when launched via init script
Summary: Tracd doesn't handle authentication when launched via init script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Dirkjan Ochtman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-07 16:08 UTC by Plopmaster
Modified: 2012-02-16 14:22 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Plopmaster 2011-10-07 16:08:34 UTC
I use tracd to serve ma trac pages.
I set up (basic) authentication and it doesn't work when I launch tracd via /etc/init.d/tracd start. Trac gives me "Trac Error
Authentication information not available. Please refer to the installation documentation.

TracGuide — The Trac User and Administration Guide
"
When I launcg the same command line via the shell, it works

Here is the command line of my trac :
/usr/bin/tracd -p 3050 /var/lib/trac/korsani -s -r --basic-auth='korsani,/var/lib/trac/.htpasswd,plop'

Reproducible: Always

Steps to Reproduce:
1. htpasswd -c /var/lib/trac/.htpasswd username
2. tracd -p 3050 /var/lib/trac/korsani -s -r --basic-auth='korsani,/var/lib/trac/.htpasswd,plop'
3. point your browser to your trac instance, and try to log in
Actual Results:  
Trac Error
Authentication information not available. Please refer to the installation documentation.

TracGuide — The Trac User and Administration Guide


Expected Results:  
I'm logged in

My trac is 0.12.2 behind nginx
Comment 1 Fab 2011-10-07 17:47:47 UTC
I hit this bug recently. How did you set the TRACD_OPTS variable from /etc/confd/tracd ? To make it work as expected you should try without quoting the --basic-auth content :

TRACD_OPTS="--basic-auth=korsani,/var/lib/trac/.htpasswd,plop /var/lib/trac/korsani"
Comment 2 Plopmaster 2011-10-11 06:22:27 UTC
It works without quoting the --basic-auth.
Thank you :)
Comment 3 Dirkjan Ochtman (RETIRED) gentoo-dev 2012-02-16 14:22:08 UTC
This has been fixed.