|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
problem with LDAP functions
Hi,
I've been trying some LDAP functions in PHP and am stuck at trying to bind to the LDAP server. basically ive successfully queried using some LDAP functions when it comes to querying a single server but when I try to do it via an array, i get errors that say "unable to bind to server". eg. of my script: this works: $ds=ldap_connect("afd-s-31"); if ($ds) { $r=ldap_bind($ds, "john", "h92de" ); } this doesn't work: $servers = array("afd-s-31","afd-s-33"); for ($i=0;$i<count($servers);$i++) { $ds=ldap_connect($servers[$i]); if ($ds) { $r=ldap_bind($ds, "john", "h92de" ); echo $servers[$i]."<br>"; } } The error occurs on the line with ldap_bind(). any help appreciated. |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > problem with LDAP functions |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|