[OGo-Users] accessing apache server variables in templates?
Sebastian Reitenbach
users@opengroupware.org
Thu, 15 Mar 2007 15:08:28 +0100
users@opengroupware.org wrote:
> 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?
dunno, somewhere in the application server, mod_ngobjweb... but apache is
fine...
>
> > 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" />
>
sounds promising, I'll try that (:
thanks a lot. Adam, thanks a lot too.
Sebastian