Modify ↓
Opened 15 years ago
Closed 15 years ago
#9372 closed defect (duplicate)
tracd --basic-auth doesn't work for SHA passwords
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | 0.12dev |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
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 0.0.0.0 trac-env &
Login as user | HTTP |
crypt | 200 |
md5 | 200 |
sha | 401 |
Attachments (0)
Note:
See TracTickets
for help on using tickets.
duplicate of #9371 (t.e.o very slow today)