problem modifying password attribute with Net_LDAP2 (RC3)
| From: | Sebastian Schneider | Date: | Wed, 25 Jun 2008 13:32:26 +0000 |
| Subject: | problem modifying password attribute with Net_LDAP2 (RC3) | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-29040@lists.php.net to get a copy of this message | ||
Hello folks,
I am using Net_LDAP2 to read and modify entries in a directory. Everythig works fine but now I encountered the following problem. I am trying to modify an attribute called userPassword whose value can't be retrieved from the directory.
When I am using $entry->replace() to change the password the request is "translated" into an ADD-request. Net_LDAP2 can't retrieve the attribute and so it's not in the entry-Object. As a result it assumes this attribute does not exist yet and tries to add a new value. This of course fails because userPassword is not multi-valued.
Do I get something wrong or is this really a problem with Net_LDAP2??
Best regards and thanks for reading this message,
Sebastian
--
Sebastian Schneider <schneider@dvz.fh-aachen.de>