[Date Prev][Date Next] [Chronological] [Thread] [Top]

International characters (OpenLDAP v2.0, PHP 4)



I'm trying to improve phpQLAdmin to allow international characters
in RDN.

If I don't base64 encode the RDN, but only the 'o' attribute 'INSIDE'
the object like this, it works. Sort of. I can't SEARCH for the object.

----- s n i p ----
dn: o=åäö,o=Turbo Fredriksson
o: 5eT2
objectClass: organization
objectClass: phpQLAdminBranch
----- s n i p ----

----- s n i p ----
[papadoc.pts/5]$ ldapsearch -LLL -h localhost -b 'o=Turbo Fredriksson' -s one 'o=\345\344\366'
SASL/GSSAPI authentication started
SASL SSF: 56
SASL installing layers
[papadoc.pts/5]$
----- s n i p ----

The '\345' etc is becase of cut and past in the shell... That might be
the problem... But it won't work from within PHP either (without a
DN encode).

If I don't encode the 'o' attribute in LDIF, I get:

----- s n i p ----
adding new entry "o=åäö,o=Turbo Fredriksson"
ldap_add: Invalid syntax
        additional info: o: value #0 invalid per syntax
----- s n i p ----

Searching for 'o=5eT2' will however give me the expected object...


Any idea on how to proceed here?