Bug 167209 - [patch] www/lighttpd to allow use of remote-user in conditionals
Summary: [patch] www/lighttpd to allow use of remote-user in conditionals
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Matuska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-22 19:00 UTC by Ryan Steinmetz
Modified: 2012-09-04 07:41 UTC (History)
0 users

See Also:


Attachments
file.diff (3.71 KB, patch)
2012-04-22 19:00 UTC, Ryan Steinmetz
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Steinmetz 2012-04-22 19:00:24 UTC
This patch adds the ability to use syntax like the following:
$HTTP["url"] =~ "^/url" {
  $HTTP["remoteuser"] !~ "myuser" {
    url.access-deny = ( "" )
  }
}

This makes it possible to authorize specific client certificates whenever they are used.  Sample syntax could look like the following:

ssl.verifyclient.exportcert = "enable"
ssl.verifyclient.activate   = "enable"
ssl.verifyclient.username   = "SSL_CLIENT_S_DN_CN"
ssl.verifyclient.enforce    = "disable"
ssl.verifyclient.depth      = 3
ssl.verifyclient.username = "SSL_CLIENT_S_DN_CN"
ssl.verifyclient.exportcert = "enable"
$HTTP["url"] =~ "^/url" {
  $HTTP["remoteuser"] !~ "mycertCN" {
    url.access-deny = ( "" )
  }
}

This patch has been submitted upstream in Feature request #2415, however, the last release of lighttpd was over 1 year ago.

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-04-22 19:01:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->mm

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2012-06-16 23:28:57 UTC
mm          2012-06-16 22:28:41 UTC

  FreeBSD ports repository

  Modified files:
    www/lighttpd         Makefile 
  Added files:
    www/lighttpd/files   extra-patch-remoteuser 
  Log:
  Add 3rd party remoteuser patch (optional)
  http://redmine.lighttpd.net/issues/2415
  
  PR:             ports/167209
  Submitted by:   Ryan Steinmetz <rpsfa@rit.edu>
  
  Revision  Changes    Path
  1.112     +7 -1      ports/www/lighttpd/Makefile
  1.1       +64 -0     ports/www/lighttpd/files/extra-patch-remoteuser (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Martin Matuska freebsd_committer freebsd_triage 2012-09-04 07:40:59 UTC
State Changed
From-To: open->closed

Resolved. Thanks!