Development
This commit is contained in:
parent
26a90fe1dc
commit
cb4e1933a7
2 changed files with 2 additions and 2 deletions
|
|
@ -264,7 +264,7 @@
|
|||
"label": "RADIUS Default",
|
||||
"name": "radius_default",
|
||||
"input_type": "checkbox",
|
||||
"hint": "Clients without a DHCP reservation will be placed into this VLAN (requires layer 3 switch). Note: current default is %RADIUS_DEFAULT_VLAN%."
|
||||
"hint": "Clients without a DHCP reservation will be placed into this VLAN. Note: current default is %RADIUS_DEFAULT_VLAN%."
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
|
|
|
|||
|
|
@ -1821,7 +1821,7 @@ def ensure_radius_secret():
|
|||
import secrets as _secrets
|
||||
secret = _secrets.token_urlsafe(32)
|
||||
RADIUS_SECRET_FILE.write_text(secret + "\n")
|
||||
RADIUS_SECRET_FILE.chmod(0o600)
|
||||
RADIUS_SECRET_FILE.chmod(0o644)
|
||||
print(f"Generated RADIUS shared secret: {RADIUS_SECRET_FILE}")
|
||||
return secret
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue