Browse Source

Add a radius realm (hard-coded for now)

Baptiste Jonglez 7 years ago
parent
commit
a7cb798cb3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/lib/dhcpsrv/radius_host_data_source.cc

+ 2 - 0
src/lib/dhcpsrv/radius_host_data_source.cc

@@ -190,6 +190,8 @@ RadiusHostDataSource::getAll(const Host::IdentifierType& identifier_type,
         tmp << std::setw(2) << std::setfill('0') << static_cast<unsigned int>(identifier_begin[i]);
         delim = true;
     }
+    // Add realm
+    tmp << "@radio.rezine.org";
     // Necessary because of variable lifetime, see https://stackoverflow.com/a/1374485/4113356
     const std::string tmp2 = tmp.str();
     const char* identifier_hex = tmp2.c_str();