Unable to perform CHAP Authentication: after modifying client with CHAP-Password.

Alan DeKok aland at deployingradius.com
Tue Jul 27 09:21:14 CEST 2010


Santosh Kumar wrote:
> Need help for modifying the radius client or updating for CHAP
> authentication,

  You need to do the CHAP calculations.  See the RFC's for details.

> 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.
...
> if (rc_avpair_add(rh, &send, PW_CHAP_PASSWORD, passwd, -1, 0) == NULL)
> return ERROR_RC;

  That won't work.  CHAP requires specific crypto calculations.  You're
not doing them.

  Alan DeKok.



More information about the Freeradius-Users mailing list