Ticket #8990 (closed defect: fixed)

Opened 2 years ago

Last modified 6 months ago

HtPasswdStore and SessionStore with HtPasswdHashMethod share hash type selection option

Reported by: hasienda Assigned to: hasienda
Priority: normal Component: AccountManagerPlugin
Severity: major Keywords: auth hash htpasswd
Cc: mitar Trac Release: 0.11

Description

Upon implementing #8933 I recognized, that the hash type selection of HtPasswdStore has been reused verbatim in HtPasswdHashMethod for SessionStore.

This is insane (for defining same option twice) and troublesome for someone aiming at use of both authentication stores in parallel, because different hash types are ultimately impossible to achieve. Apparently situation is similar to the configuration option clash between both AbstractPasswordFileStore implementations (see #4677).

Since this

  1. has never been documented (most probably been unintended)
  2. is not easy to deduce from a non-developer point of view and
  3. contradicts the recent tendency of AcctMgr to support multiple authentication stores for store migration scenarios as well as for regular application,

it should be fixed.

Attachments

Change History

07/23/11 13:52:13 changed by hasienda

  • status changed from new to assigned.

Turns out, that HtDigestStore is involved as well, because it's htdigest_realm is illegally re-defined for SessionStore as well. We'll fix this as well for the next release.

07/23/11 14:14:07 changed by hasienda

(In [10494]) AccountManagerPlugin: Rename hash type option of HtPasswdHashMethod for SessionStore, refs #8990.

Beware: This will change effective configuration of an existing applications, that uses SessionStore with HtPasswdHashMethod and hash type other than crypt. Nevertheless this is strictly required to resolve the current, insane situation (see #8990).

Regarding i18n there are two new msgids, but let's accumulate some more changes before the next message catalog update.

07/25/11 00:31:44 changed by hasienda

(In [10497]) AccountManagerPlugin: Update unittest for SessionStore with new config option name, refs #8990.

12/01/12 16:55:52 changed by hasienda

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [12398]) AccountManagerPlugin: Releasing version 0.4, pushing development to acct_mgr-0.5dev.

Availability of that code as stable release closes #874, #3459, #4677, #5295, #5691, #6616, #7577, #8076, #8685, #8770, #8791, #8990, #9052, #9079, #9090, #9139, #9246, #9252, #9547, #9618, #9676, #9843, #9852, #9940, #10023, #10028, #10123, #10142, #10204, #10276, #10397, #10412, #10594, #10625 and #10644.

Some more issues have been worked-on, yet without confirmed resolution, refs #5464 (for JiraToTracIntegration), #8927 and #10134.

And finally there are some issues and enhancement requests showing progress, but known to require more work to resolve them satisfactorily, refs #843, #1600, #5964, #8217, #8933.

Thanks to all contributors and followers, that enabled and encouraged a good portion of this development work.


Add/Change #8990 (HtPasswdStore and SessionStore with HtPasswdHashMethod share hash type selection option)




Change Properties
Action