You are here: ldap_get_values warning « PHP « IT news, forums, messages
ldap_get_values warning

Posted by Jeff Bunting on 03/18/05 15:07

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация