Le Tue, 05 Apr 2005 09:20:33 +0200, Torsten Landschoff a écrit : > Hi there, > > My OpenLDAP 2.2 packages have a problem if the user enters something > using his locale specific character (like äöü) into the organization > field which is queried using debconf cf. http://bugs.debian.org/236097 > > The LDIF RFC demands that character data is either in 7 bit ASCII or > in UTF-8 (and base64 encoded, uargh). No I wonder how to convert the > data that I get from debconf to UTF-8. > > It is save to assume that the data from debconf is in the charset of the > current locale? Then foo=`echo $RET|iconv -t UTF8` after the db_get > would suffice. Of course the locale could change between config and > postinst so maybe I should convert to UTF-8 and store the result in the > debconf db in the config script?
from slapd debian script source it is told that utf8 would broke the ldi output (talking about root dn , though i guess it is just that openldap does not support utf8 out of the box right now). Though i am pretty confident that slapd/lbdm or bdb support utf8 i would not swear that the ldiff scripts does ... have you checked the upstream site ? openldap is not finished yet so the rfc may not be the best source (i won't ). Cheers Alban -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]