I am now trying to run logging of accounting information into my database. I use FreeRadius. I have read at glance a few RFC for radius accounting and authentication, so I expect that it is not possible, but I want to ask. Is there any attribute for user's hostname? And if it is not, why?
-- 26. 2. update
Sorry for short info. I want to collect data about successful and unsuccessful login attempts to various devices/services inside our company network. In the future, login attempts will not be logged only from the radius server, but so far I am only testing wifi network with enterprise login via FreeRadius. When I log data from radius, I use accounting for successful attempts and authentication for rejected access. We also have a VPN server that only supports radius authentication, so for services without accounting support, all logging will be done by the authentication part. I prepared a simple database scheme and found the most interesting attributes from authentication and accounting and chose these: User-Name, Framed-IP-Address, Calling-Station-Id and NAS-IP-Address. For good overview, it would be nice to also have hostname of user device, but such an attribute is missing (I know that it may be sent some vendor-specific attributes, but they differ from various vendors, so I do not want to use them). When I have user's MAC address from Calling-Station-Id or IP address from Framed-IP-Address, I can look at DHCP leases, but getting the hostname from another database is more uncomfortable for me. So I am just curios why the hostname attribute is not part of radius protocol (I tried dumping accounting traffic, but I found just values which I expected).