【发布时间】:2019-08-30 00:07:48
【问题描述】:
如果使用环境变量正确设置,我正在配置具有用户身份验证参数的 Web 应用程序 (Bugzilla) 以允许 SSO。我之前以类似的方式设置了另一个网络应用程序(TestLink)。我正在尝试使用 PHP 的 var_dump 来查看是否将正确的电子邮件传递给应用程序,因为它最初没有按预期工作。在查看 var_dump 时,我注意到在我的测试用户下,我的管理帐户的电子邮件实际上显示在 var_dump 中,而测试用户的电子邮件帐户没有。
我目前在 /httpd/conf.d 中配置了我的 ssl.conf 文件,如下所示:
<Directory /var/www/html/testing>
Order deny, allow
Deny from All
AuthName "Company Intranet"
AuthType Basic
AuthBasicProvider ldap
#AuthzLDAPAuthoritative off
AuthLDAPUrl ldaps://389.comp.loc/dc=comp,dc=loc?uid
Require valid-user
Satisfy any
#AuthLDAPBindDN "CN=,OU=Service Accounts,OU=IS,OU=FSA,DC=comp,DC=loc"
#AuthLDAPRemoteUserAttribute on
#AuthLDAPBindPassword password
</Directory>
我的 test.php 页面有这个脚本
<?php
phpinfo();
session_start();
setcookie();
var_dump($_SESSION);
var_dump($_COOKIE);
?>
【问题讨论】:
-
您可能想查看
SSL_SERVER_S_DN_Email是什么。请注意名称中使用了“服务器”一词。 -
遗憾的是,这些是 var_dump 中显示的唯一电子邮件地址
标签: php apache ldap single-sign-on httpd.conf