how to generate chap-password chap-challenge on radius

Alan DeKok aland at deployingradius.com
Tue Feb 2 15:27:27 CET 2010


Alisson wrote:
> hi, I need to use chap-password and chap-challenge to authenticate
> mikrotik on radius
> 
> and i'm trying to use some pear extensions to do it...

  Well.. the RFC's explain how to do CHAP calculations.  FreeRADIUS
contains examples of how to do it.

> but mikrotik use passwords like this
> 
> password=1
> 
> CHAP-Challenge =
> 0xad2c7efe802ea7bea94e270404eb01ae                         
> CHAP-Password = 0x000ad48b2d944948e8014118aeb4e56923
> 
> and on pear crypt-chap it generates

  Ask the Pear people why it's wrong.

  Alan DeKok.



More information about the Freeradius-Users mailing list