#
# The following policies are for the Chargeable-User-Identity
# (CUI) configuration.
+
+ #
+ # The policies below can be called as just 'cui' (not cui.authorize etc..)
+ # from the various config sections.
#
#
# The client indicates it can do CUI by sending a CUI attribute
# containing one zero byte
#
- cui_authorize {
+ cui.authorize {
update request {
Chargeable-User-Identity:='\\000'
}
# Add a CUI attribute based on the User-Name, and a secret key
# known only to this server.
#
- cui_postauth {
+ cui.postauth {
if (FreeRadius-Proxied-To == 127.0.0.1) {
if (outer.request:Chargeable-User-Identity) {
update outer.reply {
}
}
- #
- # If there is a CUI attribute in the reply, add it to the DB.
- #
- cui_updatedb {
- if (reply:Chargeable-User-Identity) {
- cui
- }
- }
#
# If we had stored a CUI for the User, add it to the request.
#
- cui_accounting {
+ cui.accounting {
#
# If the CUI isn't in the packet, see if we can find it
# in the DB.
}
#
+ # If there is a CUI attribute in the reply, add it to the DB.
+ #
+ cui_updatedb {
+ if (reply:Chargeable-User-Identity) {
+ cui
+ }
+ }
+
+ #
# Normalize the MAC Addresses in the Calling/Called-Station-Id
#
mac-addr-regexp = ([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})