2 Commits
Author SHA1 Message Date
gitea_admin cf98b8dd81 fix(freeradius): log no-IP rejection reason 2026-09-09 16:26:59 +02:00
gitea_admin 8217c2ee61 fix(freeradius): disable VLAN assignment 2026-09-09 13:27:05 +02:00
+11 -10
View File
@@ -446,6 +446,15 @@ authorize {
Pool-Name := "engineers-%{sql:SELECT split_part('%{User-Name}', '@', 2)}"
}
}
#
# HARD CHECK: must have IP
#
if (!&reply:Framed-IP-Address) {
update reply {
Reply-Message := "No IP assigned - access denied"
}
reject
}
# If you are using /etc/smbpasswd, and are also doing mschap authentication, the un-comment this line, and configure the 'smbpasswd' module.
# smbpasswd
@@ -800,18 +809,10 @@ post-auth {
sqlippool
}
#
# HARD CHECK: must have IP
#
if (!&reply:Framed-IP-Address) {
update reply {
Reply-Message := "No IP assigned - access denied"
}
reject
}
# Query VLAN ID from your DB
vlan_test
# VLAN assignment is no longer used
#vlan_test
# Create the CUI value and add the attribute to Access-Accept.
# Uncomment the line below if *returning* the CUI.