Opened 19 years ago
Closed 18 years ago
#2461 closed defect (worksforme)
Generating htdigest passwords without apache2 using wikiscript
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | web frontend/tracd | Version: | 0.9.2 |
Severity: | normal | Keywords: | htdigest authentication |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Hello,
I didn't have apache 2 and wanted to run tracd standalone. However, I ran into trouble with authentication, generating a htdigest file from the following script on the trac wiki page:
Generating Passwords Without Apache http://projects.edgewall.com/trac/wiki/TracStandalone
I copied the script into a file called "genpass.py" and ran it as follows:
C:\Python23\Scripts>python genpass.py -ucowboy -ppassword
cowboy:trac:12234ded7c880e6d546d236310387979
tracd would not let me login. I then downloaded apache2 and ran the following apache2 htdigest with "password" as the password:
C:\Python23\Scripts>c:\apache2\Apache2\bin\htdigest.exe -c users.htdigest bigcowboy cowboy
Adding password for cowboy in realm bigcowboy.
New password:
Re-type new password:
C:\Python23\Scripts>more users.htdigest
cowboy:bigcowboy:fda79257aec78ddf729b3caec1a3619a
I tried to login with trac, and it worked like a charm. It seems that the script on the wiki is generating incorrect hashes. I hope this helps others in the future.
Thanks, cowboy
Attachments (0)
Change History (4)
comment:1 by , 19 years ago
comment:2 by , 19 years ago
Milestone: | → 0.7 |
---|---|
Type: | defect → enhancement |
plz help me find out my password plz
comment:3 by , 19 years ago
Milestone: | 0.7 |
---|---|
Type: | enhancement → defect |
Please do not abuse the system
comment:4 by , 18 years ago
Keywords: | htdigest, authentication → htdigest authentication |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
Summary: | Generating htdigrest passwords without apache2 using wikiscript → Generating htdigest passwords without apache2 using wikiscript |
Grabbed code from TracStandalone#GeneratingPasswordsWithoutApache and ran:
sid@[~/Desktop]: python genpass.py -ucowboy -ppassword cowboy:trac:12234ded7c880e6d546d236310387979
And then the htdigest
one:
sid@[~/Desktop]: htdigest -c users trac cowboy Adding password for cowboy in realm trac. New password: password Re-type new password: password sid@[~/Desktop]: cat users cowboy:trac:12234ded7c880e6d546d236310387979
Same results as comment:1.
Why don't you try the same realm, username and password?