You would need access to the Apache config file to do this ...
First, you need to ensure that the following module is called:
LoadModule headers_module modules/mod_headers.so
Then you need to add the following to the config file (or the .htaccess file):
RewriteCond %{REMOTE_USER} (.+)
RewriteRule . - [E=RU:%1]
RequestHeader set REMOTE_USER %{RU}e
After you do this, you should be able to access the variable using:
$user := get request info("REMOTE_USER")
Hope this helps,
Darin
On Mon, Jan 23, 2012 at 2:04 PM, Perkins, Bradley D <[email protected]> wrote:
> I need to implement access to an A4D system that will use a single sign on
> service (JasigCas). I've been working with the server administrator for
> possible ways to do this from with Active4D (or 4D) and he suggests that
> since we run 4D behind Apache that I use and Apache module: mod_auth_cas
> (https://wiki.jasig.org/display/CASC/mod_auth_cas).
>
> Once a user is authenticated I will need to read the Apache REMOTE_USER
> variable.
>
> My question is if/how this might be done in Active4D?
>
> Thanks,
>
> Brad Perkins
>
> _______________________________________________
> Active4D-dev mailing list
> [email protected]
> http://list.aparajitaworld.com/listinfo/active4d-dev
> Archives: http://vasudev.aparajitaworld.com/archive/active4d-dev/
_______________________________________________
Active4D-dev mailing list
[email protected]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://vasudev.aparajitaworld.com/archive/active4d-dev/