Hi everyone,<br />
<br />
Need help for modifying the radius client or updating for CHAP authentication, <br />
<br />
Modified the below attribute, instead of PW_USER_PASSWORD to PW_CHAP_PASSWORD, but its rejecting please do know if i'm wrong or/and have to take care of any other aspect.<br />
<br />
With PAP(PW_USER_PASSWORD)it works fine. <br />
<br />
Have verified by command line it works fine,<br />
<br />
$echo "User-Name=steve,CHAP-Password=testing,Framed-Protocol=PPP" | radclient localhost:1812 auth testing123<br />
<br />
<br />
---Code snippet--<br />
/*if (rc_avpair_add(rh, &send, PW_USER_PASSWORD, passwd, -1, 0) == NULL)<br />
return ERROR_RC;*/<br />
//VALUE_PAIR<br />
if (rc_avpair_add(rh, &send, PW_CHAP_PASSWORD, passwd, -1, 0) == NULL)<br />
return ERROR_RC;<br />
/*<br />
* Fill in Service-Type<br />
*/<br />
<br />
service = PW_AUTHENTICATE_ONLY;<br />
if (rc_avpair_add(rh, &send, PW_SERVICE_TYPE, &service, -1, 0) == NULL)<br />
return ERROR_RC;<br />
<br />
result = rc_auth(rh, 0, send, &received, msg);<br />
<br />
--End code snippet --<br />
<br />
<br />
Thanks in Advance<br />
-Santosh<br><br> Cheers,<br />
Santosh Kumar<br />
Sr Software Engineer<br />
Cell:09881481468<br />
<br />
<br />
Computers can never replace human stupidity.<br />
<br><Table border=0 Width=644 Height=57 cellspacing=0 cellpadding=0 style="font-family:Verdana;font-size:11px;line-height:15px;"><TR><td><A HREF="http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?" target="_blank"><IMG SRC="http://sigads.rediff.com/RealMedia/ads/adstream_nx.ads/www.rediffmail.com/signatureline.htm@Middle"></A></td></TR></Table>