Compilation error patch MOD_AUTH_PAM for Apache 2

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

 



This is a multi-part message in MIME format.

------=_NextPart_000_00B2_01C245E5.BAE6A420
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Compilation error patch MOD_AUTH_PAM for Apache 2
=20
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:

=20

static const char

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

=20

Save and exit the file.



Compiling, installing and checking

Compile the module by entering the following command:

$ ./build.sh
=20

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


------=_NextPart_000_00B2_01C245E5.BAE6A420
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2716.2200" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV>
<H3 style=3D"MARGIN: 12pt 0cm 3pt"><SPAN class=3DMsoHyperlink><SPAN=20
style=3D"COLOR: windowtext; TEXT-DECORATION: none; text-underline: =
none"><U><FONT=20
face=3DArial>Compilation error patch <FONT face=3DArial>MOD_AUTH_PAM for =
Apache=20
2</FONT></FONT></U></SPAN></SPAN></H3>
<H3 style=3D"MARGIN: 12pt 0cm 3pt"><SPAN class=3DMsoHyperlink><SPAN=20
style=3D"COLOR: windowtext; TEXT-DECORATION: none; text-underline: =
none"><U><FONT=20
face=3DArial><?xml:namespace prefix =3D o ns =3D=20
"urn:schemas-microsoft-com:office:office"=20
/><o:p></o:p></FONT></U></SPAN></SPAN>&nbsp;</H3>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt">Because mod_auth_pam =
for Apache 2=20
(based on Apache 1.3 version from July 7 2002) has a minor bug =
(declaration left=20
out) it has to be patched in order to compile succesfully.</P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt">&nbsp;</P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt">Happy compiling!</P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt">Ruben Waitz</P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt">&nbsp;</P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><FONT face=3DArial=20
size=3D2></FONT>&nbsp;</P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><FONT face=3DArial=20
size=3D2></FONT>&nbsp;</P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><FONT=20
face=3DArial><STRONG>Downloading source:</STRONG></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><FONT face=3DArial =
size=3D2><A=20
href=3D"http://pam.sourceforge.net/mod_auth_pam/";>http://pam.sourceforge.=
net/mod_auth_pam/</A></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><FONT face=3DArial=20
size=3D2></FONT>&nbsp;</P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><FONT face=3DArial=20
size=3D2></FONT>&nbsp;</P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><FONT=20
face=3DArial><STRONG>Directions:</STRONG></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><FONT face=3DArial=20
size=3D2><STRONG>Extract mod_auth_pam-2.0.tar.gz</STRONG></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><FONT face=3DArial =
size=3D2>$ tar xzf=20
mod_auth_pam-2.0.tar.gz</FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><FONT face=3DArial =
size=3D2>$ cd=20
mod_auth_pam/apache-2.0/</FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><FONT face=3DArial=20
size=3D2></FONT>&nbsp;</P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><STRONG><FONT =
face=3DArial=20
size=3D2>Patching the source</FONT></STRONG></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt">Open the file <SPAN=20
style=3D"FONT-SIZE: 8pt; BACKGROUND: aqua; FONT-FAMILY: 'Courier New'; =
mso-highlight: aqua">mod_auth_pam2.c</SPAN><o:p></o:p></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt">Locate line 158 =
(saying =93module=20
pam_auth_module;=94) and insert the following code on a new line below =
it:</P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><o:p>&nbsp;</o:p></P>
<DIV=20
style=3D"BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 4pt; =
BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 4pt; BACKGROUND: =
#b3b3b3; PADDING-BOTTOM: 1pt; BORDER-LEFT: windowtext 1pt solid; =
PADDING-TOP: 1pt; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: =
solid windowtext .5pt">
<P class=3DProgrammacode style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-GB><FONT=20
size=3D2><FONT face=3D"Courier New">static const=20
char<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DProgrammacode style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-GB><FONT=20
size=3D2><FONT face=3D"Courier New"><SPAN=20
style=3D"mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>*pam_servicename =
=3D "httpd",=20
*valid_user =3D "valid-user";</FONT></FONT></SPAN></P></DIV>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><o:p>&nbsp;</o:p></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt">Save and exit the =
file.</P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><FONT face=3DArial=20
size=3D2></FONT>&nbsp;</P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><STRONG><FONT =
face=3DArial=20
size=3D2>Compiling, installing and checking</FONT></STRONG></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt">Compile the module by =
entering=20
the following command:</P>
<DIV=20
style=3D"BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 4pt; =
BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 4pt; BACKGROUND: =
#b3b3b3; PADDING-BOTTOM: 1pt; BORDER-LEFT: windowtext 1pt solid; =
PADDING-TOP: 1pt; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: =
solid windowtext .5pt"><SPAN=20
lang=3DEN-GB><FONT face=3D"Courier New" size=3D2>$ =
./build.sh</FONT></SPAN></DIV>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><o:p>&nbsp;</o:p></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt">Check the output on =
the screen to=20
make sure everything went OK. Two (!) modules (<SPAN=20
style=3D"FONT-SIZE: 8pt; BACKGROUND: aqua; FONT-FAMILY: 'Courier New'; =
mso-highlight: aqua">mod_auth_etc_group.so</SPAN>=20
and <SPAN=20
style=3D"FONT-SIZE: 8pt; BACKGROUND: aqua; FONT-FAMILY: 'Courier New'; =
mso-highlight: aqua">mod_auth_pam2.so</SPAN>=20
should now be present in the following directory: =
/usr/local/apache2/modules</P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt">Also these two =
modules should be=20
loaded in the apache config file (/usr/local/apache2/conf/httpd.conf). =
Check=20
whether the following lines are present:</P>
<DIV=20
style=3D"BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 4pt; =
BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 4pt; BACKGROUND: =
#b3b3b3; PADDING-BOTTOM: 1pt; BORDER-LEFT: windowtext 1pt solid; =
PADDING-TOP: 1pt; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: =
solid windowtext .5pt">
<P class=3DProgrammacode style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-GB><FONT=20
face=3D"Courier New" size=3D2>LoadModule etc_group_auth_module=20
modules/mod_auth_etc_group.so</FONT></SPAN></P>
<P class=3DProgrammacode style=3D"MARGIN: 0cm 0cm 0pt"><SPAN =
lang=3DEN-GB><FONT=20
face=3D"Courier New" size=3D2>LoadModule pam_auth_module<SPAN=20
style=3D"mso-spacerun: yes">&nbsp;&nbsp;&nbsp;=20
</SPAN>modules/mod_auth_pam2.so</FONT></SPAN></P><FONT=20
style=3D"BACKGROUND-COLOR: #b3b3b3" face=3D"Courier New" =
size=3D2></FONT></DIV>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><FONT face=3DArial=20
size=3D2></FONT>&nbsp;</P></DIV>
<DIV><FONT face=3DArial =
size=3D2>------------<BR>Bezoekadres:&nbsp;&nbsp;Amtex=20
Internetdiensten, Plantsoengracht 2, 1441 DE&nbsp; Purmerend, The=20
Netherlands<BR>Correspondentieadres:&nbsp;Amtex Internetdiensten, =
Wipmolen 148,=20
1444 GZ&nbsp; Purmerend, The Netherlands</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Tel. +31(0)299-772529, Cellular. =
+31(0)6-20044798,=20
Fax. +31(0)84-8761792<BR>Website: </FONT><A =
href=3D"http://www.amtex.nl";><FONT=20
face=3DArial size=3D2>http://www.amtex.nl</FONT></A><FONT face=3DArial =
size=3D2>,=20
Company Email: </FONT><A href=3D"mailto:info@amtex.nl";><FONT =
face=3DArial=20
size=3D2>info@amtex.nl</FONT></A></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Consultancy - Interactive websites - =
Webhosting -=20
Database connectivity - E-business solutions</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Amtex Internetdiensten is onderdeel van =
Proto56=20
Internet Solutions<BR></FONT></DIV></BODY></HTML>

------=_NextPart_000_00B2_01C245E5.BAE6A420--






[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux