Hello, I’ve just migrated all my clients to CAPsMAN setup. Previously I had all my routers just as bridges pointing all the traffic to the Linux GW. On the gw I had FreeRadius server proxying requests to two PDCs (Windows domains) based on the user’s realm. I had an ISC DHCP server running on that gateway as well. In a cron job I run a script sorting two log files together (dhcpd.log and radiusd.log) to get the last IP leased for the authenticated user. So I get the list (in my case SQL table) with IP, Radius user name, MAC and time it was leased.
Now I run DHCP server on the CAPsMAN node and users are authenticated against the FreeRadius server. All works - except now I have no idea how to pair username+mac+IP. I took a look at MT wiki to see there is an option to take IP from a radius server request. But as far as I understand it - it only sends station MAC addr as username. So it does not give me desired pair username-mac+IP.
The second glance to the wiki showed me the possibility to run lease script - but I don’t know where to get info about mac-username - maybe I can comb the log on the CAPsMAN if I enable deeper logging for the radius client - but I don’t want to re-discover merika ![]()
The goal for this is to make a list - or better fill a SQL table with such information I can easily tell who and when got the IP and who uses what station mac address (password sharing leads to the multiple mac-username entries which I want to eliminate).