tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/webapps/docs changelog.xml
Date Fri, 19 Nov 2004 15:07:39 GMT
yoavs       2004/11/19 07:07:39

  Modified:    catalina/src/share/org/apache/catalina/realm JNDIRealm.java
               webapps/docs changelog.xml
  Log:
  Bugzilla 32269: JNDIRealm fails with InvalidNameException to authenticate users if LDAP
distinguished name (DN) contains slash or double quote character(s)
  
  Revision  Changes    Path
  1.16      +6 -2      jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/realm/JNDIRealm.java
  
  Index: JNDIRealm.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/realm/JNDIRealm.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- JNDIRealm.java	10 Oct 2004 20:43:49 -0000	1.15
  +++ JNDIRealm.java	19 Nov 2004 15:07:39 -0000	1.16
  @@ -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;
  @@ -1081,7 +1082,10 @@
           NameParser parser = context.getNameParser("");
           Name contextName = parser.parse(context.getNameInNamespace());
           Name baseName = parser.parse(userBase);
  -        Name entryName = parser.parse(result.getName());
  +
  +        // Bugzilla 32267
  +        Name entryName = parser.parse(new CompositeName(result.getName()).get(0));
  +
           Name name = contextName.addAll(baseName);
           name = name.addAll(entryName);
           String dn = name.toString();
  
  
  
  1.174     +3 -0      jakarta-tomcat-catalina/webapps/docs/changelog.xml
  
  Index: changelog.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/changelog.xml,v
  retrieving revision 1.173
  retrieving revision 1.174
  diff -u -r1.173 -r1.174
  --- changelog.xml	19 Nov 2004 14:44:42 -0000	1.173
  +++ changelog.xml	19 Nov 2004 15:07:39 -0000	1.174
  @@ -55,6 +55,9 @@
         <fix>
           <bug>32023</bug>: CGIServlet fails to handle post message with multipart/form
data. (yoavs)
         </fix>
  +      <fix>
  +        <bug>32269</bug>: JNDIRealm fails with InvalidNameException to authenticate
users if LDAP distinguished name (DN) contains slash or double quote character(s). (yoavs)
  +      </fix>
       </changelog>
     </subsection>
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message