]> git.pld-linux.org Git - packages/tomcat.git/commitdiff
- fix build errors, seems to work
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 18 Nov 2010 13:56:09 +0000 (13:56 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- TODO: pagedResults

Changed files:
    tomcat-LDAPUserDatabase.patch -> 1.2

tomcat-LDAPUserDatabase.patch

index dc848c81f504635560917625d74a33181d83f2c7..075a6bf1aae48f3e3c8eb415e5485ba9a172c369 100644 (file)
 +        return (this.searchSubtree);
 +
 +    }
-+    public void setSearchSubtree(String searchSubtree) {
++    public void setSearchSubtree(boolean searchSubtree) {
 +
 +        this.searchSubtree = searchSubtree;
 +
       * Return the user database class name for this component.
 --- /dev/null  2010-10-22 13:07:45.106999849 +0200
 +++ apache-tomcat-6.0.29-src/java/org/apache/catalina/startup/LDAPUserDatabase.java    2010-11-18 13:50:32.671156104 +0100
-@@ -0,0 +1,169 @@
+@@ -0,0 +1,170 @@
 +/*
 + * Licensed to the Apache Software Foundation (ASF) under one or more
 + * contributor license agreements.  See the NOTICE file distributed with
 +     * Initialize our set of users and home directories.
 +     */
 +    private void init() {
-+      static String INIT_CTX = "com.sun.jndi.ldap.LdapCtxFactory";
++      String INIT_CTX = "com.sun.jndi.ldap.LdapCtxFactory";
 +
 +      String connectionURL = userConfig.getConnectionURL();
 +      String connectionName = userConfig.getConnectionName();
 +                  Attribute a = attr.get(homeAttr);
 +                  if (a != null && a.size() == 1)
 +                         home = (String)a.get();
-+                  Attribute a = attr.get(userAttr);
++                  a = attr.get(userAttr);
 +                  if ((home != null) && (a != null)) {
 +                          // Add all possible names of this user and corresponding directory
 +                          for (int i = 0; i < a.size(); i++) {
 +                                  username = (String)a.get(i);
-+                                  if (username != null)
++                                  if (username != null) {
 +                                          homes.put(username, home);
++                                  }
 +                          }
 +                  }
 +              }
This page took 0.117361 seconds and 4 git commands to generate.