# 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
}
#
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}'}"
}
}