<IfDefine HAVE_AUTHNZ_EXTERNAL> <IfModule !mod_authnz_external.c> LoadModule authnz_external_module extramodules/mod_authnz_external.so </IfModule> </IfDefine> <IfModule mod_authnz_external.c> AddExternalAuth pwauth /usr/bin/pwauth SetExternalAuthMethod pwauth pipe # For external group check # AddExternalGroup unixgroup /usr/bin/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 # AuthBasicProvider external # 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 </IfModule>