ASF Bugzilla – Attachment 13478 Details for
Bug 32269
[PATCH] JNDIRealm fails with InvalidNameException to authenticate users if LDAP distinguished name (DN) contains slash or double quote character(s)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix InvalidNameException if LDAP DN contains slash character
JNDIRealm.java.diff (text/plain), 858 bytes, created by
Frerk Meyer
on 2004-11-17 11:03:09 UTC
(
hide
)
Description:
Fix InvalidNameException if LDAP DN contains slash character
Filename:
MIME Type:
Creator:
Frerk Meyer
Created:
2004-11-17 11:03:09 UTC
Size:
858 bytes
patch
obsolete
>--- JNDIRealm.java.orig 2004-10-05 14:30:14.000000000 +0200 >+++ JNDIRealm.java 2004-11-16 14:18:28.000000000 +0100 >@@ -28,6 +28,7 @@ > > import javax.naming.Context; > import javax.naming.CommunicationException; >+import javax.naming.CompositeName; > import javax.naming.InvalidNameException; > import javax.naming.NameNotFoundException; > import javax.naming.NamingEnumeration; >@@ -1069,7 +1070,7 @@ > NameParser parser = context.getNameParser(""); > Name contextName = parser.parse(context.getNameInNamespace()); > Name baseName = parser.parse(userBase); >- Name entryName = parser.parse(result.getName()); >+ Name entryName = parser.parse(new CompositeName(result.getName()).get(0)); > Name name = contextName.addAll(baseName); > name = name.addAll(entryName); > String dn = name.toString();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 32269
: 13478