From:             [EMAIL PROTECTED]
Operating system: Linux RH 7.1
PHP version:      4.0.5
PHP Bug Type:     Directory function related
Bug description:  LDAP modify functions do not handle special characters


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
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

Please help!
Edit bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to