httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Pirsch <emman...@pirsch.org>
Subject [users@httpd] Environment variable in require ldap-group?
Date Tue, 01 Dec 2009 16:13:55 GMT
Hi,

Is there for the LDAP search string for require ldap-group to be based on
some variable (like an environment variable)?

I've tried something like the following without success :

<LocationMatch /hg/[\^]+>
    require ldap-group CN=%{ENV:HG_GROUP},OU=SAVX,OU=Comptes et groupes de
services,DC=CDDDC01,DC=LOCAL
</LocationMatch>

I was setting the HG_GROUP variable using a rewrite rule like this :

RewriteRule ^/hg/([^/]+)/.* - [E=HG_GROUP:$1]

Thanks!

Mime
View raw message