ldap_connect question
| From: | Ian McNish | Date: | Wed, 29 Aug 2001 16:35:43 +0000 |
| Subject: | ldap_connect question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-65050@lists.php.net to get a copy of this message | ||
the ldap_connect man page states that calling ldap_connect with no
arguements should return the link identifier to the open ldap
connection. in the following code i find that the script stops before
writing the second printf statement:
$LDAP_CONNECTION = ldap_connect($MY_LDAP_SERVER);
printf("<br>stop1.1 ==> LDAP_CONNECTION -->%d<--", $LDAP_CONNECTION);
printf("<br>stop1.2 ==> current link id -->%d<--", ldap_connect());
the first printf statement tells me that the link id is 1. if i use
"ldap_connect('')", then i get a link id of 2; it seems as though
ldap_connect is trying to connect to a null server name. if i use
"ldap_connect" then i get a link id of 0.
any ideas?