Danny Hutson

9 thoughts on “PHP LDAP Tutorial Part 3 – Authenticate User against Active Directory

  1. Thank you so much.
    So If I need to connect to a real LDAP active directory server what should i do?
    do i need to change this "$ldap_con = ldap_connect("ldap.forumsys.com");"

    Pls let me know.

  2. coud you help me
    I use:
    $ldap_dn = "uid=".$_POST["username"].",ou=Подразделения,dc=mydomain,dc=ru";
    $ldap_con = ldap_connect("192.168.xx.xx", 389);

    Error: Unable to bind to server: Invalid credentials
    I couldn't understand what happens.

  3. Hello , When i use the same code i get "Fatal error: Call to undefined function ldap_connect() in C:xampphtdocsprojectldap.php on line 6" can you help

Leave a Reply

Your email address will not be published. Required fields are marked *