[Kolab-devel] [issue4526] [Regression] Apostrophes in surnames causing trouble in v2.2.4

Gavin McCullagh issues at kolab.org
Thu Sep 2 12:26:53 CEST 2010

New submission from Gavin McCullagh <gavin.mccullagh at gcd.ie>:


I see a bug in v2.2.4 which can be reproduced as follows:

1. Create a user with surname with ' in it succeeds without error in web
   admin.  I created "Gav O'Really" for testing just now.
2. Find that user in the list.  You'll notice it displays as
        O\'Really, Gav
3. Click on modify on that user.  That results in this error:
        LDAP Error: No such dn: cn=Gav O\\5C\'Really,dc=....: Invalid DN syntax
4. A similar error in apache/php/php-errors.log:
        [02-Sep-2010 08:36:47] PHP Warning:  ldap_read() [<a
href='function.ldap-read'>function.ldap-read</a>]: Search: Invalid DN syntax in
/kolab/var/kolab/php/admin/include/ldap.class.php on line 187
5. If I look at the ldap database using ldapvi or slapcat I see escape
   characters in cn and sn:
        cn=Gav O\\5C'Really,dc=.....
        objectClass: top
        objectClass: inetOrgPerson
        objectClass: kolabInetOrgPerson
        sn: O\'Really
        cn: Gav O\'Really
        givenName: Gav
        userPassword: {SSHA}....

According to Gunnar, these patches may be relevant:


and these past issues:

>          kolab/issue919 (kolab server has problems with some characters in   
>            passwords)                                                        
>          kolab/issue1880 (Poor handling of apostrophes in ldap and admin     
>            webpages)                                                         
>          kolab/issue3654 (Special character issue in Kolab web               
>            interface (e.g. vacation message))                                
>          kolab/issue3499 (creating/modifying users with special characters   
>            in name confuses web admin)

messages: 26264
nosy: gavinmc
priority: urgent
status: unread
title: [Regression] Apostrophes in surnames causing trouble in v2.2.4

Kolab issue tracker <issues at kolab.org>

More information about the devel mailing list