X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=tomcat-LDAPUserDatabase.patch;h=5a73ff55b41c4009895e8f62c1522d7879e6f4de;hb=05c77d28b4acd1015925331988c5915e6af54817;hp=6cef8bf82e357d9993de741de869e244aa72c35c;hpb=da643419d1c6fab150abe36022ff818768ca5e99;p=packages%2Ftomcat.git diff --git a/tomcat-LDAPUserDatabase.patch b/tomcat-LDAPUserDatabase.patch index 6cef8bf..5a73ff5 100644 --- a/tomcat-LDAPUserDatabase.patch +++ b/tomcat-LDAPUserDatabase.patch @@ -259,8 +259,8 @@ diff -urN apache-tomcat-6.0.29-src.orig/java/org/apache/catalina/startup/LDAPUse + +package org.apache.catalina.startup; + -+import java.util.Hashtable; +import java.util.Enumeration; ++import java.util.Hashtable; + +import javax.naming.Context; +import javax.naming.NamingEnumeration; @@ -301,7 +301,7 @@ diff -urN apache-tomcat-6.0.29-src.orig/java/org/apache/catalina/startup/LDAPUse + /** + * The set of home directories for all defined users, keyed by username. + */ -+ private Hashtable homes = new Hashtable(); ++ private Hashtable homes = new Hashtable(); + + /** + * The UserConfig listener with which we are associated. @@ -335,14 +335,14 @@ diff -urN apache-tomcat-6.0.29-src.orig/java/org/apache/catalina/startup/LDAPUse + * @param user User for which a home directory should be retrieved + */ + public String getHome(String user) { -+ return ((String) homes.get(user)); ++ return homes.get(user); + } + + + /** + * Return an enumeration of the usernames defined on this server. + */ -+ public Enumeration getUsers() { ++ public Enumeration getUsers() { + return (homes.keys()); + } + @@ -431,7 +431,7 @@ diff -urN apache-tomcat-6.0.29-src.orig/java/org/apache/catalina/startup/LDAPUse + } + } while ((cookie != null) && (cookie.length != 0)); + } catch (Exception e) { -+ // e.printStackTrace(); ++ e.printStackTrace(); + } + } +}