Hi,
I have an authorization module to write for FreeRADIUS that does a fair amount of CPU intensive SQL queries 1-2 seconds time. But the problem is that when a 802.1x authentication is occuring this event occurs many times 4-5 times at each reception of RADIUS Access Request. Also, at that time the username is not the final one (normally the final one is sent within the MSCHAPv2 from within the TLS tunnel used by PEAP or EAP-TLS or EAP-TTLS).
Is there a way for my authorization module to trigger the work to be done only if EAP is at the stage of handling the internal authentication? Can for example my module communicate with the EAP module and look at an internal flag somewhere to know if the TLS tunnel has been completed?