1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
Installation instructions:
rpm installation
----------------
rpm -ta mod_auth_shadow-<version>.tar.gz
rpm -i <rpm file>.rpm
Edit httpd.conf (see below) and restart the webserver.
manual installation
-------------------
There are three pieces to mod_auth_shadow:
1. mod_auth_shadow.so
2. validate
3. the web server configuration
They can be built, installed and configured as follows:
1. As root, type 'make all' to build mod_auth_shadow.so,
and validate. (See testvalidate.c for testing instructions,
if you want to test validate's compatibility with your
system.)
2. Typing 'make install' will then:
- install validate into /usr/sbin/
- install mod_auth_shadow.so into /usr/lib/apache/
- add these lines to your webserver config file (httpd.conf):
LoadModule authshadow_module lib/apache/mod_auth_shadow.so
AddModule mod_auth_shadow.c
If the last two defaults aren't correct, you'll need to edit
httpd.conf. For instance, if your web root directory is
/home/httpd, and you have a symlink
/etc/httpd/modules -> ../../usr/lib/apache
then you'll want to change the first of the two lines
above to be
LoadModule authshadow_module modules/mod_auth_shadow.so
3. To configure a directory to be readable only by valid users
of the system, the following could be added to httpd.conf:
<Location /path/to/directory>
AuthName whateveryoulike
AuthShadow on
AuthType Basic
require valid-user
</Location>
The "AuthShadow on" directive tells the authentication handler to
take effect. If AuthShadow is set to off, mod_auth_shadow will
decline to authenticate the user.
mod_auth_shadow also supports the "require user" and "require
group" directives. "require user" restricts access to the named
(space separated) users. "require group" restricts access to
users who are a member of the listed groups.
4. Restart the web server for the changes to take effect.
|