LoadModule external_auth_module extramodules/mod_auth_external.so AddModule mod_auth_external.c AddExternalAuth pwauth /usr/lib/apache/pwauth SetExternalAuthMethod pwauth pipe # For external group check # AddExternalGroup unixgroup /usr/lib/apache/unixgroup # SetExternalGroupMethod unixgroup environment # Put an .htaccess file in whatever directory you want to protect. # (For .htaccess files to work, you may need to change some # "AllowOverride None" directives in your httpd.conf file into # "AllowOverride AuthConfig" directives). # # A typical .htaccess file would look like: # # AuthName Your-Site-Name # AuthType Basic # AuthExternal pwauth # require valid-user # or # require user1 # # GroupExternal unixgroup # AuthGroupFile /dev/null # require group <groupname1> <groupname2> ... # # Alternately, you can put a <Directory> block with the same directives # in your httpd.conf file. # # Note1: Using group method, don't forget to add users in the authorized group # group files # somegroup:x:500:user1,user2,user3 # # # - samples from pwauth/INSTALL