GIT HEAD policy.conf
alan buxey
A.L.M.Buxey at lboro.ac.uk
Wed Jun 27 12:59:35 CEST 2012
hi,
minor patch applied:
--- policy.conf 2012-06-14 12:21:44.431408916 +0100
+++ /tmp/policy.conf 2012-06-27 11:53:09.170949750 +0100
@@ -268,9 +268,9 @@
# Realm begins with a dot
# e.g. "user at .site.com"
#
- if (User-Name !~ /@\\./) {
+ if (User-Name =~ /@\\./) {
update reply {
- Reply-Message+ = "Rejected: Realm begins with a dot"
+ Reply-Message += "Rejected: Realm begins with a dot"
}
reject
}
@@ -326,7 +326,7 @@
#
if (!Chargeable-User-Identity) {
update control {
- Chargable-User-Identity := "%{cui: SELECT cui FROM cui WHERE clientipaddress = '%{Client-IP-Address}' AND callingstationid = '%{Calling-Station-Id}' AND username = '%{User-Name}'}"
+ Chargeable-User-Identity := "%{cui: SELECT cui FROM cui WHERE clientipaddress = '%{Client-IP-Address}' AND callingstationid = '%{Calling-Station-Id}' AND username = '%{User-Name}'}"
}
}
1) fixes wrong check
2) fixes wrong operator (typo/space)
3) fixes speeling mistak in Chargeable-User-Identity
server now runs again
alan
More information about the Freeradius-Devel
mailing list