Debian Codegraph @

README

raw
1 mod_ldap_userdir v1.1.19
2 ========================
3
4 mod_ldap_userdir is a module that enables the Apache web server to look up
5 user home directories (for /~user URLs) from an LDAP directory.
6
7
8 Sections:
9 1. Author
10 2. Licensing
11 3. How do I install and set up mod_ldap_userdir?
12 4. Changes
13 5. To Do
14 6. Thanks
15
16
17 =========
18 1. Author
19 =========
20
21 John Morrissey, <[email protected]>,
22 http://horde.net/~jwm/software/mod_ldap_userdir/. Feedback is much
23 appreciated. If you're using mod_ldap_userdir successfully, are having
24 problems getting mod_ldap_userdir up and running at your site, or have some
25 code improvements or ideas for development, please let me know!
26
27 ============
28 2. Licensing
29 ============
30
31 mod_ldap_userdir is licensed under the GPL, with an exception to allow for
32 linking against OpenSSL:
33
34 The linking of mod_ldap_userdir with OpenSSL is allowed. You may distribute
35 the resulting executable without including the source code for OpenSSL in
36 the source distribution.
37
38 ================================================
39 3. How do I install and set up mod_ldap_userdir?
40 ================================================
41
42 * gzip -dc mod_ldap_userdir-1.1.19.tar.gz | tar xf -
43 * cd mod_ldap_userdir-1.1.19
44 * ./configure --with-activate
45 Run './configure --help' for information on other build options.
46 * make
47 * make install
48
49 If the installation fails and you manually copy mod_userdir_ldap.so into
50 place, you will need to add something like:
51
52 LoadModule ldap_userdir_module modules/mod_ldap_userdir.so
53
54 to your httpd.conf.
55
56 * If your LDAP server runs OpenLDAP 1.x, you need to add the posixAccount
57 schema definition. Add the contents of posixAccount-objectclass to your
58 slapd.oc.conf and restart your LDAP server. OpenLDAP 2.x (and most other
59 LDAP servers) ship with this schema predefined.
60 * The 'user-ldif' file contains a sample user ldif. Modify it to your liking
61 and say ldapadd -D your-root-dn -w your-root-dn-password < ldif
62 * You are *strongly* encouraged to read up on the LDAP config-file
63 directives in the DIRECTIVES file, included with the distribution.
64
65 At bare minimum, you'll need LDAPUserDir and LDAPUserDirBaseDN directives.
66 If you are not binding anonymously to your LDAP server, you must also
67 include LDAPUserDirDNInfo.
68
69 A set of basic mod_ldap_userdir configuration directives would look like:
70
71 LDAPUserDir public_html
72 LDAPUserDirDNInfo cn=your-dn,dc=example,dc=com dnpass
73 LDAPUserDirBaseDN ou=People,dc=example,dc=com
74
75 Of course, you will need to update these configuration directives with
76 the proper values for your environment.
77
78 If you wish to use the user's home directory itself (instead of a
79 subdirectory below it) for Apache-accessible content, specify "."
80 for the directory:
81
82 LDAPUserDir .
83
84 ==========
85 4. Changes
86 ==========
87
88 v1.1.19:
89 * Avoid a segfault when LDAPUserDirUseTLS is enabled, and the
90 LDAPUserDirUseTLS configuration directive is specified later in
91 the configuration than LDAPUserDirServerURL.
92
93 v1.1.18:
94 * Remove Apache 1.3.x support. Apache 1.3.x has been end of life since
95 January 2010.
96 * Use remote path to the source tarball in the included .spec, which
97 makes 'rpmbuild -tb' work on the source tarball.
98
99 v1.1.17:
100 * Implement an internal failover mechanism instead of relying on the LDAP
101 SDK's built-in failover (if any). Fixes failover regression introduced
102 in v1.1.13 when ldap_initialize() was first used.
103 * Multiple LDAP URL arguments may now be passed to LDAPUserDirServerURL:
104
105 LDAPUserDirServerURL ldap://127.0.0.1/??sub ldap://172.16.0.1/??sub
106 * Portability fix: don't use ldap_initialize() and ldap_unbind_ext_s()
107 unless we're building against the corresponding versions of the OpenLDAP
108 SDK.
109 * Updated documentation to mention using "." (the current directory) when
110 the user's home directory itself should be exposed, instead of a
111 subdirectory below it. Thanks to Peter Tselios <[email protected]>
112 for mentioning this issue.
113
114 v1.1.16:
115 * TLS support was not being enabled when the --with-tls option was
116 explicitly passed to configure. Replace --with-tls with the more
117 correct option --enable-tls.
118
119 v1.1.15:
120 * Fix segfault when LDAPUserDirDNInfo isn't specified (implicitly specifying
121 anonymous binds) with modern LDAP SDKs (LDAP_API_VERSION >= 2000).
122
123 v1.1.14:
124 * Avoid segfault attempting to free() uninitialized pointer when a user
125 does not have a uid or homeDirectory attr, one or both of those attrs
126 are not readable by the DN configured by LDAPUserDirDNInfo, or an
127 out-of-memory condition is encountered while fetching any LDAP attribute.
128
129 v1.1.13:
130 * Missed ldap_init() -> ldap_initialize() change when making changes to
131 comply with draft-ietf-ldapext-ldap-c-api-04. Older versions may segfault
132 on 64-bit systems when mod_ldap_userdir is built with more recent OpenLDAP
133 SDK headers.
134 * Previous versions enabled TLS when the ldaps:// scheme was specified in
135 LDAPUserdirServerURL URL. This behavior was incorrect, since ldaps://
136 indicates LDAP over SSL (port 636 by default) should be enabled. If you
137 wish to continue using TLS, you must modify your configuration to specify
138 the ldap:// scheme in the LDAPUserdirServerURL URL and add the directive
139 'LDAPUserDirUseTLS on' to your configuration.
140 * LDAPUserDirUseTLS now throws a configuration error when TLS is enabled and
141 the ldaps:// scheme is specified in the LDAPUserdirServerURL URL.
142 * Fixes to bugs in suexec support submitted by Witold Baryluk
143 <[email protected]>.
144 * Avoid infinite loop when LDAPUserDirDNInfo bind DN doesn't have access to
145 one or more LDAP attributes.
146 * Logging improvements
147 * Don't complain about inaccessible [ug]idNumber values when reading the
148 user's LDAP entry, since we might not be using suexec.
149 * Complain in suexec handler if we found the user's LDAP entry but it
150 was missing [ug]idNumber values.
151
152 v1.1.12:
153 * Updated the suexec hooks to fetch the user's UID and GID (uidNumber and
154 gidNumber attributes, respectively) from the LDAP directory instead of
155 relying on Apache to fetch them for us. This allows suexec access for
156 LDAP-only users with no OS support required for looking up these users'
157 UID/GIDs.
158 * Removed the LDAPUserDirCacheTimeout directive from the Apache 1.x build.
159 Caching is only supported with Apache 2.0 and later, so this directive was
160 being silently ignored under Apache 1.x. If you run Apache 1.x, you *must*
161 remove the LDAPUserDirCacheTimeout directive from your configuration.
162 * Fix handling of the cache timeout, so setting it to 0 seconds (to disable
163 caching) now works.
164 * Use non-deprecated LDAP API functions if the LDAP SDK is new enough to
165 comply with draft-ietf-ldapext-ldap-c-api-04.
166
167 v1.1.11:
168 * Add LDAPProtocolVersion directive to specify the LDAP protocol version
169 to use. The LDAP protocol version now defaults to LDAPv3 instead of
170 LDAPv2. Thanks to Aaron Brace <[email protected]> for
171 the patch.
172 * Fetch the user's canonical username (as returned by the LDAP directory)
173 to pass to suEXEC instead of passing the username as received in the URL.
174 Thanks to Aaron Brace <[email protected]> for the patch.
175 * The previous change also removes the LDAPUserDirHomeAttribute directive
176 in favor of the new LDAPAttribute directive. To migrate your previous
177 configuration, change:
178
179 LDAPUserDirHomeAttribute username
180
181 to:
182
183 LDAPAttribute uid username
184
185 More information on LDAPAttribute is in DIRECTIVES.
186 * Fix libldap/liblber autodetection when using --with-sdk-headers and/or
187 --with-sdk-libdir configure options. Thanks to Daniel Lark
188 <[email protected]> for the bug report.
189 * No longer require GNU make.
190
191 v1.1.10:
192 * Apache 2.2 support. Thanks to Hiroto Kagotani <[email protected]>
193 and Takeshi Inagaki <[email protected]> for reporting this.
194 * Refined LDAP over TLS support. Thanks to Hiroto Kagotani
195 <[email protected]> and Takeshi Inagaki <[email protected]>
196 for reporting problems when building in non-TLS mode.
197 * Sun/Solaris LDAP SDK support. Thanks to Takeshi Inagaki
198 <[email protected]> for reporting this.
199 * Better sanity checking of the timeout value. Thanks to Italo Foppiano
200 Reyes <[email protected]> for reporting a problem with this.
201
202 v1.1.9:
203 * Add LDAPUserDirServerURL directive, which takes a single LDAP URL
204 argument. Suggested by Fabien Picarougne
205 <[email protected]>.
206 * Register a configuration merge handler so directives from the main
207 server (outside a VirtualHost) are merged down and treated as overridable
208 defaults inside VirtualHosts. Errant behavior reported by Alexander Perlis
209 <[email protected]>.
210 * Fix building with Apache1.
211 * Build system improvements:
212 * Build with LDAP TLS support automatically, if present.
213 * Use proper build path to mod_ldap_userdir.so with Apache2 builds.
214 * Improve autoconf usage.
215 * Drop autoconf support for Netscape LDAP SDK. autoconf support for it was
216 broken, and I can't find anyone still using it.
217
218 v1.1.8:
219 * Add caching support (with accompanying LDAPUserDirCacheTimeout directive),
220 reducing the number of LDAP searches that need to be performed.
221
222 v1.1.7:
223 * Add LDAPUserDirHomeAttribute attribute instead of depending on a
224 build-time change to switch the homeDirectory attribute's name, loosely
225 based on code by O'Shaughnessy Evans <[email protected]>.
226 * Now running module/child init handlers for Apache 2, too.
227 * Remove child exit handler; I can't find a good way to replicate this
228 with Apache 2's hooks and it's not really necessary anyway, since the
229 connection will be closed on child exit.
230
231 v1.1.6:
232 * Fix Apache 2-ism that crept into v1.1.5. Tohru Murakami
233 <[email protected]> and Jerome Spenlehauer
234 <[email protected]>.
235
236 v1.1.5:
237 * Add suexec hooks for Apache 2, contributed by Marc Lewis <[email protected]>.
238
239 v1.1.4:
240 * Fixed bug that prevented startup if LDAPUserDirSearchScope was configured.
241
242 v1.1.3:
243 * Fixed Apache2-isms that crept into 1.1.2.
244
245 v1.1.2:
246 * Update the mod_ldap_userdir version added by ap_add_version_component.
247 * Build fixes for Netware and Win32 by Guenter Knauf <[email protected]>.
248 * Support for wildcards and redirection by Shyokou Ouyou
249 <[email protected]>.
250
251 v1.1.1:
252 * Compilation fix for platforms that don't define TRUE in their headers.
253
254 v1.1:
255 * Apache 2.x support. Thanks to Shane Boulter (sboulter at ariasolutions dot
256 com) for providing an account with which I could implement Apache 2.x
257 support.
258 * Improved build system.
259 * Got rid of dependency on ldap_build_filter(), which will fix builds against
260 OpenLDAP 2.1.x, Novell eDirectory and a couple others.
261 * Postcard-ware licensing addition.
262
263 v1.0.1:
264 * Fixed a couple hard-coded references to the "homeDirectory" attr. (Thanks
265 to Christian Zoffoli [czoffoli at xmerlin dot org] for pointing this out.)
266
267 v1.0:
268 * Initial revision of standalone module. mod_ldap_userdir includes the same
269 functionality as apache-userdirldap 1.5 and adds TLS/SSL support for
270 connections to the LDAP server.
271
272 ========
273 5. To Do
274 ========
275
276 * Currently, nothing.
277
278 =========
279 6. Thanks
280 =========
281
282 * Everyone who's downloaded, used, and/or offered feedback.