DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41570>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41570


[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From [EMAIL PROTECTED]  2007-02-09 10:10 -------
In my opinion, this is not a bug. The purpose of RFC2253.normalize is to
convert an RFC 1779 String to an RFC 2253 String. This DN is not a compliant
RFC 1779 String. You need to enclose the value containing a comma in quotes. See
section 4 of RFC 2253 (Relationship with RFC 1779 and LDAPv2), last paragraph:

   Implementations MUST allow a value to be surrounded by quote ('"'
   ASCII 34) characters, which are not part of the value.  Inside the
   quoted value, the following characters can occur without any
   escaping:

                   ",", "=", "+", "<", ">", "#" and ";"

If I change your code to the following, it works correctly:

String dn = "CN=L. Eagle,O="Sue, Grabbit and Runn",C=GB";
System.out.println("INPUT: " + dn);
System.out.println("OUTPUT: " + RFC2253Parser.normalize(dn));

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to