See below configuration line may this help you -- add this line in <font size="-1">/etc/<b>pam</b>.d/passwd</font> file<br><br><pre><font size="2">password  sufficient  /lib/security/pam_unix.so nullok use_authtok md5<br><br>
<br></font></pre><br><br><div class="gmail_quote">On Nov 20, 2007 11:02 AM, Chu Qiu <<a href="mailto:qiu.chu@hotmail.com">qiu.chu@hotmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">









<div link="blue" vlink="purple" lang="EN-US">

<div>

<p><span style="font-size: 12pt;">I have developed a PHP application
using  PAM auth , and whose config file in the /etc/pam.d is :</span></p>

<p><span style="font-size: 12pt;"> </span></p>

<p><b><span style="font-size: 12pt;">#%PAM-1.0</span></b></p>

<p><b><span style="font-size: 12pt;">auth      
required     pam_stack.so service=system-auth</span></b></p>

<p><b><span style="font-size: 12pt;">auth      
required     pam_nologin.so</span></b></p>

<p><b><span style="font-size: 12pt;">account   
required     pam_stack.so service=system-auth</span></b></p>

<p><span style="font-size: 12pt;"> </span></p>

<p><span style="font-size: 12pt;">I will send the username and
password to a CGI program written by C language modules and PAM APIs.</span></p>

<p><span style="font-size: 12pt;"> </span></p>

<p><span style="font-size: 12pt;">Now I want to encrypt the
password with md5, and send username and the MD5 encrypted password to CGI .</span></p>

<p><span style="font-size: 12pt;"> </span></p>

<p><span style="font-size: 12pt;">But I don't know how to modify
my PAM config file to make it support auth the MD5 password.</span></p>

<p><span style="font-size: 12pt;"> </span></p>

<p><span style="font-size: 12pt;">Please do me a favor!</span></p>

<p><span style="font-size: 12pt;"> </span></p>

<p><span style="font-size: 12pt;">Thank you very much!</span></p>

<p style="text-align: justify;"><span style="font-size: 12pt;"> </span></p>

<p style="text-align: justify;"><span style="font-size: 12pt;">Chu Qiu</span></p>

<p> </p>

</div>

</div>


<br>_______________________________________________<br>Pam-list mailing list<br><a href="mailto:Pam-list@redhat.com">Pam-list@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/pam-list" target="_blank">https://www.redhat.com/mailman/listinfo/pam-list
</a><br></blockquote></div><br><br clear="all"><br>-- <br>Rakesh P. Zingade<br>+919420357790