ldap_bind issues

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have been attempting to do a bind to an LDAP server that requires
SSL. No matter what I do though, the bind fails. I have tried
everything I can think to try, but this is not working. The server
admins think the server is setup correctly, but I am beginning to
think differently. Here is the code I have:


$surname = "T";

    $connect = ldap_connect("ldaps://ldapserver.com", "636");

    ldap_set_option($connect, LDAP_OPT_PROTOCOL_VERSION, 3);

    //Bind to the ldap directory
    $bd = ldap_bind($connect,"cn=me,ou=People,o=work,c=US","password")
        or die("Couldn't bind to LDAP server!");


    //Search the directory
    $result = ldap_search($connect, "ou=People,o=work,c=US", $filter);

    //Create result set
    $entries = ldap_get_entries($connect, $result);

    //Sort and print
    echo "User count: " . $entries["count"] . "<br /><br /><b>Users:</
b><br />";

    for ($i=0; $i < $entries["count"]; $i++)
        echo $entries[$i]["displayname"][0]."<br />";


Re: ldap_bind issues

Quoted text here. Click to load it

any messages returned?


Re: ldap_bind issues


Quoted text here. Click to load it

Site Timeline