[phpldapadmin] [ phpldapadmin-Bugs-3276528 ] Problem with + and , signs in dn

"SourceForge.net" <[email protected]> Wed, 18 May 2011 13:13:32 +1000
Newsgroups gmane.comp.ldap.davedap
Message-ID <[email protected]>
Bugs item #3276528, was opened at 2011-04-06 05:37
Message generated for change (Settings changed) made by wurley
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498546&aid=3276528&group_id=61828

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: 1.2.x
>Status: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: Maarten (mcoenaerts)
Assigned to: Nobody/Anonymous (nobody)
Summary: Problem with + and , signs in dn

Initial Comment:
Hi,

We are running phpldapadmin 1.2.0.5 , debian lenny, php 5.2.6-1, apache 2.2.9-10, OpenLDAP 2.4.11-1.
I have a dn entry which begins with o=A + B,ou=organizations,..
When is use the tree ajax menu I can click on the entry and I get the data.
But when I use the seach function I can click on it but fetching the data gives an error: No such entry (o=A + B,ou=organizations,..

In the ldap logs:
First from the search:
slapd[21229]: conn=8 op=1 do_search: invalid dn (o=A + B,ou=organizations,ou=addressbook,dc=example,dc=tld)

Then from the tree:
slapd[21229]: conn=12 op=1 SRCH base="o=ABV \2B architecten,ou=organizations,ou=addressbook,dc=example,dc=tld" scope=0 deref=0 filter="(&(objectClass=*))"

The + sign is correctly converted to hexpair with the tree, but not from the search query results.

Another related (I think) problem is when you have a group of uniqueMembers which has a , sign in the dn.
I can get the data from the search query but when I try to add a uniqueMember I get an error in phpldapadmin:


Could not perform ldap_modify operation.
LDAP said:	Invalid DN syntax
Error number:	0x22 (LDAP_INVALID_DN_SYNTAX)
Description:	You used an invalid syntax in the specified DN.

But nothing in the ldap log.

Can you please have a look?

Best Regards,
Maarten

----------------------------------------------------------------------

Comment By: Maarten (mcoenaerts)
Date: 2011-05-17 05:21

Message:
I applied it to our install and it works.

Thanks a lot.

M.

----------------------------------------------------------------------

Comment By: Deon George (wurley)
Date: 2011-04-26 23:21

Message:
Special characters have always been a problem :(

I've just commited a patch to git that hopefully will address this, let me
know if it works for you.

Git commit #97eff73

...deon

----------------------------------------------------------------------

Comment By: Maarten (mcoenaerts)
Date: 2011-04-06 05:53

Message:
Don't mind the o=ABV \2B architecten in the 2nd log entry, it was before I
did the test with A + B 

It should be: A \2B B,ou=organizations,ou=addressbook,dc=example,dc=tld

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498546&aid=3276528&group_id=61828

------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
______________________________________
phpLDAPadmin development mailing list.
To unsbuscribe: https://lists.sourceforge.net/lists/listinfo/phpldapadmin-devel
http://phpldapadmin.sourceforge.net/