简体   繁体   English

SimplesamlPHP 配置

[英]SimplesamlPHP configuration

I'm new to SSO and trying to set up simplesamlphp on an existing Windows, PHP/MySQL server.我是 SSO 的新手,并试图在现有的 Windows、PHP/MySQL 服务器上设置 simplesamlphp。 I have installed the latest version of simplesamlphp, and followed the configuration instructions on the simplesaml.org site, including setting up the VirtualHost in the Apache config file, setting the basurlpath, auth.password, secretsalt and technical contact info in the simplesaml config file.我已经安装了最新版本的 simplesamlphp,并按照 simplesaml.org 站点上的配置说明进行操作,包括在 Apache 配置文件中设置 VirtualHost,在 simplesaml 配置文件中设置 basurlpath、auth.password、secretsalt 和技术联系信息. At this point, I am able to load the frontpage_federation.php page, but when I try to log in as administrator, the process times out.此时,我可以加载frontpage_federation.php 页面,但是当我尝试以管理员身份登录时,进程超时。 I get an error message saying the site can't be reached, and the site took too long to respond.我收到一条错误消息,指出无法访问该站点,并且该站点响应时间过长。 Has anyone experienced this before & can you give me some ideas on what mistake(s) I am making in my configuration?有没有人以前经历过这种情况,你能给我一些关于我在配置中犯了什么错误的想法吗?

httpd.conf配置文件

<VirtualHost *>
        ServerName service.example.corp:8080
        DocumentRoot G:/localhost/simplesamlphp/www/service.example.corp

        SetEnv SIMPLESAMLPHP_CONFIG_DIR G:/localhost/simplesamlphp/config

        Alias /simplesaml G:/localhost/simplesamlphp/www
        <Directory G:/localhost/simplesamlphp/www>
            Require all granted
        </Directory>
</VirtualHost>

config.php配置文件

'baseurlpath' => 'https://service.example.corp:8080/simplesaml/',

I'm guessing that something goes wrong in redirecting you after you've entered credentials and that you end up on a URL without that port number.我猜测在您输入凭据后重定向您时出现问题,并且您最终使用的 URL 没有该端口号。 Your browser's web development toolbar, or the excellent SAML Tracer browser extension, should be able to confirm what requests are sent to what exact URLs.您浏览器的 Web 开发工具栏或出色的 SAML Tracer 浏览器扩展程序应该能够确认将哪些请求发送到哪些确切的 URL。 That will likely help to pinpoint your problem.这可能有助于查明您的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM