我安装了simplesamlphp来设置针对ADFS服务器的SSO配置。但是当我尝试转换他们的元数据时,我遇到了问题。
我可以成功地登录到初始安装欢迎页面,以及其他链接,如身份验证和联合选项卡,测试配置等。
但是,当我单击“配置”选项卡、联合选项卡中的“显示元数据”,或者当我转到元数据转换页面并单击“解析”时,我得到的是空白页面。基本上我猜是重定向错误,在配置代码中的某个地方,但我在互联网上找不到它。
我在日志中看到以下错误。
Jun 12 13:25:47 ip-10-8-17-72 simplesamlphp[27328]: 3 [e14c321c1d] SimpleSAML_Error_Exception: Error 1 - Call to undefined function curl_init()
Jun 12 13:25:47 ip-10-8-17-72 simplesamlphp[27328]: 3 [e14c321c1d] Backtrace:
Jun 12 13:25:47 ip-10-8-17-72 simplesamlphp[27328]: 3 [e14c321c1d] 2 /var/simplesamlphp/www/_include.php:86 (SimpleSAML_error_handler)
Jun 12 13:25:47 ip-10-8-17-72 simplesamlphp[27328]: 3 [e14c321c1d] 1 /var/simplesamlphp/www/_include.php:54 (SimpleSAML_exception_handler)
Jun 12 13:25:47 ip-10-8-17-72 simplesamlphp[27328]: 3 [e14c321c1d] 0 [builtin] (N/A)
Jun 12 13:26:00 ip-10-8-17-72 simplesamlphp[1478]: 3 [e14c321c1d] SimpleSAML_Error_Exception: Error 1 - Class 'DOMDocument' not found
Jun 12 13:26:00 ip-10-8-17-72 simplesamlphp[1478]: 3 [e14c321c1d] Backtrace:
Jun 12 13:26:00 ip-10-8-17-72 simplesamlphp[1478]: 3 [e14c321c1d] 2 /var/simplesamlphp/www/_include.php:86 (SimpleSAML_error_handler)
Jun 12 13:26:00 ip-10-8-17-72 simplesamlphp[1478]: 3 [e14c321c1d] 1 /var/simplesamlphp/www/_include.php:54 (SimpleSAML_exception_handler)
Jun 12 13:26:00 ip-10-8-17-72 simplesamlphp[1478]: 3 [e14c321c1d] 0 [builtin] (N/A)
Jun 12 13:26:22 ip-10-8-17-72 simplesamlphp[27328]: 3 [e14c321c1d] SimpleSAML_Error_Exception: Error 1 - Class 'DOMDocument' not found
Jun 12 13:26:22 ip-10-8-17-72 simplesamlphp[27328]: 3 [e14c321c1d] Backtrace:
Jun 12 13:26:22 ip-10-8-17-72 simplesamlphp[27328]: 3 [e14c321c1d] 2 /var/simplesamlphp/www/_include.php:86 (SimpleSAML_error_handler)
Jun 12 13:26:22 ip-10-8-17-72 simplesamlphp[27328]: 3 [e14c321c1d] 1 /var/simplesamlphp/www/_include.php:54 (SimpleSAML_exception_handler)
Jun 12 13:26:22 ip-10-8-17-72 simplesamlphp[27328]: 3 [e14c321c1d] 0 [builtin] (N/A)发布于 2018-06-12 21:33:51
我找到了我自己的解决方案。
原因是缺少php的模块。
运行下面的命令后,一切正常。
sudo apt-get install php7.0-mbstring
sudo apt-get install php7.0-xml
sudo apt-get install php7.0-curlhttps://stackoverflow.com/questions/50814280
复制相似问题