Add the possibility to send the Virtual Hub Name to a RADIUS server as NAS-Identifier

This commit is contained in:
Mykhaylo Yehorov committed 2015-07-26 22:46:00 +03:00
1 parent 7e00268084
commit 7772ee119e
7 files changed
+24 -1

No files matched your search

+4
View File
@@ -1653,6 +1653,10 @@ bool ServerAccept(CONNECTION *c)
if (hub->Option != NULL)
{
radius_login_opt.In_CheckVLanId = hub->Option->AssignVLanIdByRadiusAttribute;
if (hub->Option->UseHubNameAsRadiusNasId == true)
{
StrCpy(radius_login_opt.NasId, sizeof(radius_login_opt.NasId), hubname);
}
}
// Get the various flags