Php Laravel:LDAP验证无效的DN语法
Php Laravel:LDAP验证无效的DN语法,php,authentication,laravel,ldap,openldap,Php,Authentication,Laravel,Ldap,Openldap,我正在使用Laravel4.0.10和进行用户身份验证。在服务器端,我使用创建了OpenLDAP服务器。我已按照说明进行操作,但在尝试连接到服务器时出错 错误: Bind to Active Directory failed. Check the login credentials and/or server details. AD said: Invalid DN syntax 我的app/config/adldap.php文件: <?php return array( 'a
我正在使用Laravel
4.0.10
和进行用户身份验证。在服务器端,我使用创建了OpenLDAP
服务器。我已按照说明进行操作,但在尝试连接到服务器时出错
错误:
Bind to Active Directory failed. Check the login credentials and/or server details. AD said: Invalid DN syntax
我的app/config/adldap.php
文件:
<?php
return array(
'account_suffix' => '@mreza.vpl',
'domain_controllers' => array("ldap.vpl.lan"), // An array of domains may be provided for load balancing.
'base_dn' => 'DC=mreza,DC=vpl',
'admin_username' => 'admin',
'admin_password' => 'mypassword',
'real_primary_group' => true, // Returns the primary group (an educated guess).
'use_ssl' => false, // If TLS is true this MUST be false.
'use_tls' => false, // If SSL is true this MUST be false.
'recursive_groups' => true,
);
我的OpenLDAP数据库如下所示:
我想对
人员
组进行身份验证
你知道我做错了什么吗?几天来我一直在尝试设置这个。不过,我对LDAP还是新手
谢谢 将管理员用户名更改为
cn=Admin
或cn=Admin,DC=mreza,DC=vpl
,然后尝试连接。通常,您需要一个完整的DN来绑定
'username' => 'uid'