[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Compilation error patch MOD_AUTH_PAM for Apache 2



Compilation error patch MOD_AUTH_PAM for Apache 2

 

Because mod_auth_pam for Apache 2 (based on Apache 1.3 version from July 7 2002) has a minor bug (declaration left out) it has to be patched in order to compile succesfully.

 

Happy compiling!

Ruben Waitz

 

 

 

Downloading source:

http://pam.sourceforge.net/mod_auth_pam/

 

 

Directions:

Extract mod_auth_pam-2.0.tar.gz

$ tar xzf mod_auth_pam-2.0.tar.gz

$ cd mod_auth_pam/apache-2.0/

 

Patching the source

Open the file mod_auth_pam2.c

Locate line 158 (saying ?module pam_auth_module;?) and insert the following code on a new line below it:

 

static const char

    *pam_servicename = "httpd", *valid_user = "valid-user";

 

Save and exit the file.

 

Compiling, installing and checking

Compile the module by entering the following command:

$ ./build.sh

 

Check the output on the screen to make sure everything went OK. Two (!) modules (mod_auth_etc_group.so and mod_auth_pam2.so should now be present in the following directory: /usr/local/apache2/modules

Also these two modules should be loaded in the apache config file (/usr/local/apache2/conf/httpd.conf). Check whether the following lines are present:

LoadModule etc_group_auth_module modules/mod_auth_etc_group.so

LoadModule pam_auth_module    modules/mod_auth_pam2.so

 

------------
Bezoekadres:  Amtex Internetdiensten, Plantsoengracht 2, 1441 DE  Purmerend, The Netherlands
Correspondentieadres: Amtex Internetdiensten, Wipmolen 148, 1444 GZ  Purmerend, The Netherlands
 
Tel. +31(0)299-772529, Cellular. +31(0)6-20044798, Fax. +31(0)84-8761792
Website:
http://www.amtex.nl, Company Email: info@amtex.nl
 
Consultancy - Interactive websites - Webhosting - Database connectivity - E-business solutions
 
Amtex Internetdiensten is onderdeel van Proto56 Internet Solutions

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []