Hi Khurram,

have you tried one of the examples? If not please do. This is the fastest way to check out if your setup work before working on any advanced integration scenarios.

For troubleshooting please also have a look at:

https://wiki.jasig.org/display/CASC/phpCAS+troubleshooting

If you look at the debug log, the webserver log and system log you should normally get a clue why your problem occurrs. Usually it's session troubles, write permissions or missing certificates.

If you have a debug log and can't figure it on you own please share it with us after replacing all ips and dns name. If you share it together with the webserver access log i'm pretty sure we can work out you problem.

Regards,

Joachim



On 05.03.2012 15:08, Khurram Shahzad wrote:
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]
<mailto:[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]
    <mailto:[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 <tel:%2B923005237149>

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



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