doubi4491 2015-10-15 21:42 采纳率: 0%
浏览 74

使用ADFS配置SimpleSamlPhp的问题

I'm having some difficulties to configure SimpleSamlPhp with ADFS.

Here is the procedure that I have followed:

SimpleSAML is installed and configured on my web server Apache (example.com) and ADFS2 is installed on your federation server (myadfs).

  • Open a browser and go to URL https://myadfs/Federationmetadata/2007-06/FederationMetadata.xml
  • Save as FederationMetadata.xml.
  • Open a browser and go to https://example.com/simplesaml
  • Select Federation tab
  • Click on Convert XML Metadata to simpleSAML.php
  • Paste the content of the previous file (FederationMetadata.xml)
  • Click on Analyse
  • On saml20-idp-remote section, select all text and copy it
  • Edit the file <document_root>/simplesamlphp/metadata/saml20-idp-remote.php (save a copy like saml20-idp-remote.bak)
  • Delete all text between <?php … ?> (keep the <?php and ?>)
  • Paste the previous selected text between <?php and ?>
  • Under entityid line, add following line: 'sign.logout' => TRUE,
  • Save saml20-idp-remote.php

  • Edit the file <document_root>/simplesamlphp/config/ authsources.php. In the $config array add an entry like

    'myauth' => array( 
        'saml:SP', 
        'idp' => 'http://www.myadfs.com/adfs/services/trust', 
        'privatekey' => '001-mysite.key', 
        'certificate' => '001-mysite.crt', 
    ), 
    

Then I sent my Metadata to my network administrator for him to authorize my connection.

Unfortunately when I try to connect I directly get the ADFS error without being able to input my credentials.

My Network Administrator told me that the error was the following:

The data at the root level is invalid. Line 1, position 1.

Apparently he cannot read the certificate on a windows server but we have successfully installed Wordpress SSO on Microsoft Azure using a plugin that use this exact same PHP Plugin and it has been working fine.

Does someone have any idea how to fix it? Thanks!

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 如何在scanpy上做差异基因和通路富集?
    • ¥20 关于#硬件工程#的问题,请各位专家解答!
    • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
    • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
    • ¥30 截图中的mathematics程序转换成matlab
    • ¥15 动力学代码报错,维度不匹配
    • ¥15 Power query添加列问题
    • ¥50 Kubernetes&Fission&Eleasticsearch
    • ¥15 報錯:Person is not mapped,如何解決?
    • ¥15 c++头文件不能识别CDialog