Ticket #1484829 (new Bugs)

Opened 10 months ago

Last modified 10 months ago

LDAP and _some_ UTF-8 encoded chars cause trouble

Reported by: patrick Owned by:
Priority: 5 Milestone: 0.2.1
Component: PHP backend Version: 0.1-rc2
Severity: normal Keywords: LDAP UTF-8 unicode corruption
Cc:

Description

Weird problem... I have the following two contacts on my LDAP server:

'cn=Jin 近 x' and 'cn=Jie 洁 x'

The encoding is the same for both, I can work with the contact entries like usual with, let's say, phpLDAPadmin.

When I lookup those contacts through RoundCube 1.0-rc2, I get the following in my OpenLDAP logs for the first:

Mar 4 07:53:17 c3po slapd[14093]: conn=1 op=0 SRCH base="cn=Jie 洁 x,ou=addressbook,dc=patrick-nagel,dc=net" scope=0 deref=0 filter="(objectClass=*)"

but

Mar 4 07:53:23 c3po slapd[14093]: do_search: invalid dn (cn=Jin �)

for the second. The '近' character gets somehow corrupted by RoundCube or something else, before it gets through to the LDAP server.

Change History

follow-up: ↓ 2   Changed 10 months ago by till

First off, did you try this with 0.1-stable?

in reply to: ↑ 1   Changed 10 months ago by patrick

Replying to till:

First off, did you try this with 0.1-stable?

I did today, and it's the same.

Note: See TracTickets for help on using tickets.