Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache LocationMatch Matches as Variables
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
OgRo
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2004
Posts: 108
Location: Sampa - SP - Brasil

PostPosted: Fri Jun 13, 2008 4:19 pm    Post subject: Apache LocationMatch Matches as Variables Reply with quote

Howdy,

I work at a software development company and we use subversion with LDAP authentication (through Apache) and as we have several different projects, we also have several different repositories.

The thing is: we wanted to protect those repositories, so we created the following basic rule:
Code:

Only who is in the LDAP group svn_[REPOSITORY_NAME] can access [REPOSITORY_NAME]


As the SVN authz file doesn't know about Apache auth groups, I intended to do this in the Apache configuration.

Further more, as we have several different projects and we should create even more projects we wanted to do this dynamic by using the LocationMatch directive.

So, in theory (supposing you can use LocationMatch matched patterns as variables inside this directive), the configuration would be something like:

Code:
 
<LocationMatch "/svn/(a-z)/(.*)">
   SVNPath /var/svn/$1
   require group $1
</LocationMatch>


My question is: can we use matched patterns inside the LocationMatch directive like in this example? If it's not, can you guys gimme some pointers on how to achieve this kind of access control?

By the way, we want all our authorization data to be in the LDAP.


Thanks in advantage.
_________________
---
OgRo

Linux user #297942
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum