Roger Thomas wrote:
I dont know how to explain this but when you work with an ldap attribute, they are 
case sensitive. jpegPhoto was what the schema was written with.

However when you retrieve that into PHP, you accessed them with all lower case. So 
accessing userPassword attribute in ldap will become userpassword in PHP.

Just to satisfy your curiosity, I have changed that to your advise with running the 
script produces identical result.


You can either:

1. prepend @ in front of the variable, which supresses notices and warnings

2. use isset() or array_key_exists() to check for the existance of the key.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to