Hi CAS dev Team. I have two systems use CAS Server 3.5 to check the login and logout, use the cas-server-support-jdbc.But in some cases, I only allow the user to log into a system and can not be logged into the system remaining.To separate each type of system variables: ServiceType = 2 or 4 I have to modify the SQL as shown below in SearchModeSearchDatabaseAuthenticationHandler.java, and corresponding to each transmission system would add a parameter is ServiceType
SELECT count(service.CUSTOMER_ID) FROM CUSTOMER cus INNER JOIN CUSTOMER_SERVICE service ON cus.CUSTOMER_ID = service.CUSTOMER_ID WHERE cus.LOGIN_ID = ? AND cus.LOGIN_PASS = ? AND service.SERVICE_TYPE = ? AND service.ALLOW_LOGIN_FLG = 1 AND cus.ACTIVE_FLG = 1 I call my system is a system A and other one is system B. When do log in form it validate OK, that mean when serviceType = 2 (system A) i will check flag ALLOW_LOGIN_FLG = 1 is true and serviceType = 4 ALLOW_LOGIN_FLG = 0 is false. But my problem is when I log on to the system A (which is the right to access) and click the link to the system B(which does not have access), it still pass over log in check. Because when logged in system A ok, CAS remembered the logged in user and TicketID. How to change to CAS server don't allow access when serviceType = 4. Please help me ! Thank you so much ! -- You are currently subscribed to cas-dev@lists.jasig.org as: arch...@mail-archive.com To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev