我正在创建一个网站(与其他网站)共享相同的Active Directory以验证用户(SSO)的网站。ZF2设置LDAP SSO
我已经管理到我的用户进行身份验证...
$auth = new \Zend\Authentication\AuthenticationService();
$options = array(
'server' => array(
'host' => $host,
'baseDn' => $dc
),
);
$adapter = new \Zend\Authentication\Adapter\Ldap($options, $username, $password);
$result = $auth->authenticate($adapter);
...但我只是不明白如何检查,如果用户(从网络中的其他网站)已经auth'ed或者我需要保留会话(或标题?),以便其他站点知道用户已经登录。
谢谢!