Dev Portal SSO Integration

prabhup1
Participant II

I am following the steps outlined in the post - https://community.apigee.com/articles/29201/sso-integration-with-developer-portal.html.

On step 8 - when I attempt to navigate to https://{my-portal-name}/simplesaml/ - I get the following error:

Warning: require_once(/srv/bindings/2e4655f6b22447e2be381b68a57bc7d2/code/lib/_autoload.php): failed to open stream: No such file or directory in /srv/bindings/2e4655f6b22447e2be381b68a57bc7d2/code/simplesaml/_include.php on line 32 Fatal error: require_once(): Failed opening required '/srv/bindings/2e4655f6b22447e2be381b68a57bc7d2/code/lib/_autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /srv/bindings/2e4655f6b22447e2be381b68a57bc7d2/code/simplesaml/_include.php on line 32

Line 32 in _include.php reads - require_once(dirname(dirname(__FILE__)).'/lib/_autoload.php');

The full path to _include.php is as follows:

code/private/simplesamlphp/www/_include.php

Does anyone know why I am seeing this error?

I have added watchdog commands, and even changed the require command but none of my watchdog commands show up in the log. It appears that my code changes are completely ignored.

0 1 140
1 REPLY 1

prabhup1
Participant II

Found the problem. I did not notice it before but it appears that when a symlink was created as follows - ln -s ./private/simplesamlphp/www ./simplesaml - a new folder was created under root with the same name. The _include.php file in that folder was getting executed instead of the one inside the www folder (under private) because of this the statement - require_once(dirname(dirname(__FILE__)).'/lib/_autoload.php'); - failed to resolve to the right path name. After I updated the above line to - require_once(dirname(dirname(__FILE__)).'/private/simplesamlphp/_autoload.php'); - the error went away.