Hotspot - Add new field on login and post to Freeradius

Hi all,

To change the html of the hotspot login everybody knows, but how can I add a 3rd field and make Mikrotik post this field to Freeradius ?

In my case, I am in a hotel, I need the extra field to ask the checkout date of the guest, and on my Freeradius, do the validation based on the login & password & checkoutDate .

How is that possible ?

cheers

If you want to allow access until a certain date/time, then you should look at returning this when the client logs in.
WISPr-Session-Terminate-Time
http://wiki.mikrotik.com/wiki/Manual:RADIUS_Client

If that date/time has not passed, then the client can login. If the date/time has passed, the user will be denied access, even if the radius server returns Access-Accept.

Surfer,

About the Date to limit works, but my problem is as I am in a hotel, I use the lastname and room number as login. I need to make the login unique, so in case of two people with the same lastname and staying in the same room (but in different dates), only the most recent login will work.

For data I need to ask the CheckOut date, so I can identify which login is the old one and which one is the new one. So in case the old client comes to the hotel, he won’t be able to use his login once the checkout date is not the same of the current guest.

I need to find out a way to add this CheckOut date in the login and make Mikrotik to send it to Freeradius, in Freeradius I need to modify to get this parameter and use in the validation.

This is the solution that I’ve found, I havent found any example how to use the hotspot in hotels and contemplate this situation, if you know, please , let me know, because my solution is giving really hard time to finish!

You might want to step back and evaluate that username format again. If there is a possibility of the same last name in a specific hotel room, then don’t use that. Use the room number and the arrival date as the username. If you have a duplicate there, then you have more problems than the free wireless connection.

Maybe use the last name as part of the password.

Good point Surfer.

It’s amazing see how we sometimes go to the hard solution when there is a easy one!

Concatenate lastname & roomnumber and use the checkout date as password will work!

thanks