[PATCH] policy.conf rewrite.called_station_id fix
Alexander Clouter
alex at digriz.org.uk
Fri Aug 19 16:09:53 CEST 2011
For 802.11 sessions Called-Station-Id is typically
'00-11-22-33-44-55:foobar'. However, after calling
rewrite.called_station_id it is re-written to
'00-11-22-33-44-55::foobar' as the regex grouping captures the ':' too.
The patch below prevents the addition of this extra.
Signed-off-by: Alexander Clouter <alex at digriz.org.uk>
diff --git a/raddb/policy.conf b/raddb/policy.conf
index 73b1951..ece72b1 100644
--- a/raddb/policy.conf
+++ b/raddb/policy.conf
@@ -171,7 +171,7 @@ policy {
# SSID component?
if ("%{7}") {
update request {
- Called-Station-Id := "%{Called-Station-Id}:%{7}"
+ Called-Station-Id := "%{Called-Station-Id}%{7}"
}
}
updated
More information about the Freeradius-Devel
mailing list