From: Arran Cudbard-Bell Date: Thu, 28 Jun 2012 08:20:13 +0000 (+0200) Subject: Minor fixes as posted to list X-Git-Tag: release_3_0_0_beta0~143 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a43b8b2950f73e197caae38800b717755e5f38fc;p=thirdparty%2Ffreeradius-server.git Minor fixes as posted to list --- diff --git a/raddb/policy.conf b/raddb/policy.conf index 375353bd8dd..752d82ea1c4 100644 --- a/raddb/policy.conf +++ b/raddb/policy.conf @@ -268,9 +268,9 @@ policy { # Realm begins with a dot # e.g. "user@.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 @@ policy { # if (!Chargeable-User-Identity) { update request { - 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}'}" } }