Actions
Feature #440
closedauth.require could be simplified using regular expressions
Status:
Fixed
Priority:
Normal
Category:
mod_auth
Target version:
-
ASK QUESTIONS IN Forums:
No
Description
I wonder if there is some fundamental reason (performance? RFC?) why auth.require use "left substring" instead of regular expressions, it's kinda one of the few places not to be blessed by them in the whole configuration ;-)
-- lapo
Files
Updated by Anonymous over 17 years ago
I've attached a small script to generate auth.require configuration details so that one does not have to write the whole shebang by herself.
$ grep -B1 inc /etc/lighttpd/conf-enabled/10-auth.conf # LOCATION="/doc /mp3 /server-config /server-status" include_shell "/usr/local/bin/lighty-auth-require.sh"
-- lists
Updated by Anonymous over 17 years ago
As a workaround, can't you just do a URL regex match, like so:
$HTTP["url"] =~ "^/[^/]+/login" { auth.require = ( "" => ( "method" => "digest", "realm" => "Secure", "require" => "valid-user", ) ) }
Works for me.
Updated by Anonymous over 17 years ago
Replying to anonymous:
As a workaround, can't you just do a URL regex match, like so:
Great! I've added this to http://trac.lighttpd.net/trac/wiki/Docs:ModAuth#configuration. I'm happy with this solution and would vote to close this bug. Lapo?
-- lists
Updated by stbuehler over 16 years ago
- Status changed from New to Fixed
- Resolution set to wontfix
Updated by gstrauss about 1 year ago
- Description updated (diff)
- Status changed from Wontfix to Fixed
- ASK QUESTIONS IN Forums set to No
Actions
Also available in: Atom