Op woensdag 28-01-2009 om 09:37 uur [tijdzone +0100], schreef Alvaro Lopez Ortega: > On 28-ene-09, at 08:57, Jesse van den Kieboom wrote: > > > I'm exploring the possibilities of a replacement for apache, and > > cherokee seems a very attractive sollution. I have one need though > > that > > I could not directly find in the documention. Being able to > > authenticate > > users given the url they try to access, dynamically. With this I mean > > that for instance I'd like to match the first directory in a url and > > match that to a user group in ldap, e.g. http://example.com/myproject/ > > would be authenticated against ldap users in the group myproject. Is > > this possible with cherokee? And if not, maybe there is another way to > > do this without configuring every single directory? > > It isn't possible yet. Actually, a variable substitution mechanism has > been a frequent request, so I think we will add it the upcoming > release (or the one after).
Cool! > Do you have a more detailed example about what you'd need it to do? > I'd like to be sure that the implementation fits the needs of the > people who has requested it. What I would like to use it for is managing remote git repositories including authentication in an easy way, using ldap to authenticate users. So, my layout could be: http://example.com/git -> /var/www/git with /var/www/git including any number of repos.git directories. I'd like to map something like http://example.com/git/([^/]+).git to authentication based on users in the group $1. Being able to substitute regular expression groups from a Regular Expression rule in certain fields would do the trick I think (although I'm not sure the ldap authentication module is flexible enough to allow this, e.g. is the Users field mandatory, because I'd like to match users based on a custom filter with the regex group substituted). > -- > Octality > http://www.octality.com/ > -- Jesse van den Kieboom Personal: http://www.icecrew.nl Professional: http://www.novowork.com _______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
