Thanx, Things are now much better but another strange issue, it directs me to the cas login screen, When I login I know it logs me in successfully because if I provide incorrect credentials it will stop me on same cas login screen ... but when the credentials are correct, it does redirect me back with a authentication ticket number but back on screen where the process was started it says "you were not authenticated" but I does authenticated as it issued a return ticket..
So in short, authentication is done successfully with cas, but when it returns me back to original screen with a ticket, it says authentication failed. Any words on this? On 5 March 2012 16:36, Scott Battaglia <[email protected]> wrote: > I don't know phpCAS client specifically, but typically the clients only > care about the protocol (i.e. 1.0 or 2.0) and not the actual server version: > phpCAS::client(CAS_VERSION_2_0, $cas_host, $cas_port, $cas_context); > > > https://github.com/Jasig/phpCAS/blob/master/docs/examples/example_simple.php > > > Cheers, > Scott > > > On Mon, Mar 5, 2012 at 6:05 AM, Khurram Shahzad < > [email protected]> wrote: > >> Hi, >> >> I have setup the CAS server ver. 3.4.11 via LDAP authentication method >> on a local machine. I able to login via default java client. >> >> Now, I needed to authenticate via php so dowloaded the latest phpCAS ver. >> 1.2.2, When I wrote some basic authentication code i got the following >> error. >> >> phpCAS error: phpCAS::?(): this version of CAS (`3.4.11') is not >>> supported by phpCAS 1.2.2 in ? on line ? >>> >>> >> My basic test code was as follows >> >>> include "../CAS-1.2.2/CAS.php"; >>> $obj = new >>> CAS_Client('3.4.11',false,"localhost",8443,"cas-server-webapp-3.4.11"); >>> $obj->forceAutehentication(); >>> >> >> As phpCAS 1.2.2 is latest so it must support latest 3.4.11, so can any >> one direct me, is it a false alarm or i really need to look for another PHP >> to CAS client? Also can anyone suggest another one. >> >> Best Regards, >> Khurram, >> Snr. PHP Developer, >> Zepto Systems, >> Pakistan. >> >> Cell: +923005237149 >> >> -- >> 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
