May 19, 2012, 09:30:06 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Work on Kolab2/Gentoo-2.2 has stopped. The project has been deprecated (see board Kolab2/Gentoo).
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: LDAP error when attempting to modify user  (Read 1421 times)
Shane
Newbie
*

Karma: 0
Posts: 2


View Profile Email
« on: July 09, 2007, 10:30:53 AM »

Kolab-2.1 installed without a hitch, but then I added myself as a user.

First Name: Shane
Last Name: O'Donnell

This displays as "O\'Donnell, Shane" in the list of users, and when clicking on Modify I get the following:

Warning: ldap_read() [function.ldap-read]: Search: Invalid DN syntax in /usr/share/php/kolab/admin/include/ldap.class.php on line 130

Errors:
LDAP Error: No such dn: cn=Shane O\\5C\'Donnell,dc=**,dc=co,dc=uk: Invalid DN syntax

The entry shown by ldapsearch is:

# Shane O\5C'Donnell, **.co.uk
dn: cn=Shane O\5C'Donnell,dc=**,dc=co,dc=uk
objectClass: top
objectClass: inetOrgPerson
objectClass: kolabInetOrgPerson
sn: O\'Donnell
cn: Shane O\'Donnell
givenName: Shane
mail: shane@**.co.uk
uid: shane
kolabHomeServer: oddity.**.co.uk
kolabInvitationPolicy: ACT_MANUAL

Is this a bug or should I be taking some precautions when using apostrophes in users names?
« Last Edit: July 09, 2007, 11:04:43 AM by Shane » Logged
Gunnar Wrobel
Administrator
Sr. Member
*****

Karma: 2
Posts: 331


275141552 gunnarwrobel@yahoo.de gunnarwrobel
View Profile WWW Email
« Reply #1 on: July 09, 2007, 12:13:14 PM »

Is this a bug or should I be taking some precautions when using apostrophes in users names?

Yes, you should indeed take precautions when using apostrophes in users names because it is a bug that has apparently not been fixed yet Smiley This is something I need to fix upstream. So thanks for the note, I'll create a bug upstream and fix it.

Cheers,

Gunnar
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!