Configuring PAMIf you went with the DSO installation above, a default httpd configuration file for mod_auth_pam will have been created for you in /etc/pam.d/httpd. It should work out of the box, if you kept a standard PAM installation (if you never looked at that directory before, thats probably the case). If you modified you PAM configuration before, apply the same changes to the httpd service configuration.
Apache configurationApache will automatically start using mod_auth_pam once you compiled it in. You use the normal directives to configure mod_auth_pam. An example .htaccess (also included as samples/dot-htaccess in the distribution) might look like
AuthType Basic AuthName "secure area" require group staff require user webmasterwhich would result in the protected directory being accessible only by members of the "staff" group and by the user "webmaster". For more information, see AuthType, AuthName and require.
Because a server might contain several authentication modules, mod_auth_pam includes directives to improve interaction with other authentication modules.
Copyright © 2000 by Ingo Lütkebohle