Hi, I am looking for help with phpCAS and CakePHP. I followed the tutorial/instructions at: http://bakery.cakephp.org/articles/pietro.brignola/2010/10/12/casauth_4_cakephp_4 to connect to the CAS server.
The system properly redirects to the CAS login page and once logged-in tries to redirect to the application. As per instructions, I have changed the password of all users to blank via the application so that it adds a hash value in database for blank password. As you would have guessed, not everyone authenticated via CAS is eligible for application and different people have different roles. The problem I am facing is that once authenticated the system redirects to my page where somehow it fails with an error shown below: -------------------------------- *Warning* (2): DOMDocument::loadXML() [domdocument.loadxml <http://rajankz.com/sso/users/domdocument.loadxml>]: Empty string supplied as input [*APP/Vendor/CAS/CAS/CAS/Client.php*, line *2766*] Code Context DOMDocument::loadXML() - [internal], line ?? CAS_Client::validateCAS20() - APP/Vendor/CAS/CAS/CAS/Client.php, line 2766 CAS_Client::isAuthenticated() - APP/Vendor/CAS/CAS/CAS/Client.php, line 1221 CAS_Client::forceAuthentication() - APP/Vendor/CAS/CAS/CAS/Client.php, line 1080 phpCAS::forceAuthentication() - APP/Vendor/CAS/CAS/CAS.php, line 1100 CasAuthComponent::startup() - APP/Controller/Component/CasAuthComponent.php, line 40 ObjectCollection::trigger() - CORE/Cake/Utility/ObjectCollection.php, line 130 call_user_func - [internal], line ?? CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 246 Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 671 Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 183 Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 161 [main] - APP/webroot/index.php, line 92 CAS Authentication failed! You were not authenticated. You may submit your request again by clicking here. If the problem persists, you may contact the administrator of this site<[email protected]> . ------------------------------ phpCAS 1.3.1 using server https://changed for security purpose/ (CAS 2.0) *phpCAS error*: *phpCAS::client(): phpCAS::client() has already been called (at /home/content/89/8244189/html/sso/app/Controller/Component/CasAuthComponent.php:36) * in* /home/content/89/8244189/html/sso/app/Controller/Component/CasAuthComponent.php * on line *36* *------------------* * * if i click on the server link above(removed), i see a page saying that I was authenticated. how do i fix so that an empty string is not supplied as input. seems like this happened because it went in a loop or something. Thanks for help. * * -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php?hl=en.
