SSL_SERVER_S_DN_Email在PHP var_dump中显示不正确的电子邮件

时间:2019-04-08 19:11:33

标签: php apache ldap single-sign-on httpd.conf

我正在配置一个Web应用程序(Bugzilla),该应用程序具有用户身份验证参数,以允许使用环境变量正确设置SSO。我以前已经以类似的方式设置了另一个Web应用程序(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);
?>

1 个答案:

答案 0 :(得分:0)

几周前找到答案,AuthLDAPUrl必须像这样...

AuthLDAPUrl ldaps://389.comp.loc/dc=comp,dc=loc?uid**,mail,cn,givenname,sn**