Installing the Apache authentication module under MacOS X: Difference between revisions
From RavenWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 16: | Line 16: | ||
*Add the following to /etc/apache2/httpd.conf, after the last line beginning with "LoadModule": | *Add the following to /etc/apache2/httpd.conf, after the last line beginning with "LoadModule": | ||
<tt>LoadModule ucam_webauth_module libexec/apache2/mod_ucam_webauth.so | <tt>LoadModule ucam_webauth_module libexec/apache2/mod_ucam_webauth.so</tt> | ||
<nowiki>#</nowiki>Raven config follows | <nowiki>#</nowiki><tt>Raven config follows | ||
AAKeyDir "/etc/apache2/webauth_keys" | AAKeyDir "/etc/apache2/webauth_keys" | ||
AACookieKey "some random string" | AACookieKey "some random string" | ||
Line 23: | Line 23: | ||
AuthType Ucam-WebAuth | AuthType Ucam-WebAuth | ||
Require valid-user | Require valid-user | ||
</Directory | </Directory> | ||
<nowiki>#</nowiki>End of Raven configuration | <nowiki>#</nowiki>End of Raven configuration</tt> | ||
*10.5 & 10.6 specific edits | *10.5 & 10.6 specific edits |
Revision as of 10:51, 1 February 2012
Installing & configuring Raven for 10.5 and later
For those users running 10.5+ on Intel hardware there is a prebuilt installer package to deploy the Raven module without the need for compilation etc.
Installing mod_ucam_webauth
- Download the installer package from here and install. This will deploy mod_ucam_webauth built for 32 & 64 bit Intel hardware into /usr/libexec/apache2/
- Download the necessary RSA public keys from https://raven.cam.ac.uk/project/keys/ and place them in into /etc/apache2/webauth_keys/. The easiest way to do this is to simply execute the following commands on the Terminal:
sudo mkdir /etc/apache2/webauth_keys cd /etc/apache2/webauth_keys sudo curl -O https://raven.cam.ac.uk/project/keys/pubkey2
Editing httpd.conf
- Add the following to /etc/apache2/httpd.conf, after the last line beginning with "LoadModule":
LoadModule ucam_webauth_module libexec/apache2/mod_ucam_webauth.so
#Raven config follows
AAKeyDir "/etc/apache2/webauth_keys" AACookieKey "some random string" <Directory "path/to/protected/directory"> AuthType Ucam-WebAuth Require valid-user </Directory>
#End of Raven configuration
- 10.5 & 10.6 specific edits
Enable the authz_user_module module to prevent apache 500 errors.
- 10.7 specific edits
There are two references to authz_user_module in the default 10.7 httpd.conf. Enable the reference in the <IfDefine MACOSXSERVER> section.