[OGo-Users] accessing apache server variables in templates?

Helge Hess users@opengroupware.org
Thu, 15 Mar 2007 13:38:31 +0100


On Mar 15, 2007, at 06:11, Sebastian Reitenbach wrote:
>> No, but you can forward Apache variables as HTTP headers which you
>> can then access, eg:
>>    RequestHeader set ssl_client_s_dn    %{SSL_CLIENT_S_DN}e
> I do not get the whole picture, from where do I forward these  
> variables?

In Apache, where else?

> So I have to edit some obj code to make the values available in the  
> webui?

I don't think so, but it might be a bit of fiddling with repetitions  
since headers are multivalued. Eg:

   <#WOString var:value="context.request.headers.ssl_client_s_dn" />

This probably gives you an array with one element. Well, if you are  
sure you only have exactly one element you could hack around that by  
using:

   <#WOString  
var:value="context.request.headers.ssl_client_s_dn.lastObject" />

Helge
-- 
Helge Hess
http://www.helgehess.eu/