<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:PMingLiU;
        panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@PMingLiU";
        panose-1:2 2 5 0 0 0 0 0 0 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
 /* List Definitions */
 @list l0
        {mso-list-id:1227035780;
        mso-list-type:hybrid;
        mso-list-template-ids:359168018 403243023 403243033 403243035 403243023 403243033 403243035 403243023 403243033 403243035;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level2
        {mso-level-tab-stop:1.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-tab-stop:1.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level4
        {mso-level-tab-stop:2.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-tab-stop:2.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-tab-stop:3.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level7
        {mso-level-tab-stop:3.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-tab-stop:4.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-tab-stop:4.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-IE link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span lang=EN-US>Hi,<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US>I was trying to find a PAM-Radius mailing
list and it seems <span style='color:black'>that this might be the one.</span><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:black'>A Ubuntu 7.4 box needs
to be configured such that SSH users will be authenticated against an external
FreeRadius server. FreeRadius server version is 1.1.7-1build4. The Ubuntu box
uses OpenSSH 4.3-p2 and /etc/ssh/sshd_config is set to “UsePAM yes”. I
downloaded PAM_Radius 1.3.17.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:black'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:black'>Below is the procedure
that I use Radius to authenticate a user in /etc/passwd (/etc/shadow doesn’t
have the password for that user).<o:p></o:p></span></p>

<p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo2'><![if !supportLists]><span
lang=EN-US style='color:black'><span style='mso-list:Ignore'>1.<span
style='font:7.0pt "Times New Roman"'>       </span></span></span><![endif]><span
lang=EN-US style='color:black'>FreeRadius server configures its clients.conf
and user file to include a new user called “test1”.<o:p></o:p></span></p>

<p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo2'><![if !supportLists]><span
lang=EN-US style='color:black'><span style='mso-list:Ignore'>2.<span
style='font:7.0pt "Times New Roman"'>       </span></span></span><![endif]><span
lang=EN-US style='color:black'>On my Ubuntu 7.4 box, add a user with command
“useradd” to add a user “test1” but don’t set a password. So the user “test1”
on the Ubuntu box will be inactive.<o:p></o:p></span></p>

<p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo2'><![if !supportLists]><span
lang=EN-US style='color:black'><span style='mso-list:Ignore'>3.<span
style='font:7.0pt "Times New Roman"'>       </span></span></span><![endif]><span
lang=EN-US style='color:black'>Configure /etc/pam.d/ssh on the Ubuntu box to
use “auth sufficient pam_radius_auth.so”<o:p></o:p></span></p>

<p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo2'><![if !supportLists]><span
lang=EN-US style='color:black'><span style='mso-list:Ignore'>4.<span
style='font:7.0pt "Times New Roman"'>       </span></span></span><![endif]><span
lang=EN-US style='color:black'>Also update the /etc/raddb/server on the Ubuntu
box to point to the remote Radius server IP. <o:p></o:p></span></p>

<p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo2'><![if !supportLists]><span
lang=EN-US style='color:black'><span style='mso-list:Ignore'>5.<span
style='font:7.0pt "Times New Roman"'>       </span></span></span><![endif]><span
lang=EN-US style='color:black'>Try ssh test1@ubuntu box and it worked. Also
monitored the Free Radius logging and it did show that the Access-Request
packets went to Radius server.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:black'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:black'>So step 1-5 worked well
for me. Note that at step 2, the user account to be authenticated is added to
/etc/passwd.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:black'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:black'>The issue is: if step 2
is omitted, SSH login will fail. ACCESS_REQUEST packets with INCORRECT password
were even sent to the Radius server. Further troubleshooting showed that
PAM_Radius module got a bad password from PAM.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:black'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:black'>I did some research
from the website and some emails dated in 2006 said that PAM_Radius can only
authenticate user accounts in /etc/passwd file. Is that right?<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:black'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:black'>Many thanks in advance,<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:black'>Feng<o:p></o:p></span></p>

</div>

</body>

</html>