Hi all,
I’m using MK (Mikrotik) as hotspot authenticator in a university campus. MK act as NAS (RADIUS client), reading data on freeRADIUS, that gets user’s attribute from openLDAP. What I would like to do is to set an expiration date for accounts on LDAP, but I cannot see this field on MT, so it seems that MK is not able to check if the account is still valid or if it has already expired. ![]()
Is there a way to solve the problem?
Regards
You have to extend your queries on the FreeRADIUS to check if the account is not expired when an Auth-Request is coming in.
Sorry, haven’t used FreeRADIUS with LDAP so far, so can’t give any more hints. Using an SQL database for account storage this would be extending the appropriate SQL queries…
Best regards,
Christian Meis
You should be able to do this in FreeRadius using the rlm_counter module.