Link to home
Start Free TrialLog in
Avatar of mhmservices
mhmservicesFlag for United States of America

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
Avatar of mhmservices
mhmservices
Flag of United States of America image

ASKER

Here is the code the contractor is using


    var $ldap = array(
        'driver'   => 'ldap',
        'host'     => 'mhmdc1',
        //'login'    => 'gemadmin',
//        'login'    => 'cn=gemadmin,dc=mhmnet',                    
        'login' => 'cn=gemadmin,dc=mhmnet,dc=mhm-services,dc=local',
//        'login' => 'cn=username,dc=mhmnet,dc=mhm-services,dc=local',
//        '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
ASKER CERTIFIED SOLUTION
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial