Bug #12740 Updated: LDAP modify functions do not handle special characters

From: Date: Tue, 14 Aug 2001 13:50:59 +0000
Subject: Bug #12740 Updated: LDAP modify functions do not handle special characters
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-63163@lists.php.net to get a copy of this message
ID: 12740 Updated by: sniper Reported By: christian@metamerge.com Old Status: Open Status: Feedback Old Bug Type: Directory function related Bug Type: LDAP related Operating System: Linux RH 7.1 PHP Version: 4.0.5 New Comment: Please include a short example script in this report. Previous Comments: ------------------------------------------------------------------------ [2001-08-14 09:41:24] christian@metamerge.com Hi, I am working with PHP 4.0.5 and OpenLDAP 2.0.11. I encounter problems when modifying some entries with attributes containing special chars (such as å, ø...). The error returned by the LDAP server is "invalid syntax". I have read some documentation about this. OpenLDAP can accept special chars, provided values are base64-encoded, when we use the tools that come with the application (ldapadd, ldapmodify, etc.). But how to do this from PHP functions? I tried to base64_encode the values, it naturally didn't do the trick (those values were considered as normal, and thus were not decoded - this polutes my directory.) Same goes for urlencoding. Please help! ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=12740&edit=1

« previous php.dev (#63163) next »