Community discussions

MikroTik App
 
RazorN
just joined
Topic Author
Posts: 9
Joined: Thu Feb 05, 2015 7:02 am

Hotspot +freeradius(radisudesk). Chap authentication trouble

Tue Mar 24, 2015 1:31 pm

Hi!
My english is not good? but i try to describe my problem
i have such situation:
I set up hotspot with radiusDesk(GUI for freeradius). All works fine! Now i have a task authentificate user from existing our email database... is it possible? passwords in email database is md5 encrypted. Someone said me that to authenticate hotspot users password in db must be clear-text. Is it true? Where was passwords match?
 
User avatar
ZeroByte
Forum Guru
Forum Guru
Posts: 4047
Joined: Wed May 11, 2011 6:08 pm

Re: Hotspot +freeradius(radisudesk). Chap authentication trouble

Tue Mar 24, 2015 5:17 pm

CHAP requires cleartext passwords in the user database.
PAP does not require cleartext passwords.
If your user DB has hashed passwords, then simply disable http-chap as a login method, and enable http-pap.

Here's why:
In CHAP authentication, the user agent sends a password hash, and not the password. So if the user types "mypass" into the password field on the login page, the RADIUS request will have some hash of 'mypass' in stead. The RADIUS server receives the request, and then takes the user's clear-text password from the DB, and hashes the password. If this hash matches the one the user sent, then the user's password was correct and authentication is completed.

In PAP authentication, the password submitted by the user attempting to log in is sent in the clear to the RADIUS server. The RADIUS server then hashes the attempted password and compares this hash to the one stored in the user DB. If the hashes match, then the user's password was correct and authentication is completed.

See the difference?
In CHAP - the radius server has no idea what the user actually typed as their attempt, so it must have unencrypted passwords to see if they hash the same way as the user's login request.
 
RazorN
just joined
Topic Author
Posts: 9
Joined: Thu Feb 05, 2015 7:02 am

Re: Hotspot +freeradius(radisudesk). Chap authentication trouble

Fri Mar 27, 2015 7:25 am

It works!!!!
Thanks for your help!!!
 
RazorN
just joined
Topic Author
Posts: 9
Joined: Thu Feb 05, 2015 7:02 am

Re: Hotspot +freeradius(radisudesk). Chap authentication trouble

Wed Apr 01, 2015 6:54 am

Another problem:
I created Hotspot with radius authentication and roaming using Mesh.
I saw that in some billing systems when hotspot users was login, in address list, creates dynamic items. after logout this dinamic item was deleted... Is it difficult dinamically add items to address list?
 
User avatar
PCNetworks
newbie
Posts: 35
Joined: Tue Feb 19, 2013 7:57 am
Location: California

Re: Hotspot +freeradius(radisudesk). Chap authentication trouble

Wed Apr 01, 2015 8:14 am

Another problem:
I created Hotspot with radius authentication and roaming using Mesh.
I saw that in some billing systems when hotspot users was login, in address list, creates dynamic items. after logout this dinamic item was deleted... Is it difficult dinamically add items to address list?
http://wiki.mikrotik.com/wiki/Manual:IP ... dress_list
 
RazorN
just joined
Topic Author
Posts: 9
Joined: Thu Feb 05, 2015 7:02 am

Re: Hotspot +freeradius(radisudesk). Chap authentication trouble

Fri Apr 03, 2015 2:46 pm

I tested it and all good, Mangle added dynamic items to address-list. I need it for add users to different groups. Now i don't now how can mangle rule can match to which group belongs user. Tarif name and group name in address list was identical Somehow can i add user to group(in address list) which identical with tarif name???

Who is online

Users browsing this forum: sbert and 40 guests