mhmservices
asked on
AD Authentication using LDAP inside PHP
We have a contractor who is developing a database system for us and he is having issues authenticating to Active Directory using LDAP inside PHP. Can anyone tell me what the syntax is and what information is needed? he sent me this link.
http://us3.php.net/manual/en/function.ldap-bind.php
http://us3.php.net/manual/en/function.ldap-bind.php
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
var $ldap = array(
'driver' => 'ldap',
'host' => 'mhmdc1',
//'login' => 'gemadmin',
// 'login' => 'cn=gemadmin,dc=mhmnet',
'login' => 'cn=gemadmin,dc=mhmnet,dc=
// 'login' => 'cn=username,dc=mhmnet,dc=
// 'login' => 'CN=Username,OU=IT,OU=MHM Users,DC=mhmnet,DC=local',
'password' => 'Gem@dmin',
//'database' => 'test_database_name'
);
other information
domain- mhmnet
user- gemadmin