Solved

AD Authentication using LDAP inside PHP

Posted on 2008-10-01
2
302 Views
Last Modified: 2013-12-24
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
0
Comment
Question by:mhmservices
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Author Comment

by:mhmservices
ID: 22617576
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
0
 
LVL 71

Accepted Solution

by:
Chris Dent earned 500 total points
ID: 22701143

> 'login' => 'cn=gemadmin,dc=mhmnet,dc=mhm-services,dc=local',

That's the full path to the user, here it suggests the user account has been created in the root of your domain.

If the user was in the Users container that would change to:

'login' => 'cn=gemadmin,cn=users,dc=mhmnet,dc=mhm-services,dc=local',

Or if the user was in an OU you created it would be:

'login' => 'cn=gemadmin,ou=somewhere,ou=anotherou,dc=mhmnet,dc=mhm-services,dc=local',

Chris
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question