[PATCH] LDAP_EXOP charset fix

Dariush Forouher dariush at forouher.de
Thu Sep 18 06:16:04 GMT 2003

On Thu, 2003-09-18 at 07:44, Luke Howard wrote:
> >> No, this is a bug in pam_ldap then.  We should never send data to LDAP
> >> that is not utf8.  What makes the 'unix charset' of *this* machine
> >> special anyway?  Nobody is saying that it is the same as the charset of
> >> any other machine, nor that 'unix charset' is the localle charset.
> >
> >I would like to see the password in unicode too, but simply not a single
> >ldap client works this way! I've checked this with a lot of tools:
> I'm afraid Andrew is right, at least as far as LDAPv3 is concerned.

Ok, I've looked further into this and it seems to be some kind of a
"definition hole" in the LDAP specification which lead to the situation
that some clients are using ISO8859-1 and some other UTF-8. Since this
seems to clearified in favour of Unicode, Unicode is the right choice of

> Feel free to submit a patch to pam_ldap, as charset handling is not my
> specialty...

My neither. ;-)
Well, since I have to live with some closed-source apps, which don't use
Unicode, I'll have to orientate according to their wishes and stick at

Sorry for making you trouble.


More information about the samba-technical mailing list