how to generate chap-password chap-challenge on radius
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... but mikrotik use passwords like this password=1 CHAP-Challenge = 0xad2c7efe802ea7bea94e270404eb01ae CHAP-Password = 0x000ad48b2d944948e8014118aeb4e56923 and on pear crypt-chap it generates ChallResp : 641af097fc49501791740dcf0684c0e2 expected : 8f028814450d66d94c72331ef455a172 -- Att. Alisson F. Gonçalves Sistemas de Informação - UFGD
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.
i'm sending this atributes Cleartext-Password==1 CHAP-Password==1 Mikrotik-Rate-Limit==600k/600k NAS-Identifier=Mikrotik Calling-Station-Id=192.168.3.210 MT-Group=Mikrotik NAS-IP-Address=192.168.3.242 Service-Type=Login-User and on log I have this error [chap] Cleartext-Password is required for authentication ++[chap] returns invalid Failed to authenticate the user. Login incorrect (rlm_chap: Clear text password not available): [renato/<CHAP-Password>] what atributes I need to change? 2010/2/2 Alan DeKok <aland@deployingradius.com>
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. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Att. Alisson F. Gonçalves Sistemas de Informação - UFGD
participants (2)
-
Alan DeKok -
Alisson