On 01.07.2010, at 16:12, Eric Covener wrote:

> On Thu, Jul 1, 2010 at 9:56 AM, Christian Unger <christian.un...@mac.com> 
> wrote:
>> 
>> Hi there,
>> 
>> I'd like to know whether it is possible to check a request for a string via 
>> regex, store this into an envvar and match an ldap attribute against this 
>> variable?
> 
> nope
> 
>> 
>> below is my directory block. from the logs I can tell that the match in the 
>> require ldap-attribute shows that the variable doesn't get expanded.
>> on a side note I'd like to know how to log the variable to check whether it 
>> has been set or if my regex is completly in the woods.
> 
> you can change your LogFormat to include %{date}e
> 
>>        SetEnvIf REQUEST_URI ".*/directory/(\d{8})/.*" date=$1
>>        Require ldap-attribute sn=date
> 
> 
> -- 
> Eric Covener
> cove...@gmail.com
> 


Thanks Eric, 

do you happen to know if it is possible to capture the value of an 
ldap-attribute into an envvar?

then I could try to rewrite/redirect based on the variable....


__
cu
christian unger







---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to