Edgewall Software

Opened 13 years ago

Closed 13 years ago

#9372 closed defect (duplicate)

tracd --basic-auth doesn't work for SHA passwords

Reported by: Daniel Musketa <daniel@…> Owned by:
Priority: normal Milestone:
Component: general Version: 0.12dev
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:


tracd --basic-auth works for passwords generated by htpasswd in crypt (which is linux default) or md5 (option -m) mode, but not for passwords generated in SHA (option -s) mode.

How to reproduce

# create a fresh env
trac-admin trac-env/ initenv

# create file for auth (user=passwd=mode)
echo crypt:PgjnZnmDQ8S7w >> .htpasswd
echo md5:$apr1$PjxHNVvY$41a7qPozEZ1b47OomFoos/ >> .htpasswd
echo sha:{SHA}2PRZAyDhNDqRW2OUFwZQqPNdaSY= >> .htpasswd

# run tracd
tracd --basic-auth=trac-env,.htpasswd, --port 8000 --hostname trac-env &
Login as user HTTP
crypt 200
md5 200
sha 401

Attachments (0)

Change History (1)

comment:1 by Daniel Musketa <daniel@…>, 13 years ago

Resolution: duplicate
Status: newclosed

duplicate of #9371 (t.e.o very slow today)

Modify Ticket

Change Properties
Set your email in Preferences
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.