<div> </div>
<div>Hi,</div>
<div> </div>
<div> I tryed as you said. But it seems I still miss something.</div>
<div>$cat /usr/local/etc/raddb/users</div>
<div>.....</div>
<div>John Auth-Type := CHAP, CHAP-Password == "hello"</div>
<div>.......</div>
<div> </div>
<div> </div>
<div>$ cat request.txt<br>User-Name = John<br>CHAP-Password = hello</div>
<div> </div>
<div>$radiusd -X</div>
<div> </div>
<div>......</div>
<div> </div>
<div>call_modsingle: chap<br>rlm_chap: login attempt by "John" with CHAP password ?谟??1?kW将芇?<br>rlm_chap: Could not find clear text password for user John<br> modcall[authenticate]: module "chap" returns invalid
</div>
<div> </div>
<div>......</div>
<div> </div>
<div>Any suggestion?Thank you.</div>
<div> </div>
<div>--chenhao</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div><br><br> </div>
<div><span class="gmail_quote">2007/6/20, Jian Wang <<a href="mailto:jwang@a10networks.com.cn">jwang@a10networks.com.cn</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><span class="q">On 6/20/07, <b class="gmail_sendername">hao chen</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:chenhao602@gmail.com" target="_blank">
chenhao602@gmail.com</a>> wrote:</span>
<div><span class="q"><span class="gmail_quote"></span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div>Hi,Ivan</div>
<div> </div>
<div> I want to know how to test CHAP with radclient(I have no NAS). Could you give me a example of the radclient configure file?</div>
<div> Thank you.</div>
<div>-chenhao</div></blockquote></span>
<div><br>$ cat request.txt<br>User-Name = foo<br>CHAP-Password = bar <br>$ radclient -sx -f request.txt <radius server> auth <shared secret><br>Sending Access-Request of id 116 to <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.3.38:1812/" target="_blank">
192.168.3.38:1812</a><br> User-Name = "foo"<br> CHAP-Password = 0x74f42a8e4b2b3f0505ad6ed22ba980a20e<br>rad_recv: Access-Accept packet from host <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.3.38:1812/" target="_blank">
192.168.3.38:1812</a>, id=116, length=20<br><br> Total approved auths: 1<br> Total denied auths: 0<br> Total lost auths: 0<br>$<br> </div>
<div><span class="e" id="q_11346b7b5c32d8f2_4"><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div><span class="gmail_quote">2007/6/20, <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:tnt@kalik.co.yu" target="_blank">tnt@kalik.co.yu</a> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:tnt@kalik.co.yu" target="_blank">
tnt@kalik.co.yu</a>>:</span>
<div><span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">No, not with radtest. You can use radclient, which has much more ability, <br>but is also more complicated.
<br><br>Use, for instance, XP dialup connection. In connection properties click<br>on Security tab, Advanced radio button and then Settings button. By<br>default all protocols are ticked. Leave only CHAP ticked and exit with
<br>OK. Once you are done with testing remember to go back and add protocols<br>back.<br><br>WARNING: This will work only if the NAS you are connecting through also<br>supports CHAP authentication. If it doesn't, XP client with only CHAP
<br>enabled won't be able to connect.<br><br>Ivan Kalik<br>Kalik Informatika ISP<br><br><br>Dana 19/6/2007, "lisa laam" <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:laam.lisa@gmail.com" target="_blank">
laam.lisa@gmail.com</a>> piše:<br><br>>thanks, <br>><br>>Is there a way to test CHAP?<br>><br>>could we test that with "radtest"?<br>><br>><br>><br>><br>>2007/6/19, <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:tnt@kalik.co.yu" target="_blank">
tnt@kalik.co.yu</a> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:tnt@kalik.co.yu" target="_blank"> tnt@kalik.co.yu</a>>:<br>>><br>>> Have a look at dictionary.freeradius.internal
. You will find several<br>>> xxx-Password attributes where xxx are supported encryption types.<br>>><br>>> To test CHAP you don't need to "tell" Freeradius anything. Chap module <br>>> is enabled by default, so it will work if you havent diabled it. What
<br>>> you need to do is to get the client to use CHAP - radius server will<br>>> "follow".<br>>><br>>> Ivan Kalik <br>>> Kalik Informatika ISP<br>>><br>>><br>>> Dana 19/6/2007, "lisa laam" <
<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:laam.lisa@gmail.com" target="_blank"> laam.lisa@gmail.com</a>> pi e:<br>>><br>>> >Hi,<br>>> > <br>>> >I configured Freeradius to use PAP method with users file.
<br>>> >The password is stored in clear text is stored in clear text in the user<br>>> >file and it works well.<br>>> > <br>>> >Now I want to use other mode of user storing with PAP method. (exemple
<br>>> MD5<br>>> >with the user file locatedt in /freeradius-1.1.6<br>>> /src/tests/digest-auth-MD5)<br>>> > <br>>> >1- How to tell frreeradius that the user password is stored in clear
<br>>> text,<br>>> >or digest, or MD5 hashed, etc ??<br>>> >I tried to copy the content of "digest-auth-MD5" in the "users" file and <br>>> I<br>>> >got this errror :
<br>>> ><br>>> >Errors reading /opt/freeradius/etc/raddb/users<br>>> >radiusd.conf[1067]: files: Module instantiation failed.<br>>> >radiusd.conf [1852] Unknown module "files".
<br>>> >radiusd.conf[1788] Failed to parse authorize section.<br>>> ><br>>> ><br>>> >I want to test also CHAP method, how to tell radius to use this method in <br>>> >stead of PAP?
<br>>> ><br>>> ><br>>> >thanks<br>>> ><br>>> ><br>>><br>>> -<br>>> List info/subscribe/unsubscribe? See<br>>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.freeradius.org/list/users.html" target="_blank">
http://www.freeradius.org/list/users.html</a><br>>><br>><br>><br><br>-<br>List info/subscribe/unsubscribe? See <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.freeradius.org/list/users.html" target="_blank">
http://www.freeradius.org/list/users.html</a><br></blockquote></span></div></div><br><br>-<br>List info/subscribe/unsubscribe? See <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.freeradius.org/list/users.html" target="_blank">
http://www.freeradius.org/list/users.html</a><br></blockquote></span></div></div><br><br>-<br>List info/subscribe/unsubscribe? See <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.freeradius.org/list/users.html" target="_blank">
http://www.freeradius.org/list/users.html</a><br></blockquote></div><br>