![]() Join Up! 96817 members and counting! |
|
|||
php-general | 2003022
Date: 02/25/03
This one is really puzzling...
I need to do an LDAP search to an Active Directory server.
box name: mydomain-71.mydomain.myschools.org
my code:
<?
$user_dn = "administrator <email protected>";
echo $conn = ldap_connect($server);
$user = "ez";
$res = ldap_search($conn,$base_dn,$filter);
print_r($info);
?>
it gives me:
Resource id #1
Warning: LDAP: Unable to perform the search: can't contact LDAP server in
Warning: ldap_get_entres(): supplied argument is not a valid ldap result
Now, I was able to connect and authenticate to it, but why ldap_search() says
If I change $base_dn to "dc=mydomain-71,dc=mydomain,dc=myschools,dc=org";
It doesn't complain about not being able to connect anymore! But of course the
What on earth did I do wrong??
Thanks,
-------------------------------------------------
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
|