Carl,

Thanks a ton for your help first of all.

The ST session is there it is in the browser url.
CAS authenticates and leaves you at a prompt to log into Cognos.

You do not get an error at all , I just sits at the Cognos login screen.
The Cognos log says it cannot interpret the username user input required.

Answered each item below.


Thank You,

Chris Cheltenham
SwainTechs / HHS

Cell# 267-586-2369


-----Original Message-----
From: Waldbieser, Carl [mailto:[email protected]] 
Sent: Wednesday, December 03, 2014 10:41 AM
To: [email protected]
Subject: Re: [cas-user] Cas for Cognos

Chris,

The Java code will not run in Apache.
That runs in the Servlet container as part of the application.

Can you explain what happens when you authenticate?
     CAS authenticated to LDAP and redirects to Cognos log in screen

Is your browser redirected to Apache with an ST?  
     Yes

And on the CAS server, are you seeing the ST validated?
   Yes session lives in /tmp/cas

If so, what happens next?  Is your browser redirected and Cognos complains 
about no user? 
    The Cognos logs complain that it cannot interpret the username information  
 

Is there a 500 error? 
    NO
                
Are you redirected back to a login screen?
   Yes back to the Cognos login screen    


Thanks,
Carl

----- Original Message -----
From: "Chris Cheltenham" <[email protected]>
To: [email protected]
Sent: Wednesday, December 3, 2014 10:32:28 AM
Subject: RE: [cas-user] Cas for Cognos

Carl,

If I used the string the way you sent it apache said it did not understand 
String and would not start.

I tried using require instead of string but that gave me an error also.

Require valid-user we have tried before.

Most of what you are doing is very similar but none of seems to work for us.

 


Thank You,

Chris Cheltenham
SwainTechs / HHS

Cell# 267-586-2369


-----Original Message-----
From: Waldbieser, Carl [mailto:[email protected]] 
Sent: Wednesday, December 03, 2014 10:18 AM
To: [email protected]
Subject: Re: [cas-user] Cas for Cognos

Chris,

Also, in my Apache config for the site, I have this to proxy the tomcat servlet 
via AJP:

   <Proxy *>
     AddDefaultCharset Off
     Order deny,allow
     Allow from all
   </Proxy>

    ProxyPass  / ajp://localhost:8009/
    ProxyPassReverse / ajp://localhost:8009/

    <Location / >
        Authtype CAS
        require valid-user
    </Location>

The `require valid-user` should be all you need to make sure that CAS 
authentication took place.
I also have the following for configuring mod_auth_cas:

  LoadModule auth_cas_module /etc/httpd/modules/mod_auth_cas.so

  CASCookiePath /var/cache/mod_auth_cas/
  CASLoginURL https://cas.dev.lafayette.edu/cas/login
  CASValidateURL https://cas.dev.lafayette.edu/cas/serviceValidate
  CASRootProxiedAs https://grouper1.dev.lafayette.edu

The first line loads the Apache module.
The next sets the folder where CAS cookies are stored (make sure permissions 
are set correctly to let Apache write here!).
The next is the login URL of our DEV CAS server.
Next is our DEV /serviceValidate URL (our CAS servers are older, but customized 
to use the CAS attribute release.  Your URL is likely different if you are 
using a more modern CAS-- maybe something like /p3/serviceValidate).
Finally, the last directive tells Apache what the `service` parameter for CAS 
logins ought to look like, because our Apache server is proxied behind Nginx.

Thanks,
Carl

----- Original Message -----
From: "Chris Cheltenham" <[email protected]>
To: [email protected]
Sent: Wednesday, December 3, 2014 9:59:43 AM
Subject: RE: [cas-user] Cas for Cognos

Carl,

I'll give it a shot and let you know.
Thanks



Thank You,

Chris Cheltenham
SwainTechs / HHS

Cell# 267-586-2369


-----Original Message-----
From: Waldbieser, Carl [mailto:[email protected]] 
Sent: Wednesday, December 03, 2014 9:58 AM
To: [email protected]
Subject: Re: [cas-user] Cas for Cognos

Chris,

I'm not using Cognos, but we use lots of other Java-based webapps that auth 
with CAS.
For some, like Zimbra, we integrated the Java CAS client directly.
For the new pilot we are working on for Internet2 Grouper, we opted for 
mod_auth_cas.
We use Tomcat6 for that particular servlet container.

I believe the following line of Java code in the webapp is how the REMOTE_USER 
variable is pulled into the app:

  String remoteUser = httpServletRequest.getRemoteUser();

The `remoteUser` variable should contain the user name at that point.

Does that help?

Thanks,
Carl

----- Original Message -----
From: "Chris Cheltenham" <[email protected]>
To: [email protected]
Sent: Wednesday, December 3, 2014 9:34:18 AM
Subject: RE: [cas-user] Cas for Cognos

Carl,

That is pretty much how we have it set up.
I have attached the config files.
Are you using Cognos?

What we have is a apache server running mod_auth_cas and cognos.conf script 
alias.
The Cognos gateway is on the web server as well.

In Cognos.conf if we set ifenv to a specific user, it will log in as that user.


Thank You,

Chris Cheltenham
SwainTechs / HHS

Cell# 267-586-2369


-----Original Message-----
From: Waldbieser, Carl [mailto:[email protected]] 
Sent: Wednesday, December 03, 2014 9:24 AM
To: [email protected]
Subject: Re: [cas-user] Cas for Cognos

Chris,

So what is your service setup like?  I.e. what CAS client are you using?

For example, if you are using an Apache front end with mod_auth_cas and you 
application in a Java servlet container you connect to via AJP, the REMOTE_USER 
environment variable will be set with the user name in your servlet process.

The type of CAS client you use really determines how you access the username 
when the ticket is validated.

Thanks,
Carl

----- Original Message -----
From: "Chris Cheltenham" <[email protected]>
To: [email protected]
Sent: Wednesday, December 3, 2014 9:17:36 AM
Subject: RE: [cas-user] Cas for Cognos

Carl,

Thanks, I guess I misspoke saying passing the password variable.

What we need to configure is passing the cookie user information to the remote 
user variable of Cognos.

That’s where we are stuck.


Thank You,

Chris Cheltenham
SwainTechs / HHS

Cell# 267-586-2369


-----Original Message-----
From: Waldbieser, Carl [mailto:[email protected]] 
Sent: Tuesday, December 02, 2014 12:52 PM
To: [email protected]
Subject: Re: [cas-user] Cas for Cognos

Chris,

The typical scenario is for the user to authenticate with CAS.
The credentials are only seen by CAS.
CAS responds by issuing a TGC (cookie) that is usable by the CAS server domain 
(other domains do not see it).
If CAS sees the user has a TGC, it issues a ST (service ticket) for the service 
and redirects the user's browser to the service provider with the ST as a 
querystring parameter.
The CAS client at the service provider, reads the ST, then opens a back-channel 
HTTPS connection to CAS to validate the ST.

There are historically a couple different validation protocols.  The modern one 
is the CASv3 protocol.  When CAS validates the ticket successfully, it will 
respond with the user name, and zero or more attributes (configurable at the 
CAS server).

The attributes can typically be used by the service provider for access control 
(authorization).
The other typical scenario is that the service provider handles access control 
internally, and bases it purely off the user name returned during ST validation.

The user's password is *never* presented to the service provider.  That is the 
whole point of CAS.  Authentication is *centralized*.

Thanks,
Carl

----- Original Message -----
From: "Chris Cheltenham" <[email protected]>
To: [email protected]
Sent: Tuesday, December 2, 2014 11:49:45 AM
Subject: RE: [cas-user] Cas for Cognos

Carl,

I don’t know what you mean.

Once you log into CAS I need it to pass those attributes to Cognos.
Otherwise you have to log in twice which defeats the purpose of SSO.

What service provider are you talking about.



Thank You,

Chris Cheltenham
SwainTechs / HHS

Cell# 267-586-2369


-----Original Message-----
From: Waldbieser, Carl [mailto:[email protected]] 
Sent: Tuesday, December 02, 2014 10:49 AM
To: [email protected]
Subject: Re: [cas-user] Cas for Cognos


Isn't the whole point of CAS so that the service provider *does not get the 
user credentials*?

Thanks,
Carl Waldbieser
ITS System Programmer
Lafayette College

----- Original Message -----
From: "Chris Cheltenham" <[email protected]>
To: [email protected]
Sent: Tuesday, December 2, 2014 10:20:49 AM
Subject: [cas-user] Cas for Cognos


Hello All,

We are having a hell of a time trying to configure apache to pass the username 
/ password variabkes from the CAS login properties to Cognos.

We use a script alias to proxy to CAS form apache web server.

Has anyone ever been able to do this successfully?

It just a matter of configuring cognos.conf in /etc/httpd/conf.d But we have 
tried a 1000 different things without success.




Thank You,

Chris Cheltenham
SwainTechs / HHS

Cell# 267-586-2369


--
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

--
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

-- 
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

-- 
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


-- 
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

-- 
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


-- 
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

-- 
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


-- 
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

-- 
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


-- 
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

-- 
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


-- 
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