I ran into this problem too.. I, too, thought it was due to the long attribute names. However, it seems to be that PHP returns these attributes in all lowercase. Since $ldap["xyz"] != $ldap["xYz"] this is significant. I don't believe it matters when you are trying to write or modify a record, but it may be good to just stick to all lowercase in your PHP LDAP code...
Andrew Rangen wrote:
I am running into this problem and feel relatively confident in posting it here, as I haven't seen anyone running across a similar problem.
I am running OpenLDAP 2.0.7 and using the PHP 4.0.4pl1 interface to write some admin tools. I am able to add and update the facsimileTelephoneNumber and TelephoneNumber fields, but I am not able to extract the information from those fields. I have tried everything I can think of, including doing a listing of the attributes associated with a user and then finding the values for those attributes (just to make sure I wasn't doing something manually wrong).
My basic psuedo code goes like this:
Search For user
Grab user info
Get the first entry (attribute)
Get all remaining attributes.
For each Attrubute
display value
Now this works for all attributes, except facsimileTelephoneNumber, and TelephoneNumber. Nothing is returned and ldap_errno and ldap_error aren't returning me anything that seems to be usefull.
If anyone has any insight f....