<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>You sir are a lifesaver.</span></div><div><span><br></span></div><div><span><br></span></div><div>If anyone else wants to know, I had to change auto_header = yes in pap section of radiusd.conf and set the encryption schema to crypt </div><div>then </div><div>in user file delete all just do single line entry per user  which can be scripted easily from htpasswd.</div><div><br></div><div><span><div>username    Auth-Type := PAP, Crypt-Password == "xx-crypted-pwd-from-htpasswd-xx"</div><div><br></div><div><br></div></span></div><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><font size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Alan
 Buxey <A.L.M.Buxey@lboro.ac.uk><br><b><span style="font-weight: bold;">To:</span></b> Agent Smith <news8080@yahoo.com>; FreeRadius users mailing list <freeradius-users@lists.freeradius.org><br><b><span style="font-weight: bold;">Sent:</span></b> Friday, September 9, 2011 3:43 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: htpasswod authentication.<br></font><br>Hi,<br>>    Can FR do htpasswd file based auth? Ideally I'd like to define users in<br>>    users file with their crypto password right from htpasswd. Is this<br>>    possible? how would a user file look like. I searched the docs and all I<br>>    found was 'cleartext password' but I won't know that since its htpasswd.<br><br>does your htpasswd have md5, crypt or sha1?  either way, should be able to handle<br>it, you'll just need to tag it right <br><br>eg you might be able to
 convert<br><br><br>john:n5MfEoHOIQkKg<br><br>to<br><br><br>john Cleartext-Password := "{crypt}n5MfEoHOIQkKg"<br><br><br>replace {crypt} with {md5}, {sha} as required: read the man page for rlm_pap for further info..<br>you might need to just use the 'right' password attribute type if the above isnt on the mark<br><br>alan<br><br><br></div></div></div></body></html>