]> git.pld-linux.org Git - packages/tomcat.git/blob - tomcat-userdir.patch
Rediff patches.
[packages/tomcat.git] / tomcat-userdir.patch
1 diff -urNp -x '*.orig' apache-tomcat-7.0.107-src.org/conf/server.xml apache-tomcat-7.0.107-src/conf/server.xml
2 --- apache-tomcat-7.0.107-src.org/conf/server.xml       2021-11-24 10:19:04.426573110 +0100
3 +++ apache-tomcat-7.0.107-src/conf/server.xml   2021-11-24 10:19:04.699920632 +0100
4 @@ -137,6 +137,46 @@
5          <!--
6          <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
7          -->
8 +       <!--
9 +               Automatically map a request URI starting with a tilde
10 +               character ("~") and a username to a directory
11 +               (commonly named public_html) in that user's home directory
12 +               on the server.
13 +       -->
14 +       <!--
15 +               Use /etc/passwd file to identify valid users
16 +       -->
17 +       <!--
18 +       <Listener className="org.apache.catalina.startup.UserConfig"
19 +               directoryName="public_html"
20 +               userClass="org.apache.catalina.startup.PasswdUserDatabase"/>
21 +       -->
22 +       <!--
23 +               Use all directories found in a specified base directory
24 +               to be considered "user home" directories
25 +       -->
26 +        <!--
27 +       <Listener className="org.apache.catalina.startup.UserConfig"
28 +               directoryName="public_html"
29 +               homeBase="/home/users"
30 +               userClass="org.apache.catalina.startup.HomesUserDatabase"/>
31 +       -->
32 +       <!--
33 +               Use LDAP search to identify valid users
34 +               You may need to add ldap server's CA cert to global java keystore
35 +       -->
36 +        <!--
37 +       <Listener className="org.apache.catalina.startup.UserConfig"
38 +               directoryName="public_html"
39 +               connectionURL="ldaps://ldap.example.com/"
40 +               connectionName="uid=tomcat,ou=people,dc=example,dc=com"
41 +               connectionPassword="secret"
42 +               searchBase="ou=People,dc=mim,dc=uw,dc=edu,dc=pl"
43 +               searchFilter="(objectClass=posixAccount)"
44 +               searchSubtree="false"
45 +               pageSize="1000"
46 +               userClass="org.apache.catalina.startup.LDAPUserDatabase"/>
47 +       -->
48  
49          <!-- Access log processes all example.
50               Documentation at: /docs/config/valve.html
This page took 0.062999 seconds and 3 git commands to generate.