Hi Phil,

Thanks by your answer.

I did what you say, and i got the $_SERVER['REMOTE_USER'] variable 
defined as well as  $_SERVER['PHP_AUTH_USER'] (with the same values).

So basically what i did is to modify the "auth_cas.php" file that i got 
from 
http://www.prism.gatech.edu/~dli30/Publish/Software/Entries/2007/11/30_Sounds_at_the_beach.html
 
<http://www.prism.gatech.edu/%7Edli30/Publish/Software/Entries/2007/11/30_Sounds_at_the_beach.html>
 
and replaced all $_SERVER['HTTP_CAS_FILTER_USER'] occurrences by 
$_SERVER['PHP_AUTH_USER'] and now it works.

I think this could be posted in the wiki so that people who is trying to 
do the same, can achieve it.

Thanks.

On 09/16/2011 05:00 AM, Phil Ames wrote:
> Do you get redirected to CAS?  If you run a <? phpinfo(); ?> can you 
> see what the $_SERVER['REMOTE_USER'] variable is for a protected page? 
>  That should tell you whether the Apache environment for that path is 
> aware of the CAS user.  Then it's a matter of getting phpbb3 to 
> use/trust that value.
>
> -Phil
>
> On Wed, Sep 14, 2011 at 4:43 PM, <[email protected] 
> <mailto:[email protected]>> wrote:
>
>     Hi, i put phpbb3 as the main webpage for a domain, i mean when i
>     enter in:
>
>     forums.mydomain.com <http://forums.mydomain.com> i enter to
>     phpbb3, so i have a virtualhost for this domain and a section like
>     this one:
>
>     <Location />
>
>             AuthType CAS
>             AuthName "CAS"
>             require valid-user
>             CASScope /
>             Order allow,deny
>             Allow from all
>     </Location>
>
>     Regards.
>
>
>     > Am 14.09.2011 22:23, schrieb [email protected]
>     <mailto:[email protected]>:
>     >> This is what i have in my /etc/apache/mods-enabled/auth_cas.conf:
>     >>
>     >> CASCookiePath /var/cache/apache2/mod_auth_cas/
>     >> CASLoginURL https://sso.mydomain.com:8443/cas/login
>     >> CASValidateURL https://sso.mydomain.com:8443/cas/serviceValidate
>     >> CASValidateServer On
>     >> CASDebug On
>     >>
>     >> Any ideas?
>     >>
>     >> I'm using phpBB3 version 3.0.9 and CAS 3.4.2.1.
>     >
>     > Have you enabled the actual authentication for your directory or
>     > location? Your config only sets the global parameters but does not
>     > enable the actual authentication. Something like this could be
>     missing:
>     >
>     > <Location "/cas/">
>     > AuthType CAS
>     > AuthName "CAS"
>     > require valid-user
>     > #require user youruser
>     > </Location>
>     >
>     > Regards,
>     >
>     > Joachim
>     >
>     > --
>     > You are currently subscribed to [email protected]
>     <mailto:[email protected]> as:
>     > [email protected] <mailto:[email protected]>
>
>     > To unsubscribe, change settings or access archives, see
>     > http://www.ja-sig.org/wiki/display/JSG/cas-user
>     >
>
>     -- 
>     You are currently subscribed [email protected]  
> <mailto:[email protected]>  as:[email protected]  
> <mailto:[email protected]>
>     To unsubscribe, change settings or access archives, 
> seehttp://www.ja-sig.org/wiki/display/JSG/cas-user
>
>
> -- 
> You are currently subscribed to [email protected] as: 
> [email protected]
> To unsubscribe, change settings or access archives, see 
> http://www.ja-sig.org/wiki/display/JSG/cas-user


-- 
Joel Rosental R.
Systems Administrator.

GPG Fingerprint = 49AF BC22 A6D1 9833 A421  7330 A0FB E34E AFCB 4CCA

Tel: +34 91 481 6987
Fax: + 34 91 481 6987
Web: http://www.networks.imdea.org


-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to