Trenton,

Right now, you can only specify a single timeout policy for use with
service tickets and ticket granting tickets, which the ticket granting
ticket is used for the SSO portion of CAS.  This is done in the
cas-server-webapp/src/main/webapp/WEB-INF/spring-configuration/ticketExp
irationPolicies.xml file of the 3.2 branch.

Now, it might be possible for you to write your own timeout policy to do
it.  If you look in
cas-server-core/src/main/java/org/jasig/cas/ticket/TicketState.java, you
will see the getAuthentication() method, which returns an instance of
cas-server-core/src/main/java/org/jasig/cas/authentication/Authenticatio
n.java, which will allow you to use the getPrincipal() method.

HTH,

Andrew R Feller, Analyst
University Information Systems
200 Fred Frey Building
Louisiana State University
Baton Rouge, LA, 70803
(225) 578-3737 (Office)
(225) 578-6400 (Fax)

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Trenton D. Adams
Sent: Tuesday, April 22, 2008 9:44 PM
To: Yale CAS mailing list
Subject: CAS Feature

Hi Guys,

Does CAS have a feature that will allow timeouts to be different by user
id and IP address or range?

I wrote a feature recently for 2.0.11 that allows a regular expression
for both the user id and the IP address.  Basically, we don't want
internal staff timing out any time soon, but we do want students to time
out earlier than staff.  And we also want staff that are external to
timeout VERY quickly.

Is there a feature such as this, or is it on the wish list?

Thanks.

__ 
    This communication is intended for the use of the recipient to whom
it
    is addressed, and may contain confidential, personal, and or
privileged
    information. Please contact us immediately if you are not the
intended
    recipient of this communication, and do not copy, distribute, or
take
    action relying on it. Any communications received in error, or
    subsequent reply, should be deleted or destroyed.
---
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to