Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#465 closed defect (fixed)

lighttpd + htdigest mode does not set realm

Reported by: anonymous Owned by: mgood
Priority: normal Component: AccountManagerPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.9


I've been trying to get this plugin working with lighttpd and noticed a few things:

  • lighttpd htpasswd auth requires crypt() encoding, and can't deal with md5(), which is what this plug generates, so htdigest is required for proper support in lighttpd, but!
  • when using htdigest mode authentication, the "htdigest_realm" setting in trac.ini is not honored and the realm is set to the empty string "" inside the htdigest file after updating password via this plug (note that this can be worked around by simply using empty string for realm in lighttpd configuration).

Attachments (0)

Change History (2)

comment:1 Changed 8 years ago by mgood

  • Resolution set to fixed
  • Status changed from new to closed

(In [963]) merge r962 to 0.9 branch (fixes #465)

comment:2 Changed 8 years ago by mgood

The realm was read in the constructor for the htdigest handler, so if you set the value in the config after the server had been started the change was not detected. r962 and r963 fix that.

Add Comment

Modify Ticket

as closed The owner will remain mgood.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.