ldap_get_values warning
| From: | Jeff Bunting | Date: | Fri, 18 Mar 2005 13:07:38 +0000 |
| Subject: | ldap_get_values warning | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-211040@lists.php.net to get a copy of this message | ||
Hi,
I'm retrieving a user via LDAP and am getting a warning from this line:
$values = ldap_get_values($ldapconn, $entry, "middleName");
because middleName is not present in $entry. This doesn't seem to agree
with the documentation for ldap_get_values:
array ldap_get_values ( resource link_identifier, resource
result_entry_identifier, string attribute )
Returns an array of values for the attribute on success and FALSE on error.
The warning I get is:
Warning: ldap_get_values(): Cannot get the value(s) of attribute Decoding
error in......
Shouldn't I be getting a FALSE?
I'm running PHP 4.3.10, ldap query is against Windows 2003 server. I'm a
relative newb to PHP.
thanks.
Jeff