Edgewall Software
Modify

Opened 18 years ago

Closed 17 years ago

#2461 closed defect (worksforme)

Generating htdigest passwords without apache2 using wikiscript

Reported by: cpt_cowboy@… 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 anonymous, 18 years ago

Why don't you try the same realm, username and password?

$ htdigest -c users trac cowboy
Adding password for user cowboy in realm trac
New password: password
Re-type new password: password
$ cat users
cowboy:trac:12234ded7c880e6d546d236310387979

comment:2 by smartboy_4luv@…, 18 years ago

Milestone: 0.7
Type: defectenhancement

plz help me find out my password plz

comment:3 by Emmanuel Blot, 18 years ago

Milestone: 0.7
Type: enhancementdefect

Please do not abuse the system

comment:4 by sid, 17 years ago

Keywords: htdigest, authentication → htdigest authentication
Resolution: worksforme
Status: newclosed
Summary: Generating htdigrest passwords without apache2 using wikiscriptGenerating 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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström 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.