]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Minor fixes as posted to list
authorArran Cudbard-Bell <a.cudbardb@gmail.com>
Thu, 28 Jun 2012 08:20:13 +0000 (10:20 +0200)
committerArran Cudbard-Bell <a.cudbardb@gmail.com>
Thu, 28 Jun 2012 08:20:13 +0000 (10:20 +0200)
raddb/policy.conf

index 375353bd8ddc766098fa711c1208f0181680576d..752d82ea1c4dd02086edbf400b9941fe8ca882a1 100644 (file)
@@ -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}'}"
                        }
                }