#ATTRIBUTE My-Local-String 3000 string
#ATTRIBUTE My-Local-IPAddr 3001 ipaddr
#ATTRIBUTE My-Local-Integer 3002 integer
+
+VENDOR example 65535
+
+BEGIN-VENDOR example
+ATTRIBUTE Example-Integer 1 integer
+ATTRIBUTE Example-String 2 string
+ATTRIBUTE Example-IP-Address 3 ipaddr
+
+VALUE Example-Integer Name1 1
+VALUE Example-Integer Name2 2
+
+END-VENDOR example
# field, so things like the following example will
# work.
#
- program = "/bin/echo %{User-Name}"
+ program = "/bin/echo 'Filter-Id := %{User-Name}'"
#
# The attributes which are placed into the
# restrictions as to availability, are the same as
# for the input_pairs.
#
- output_pairs = reply
+ output_pairs = coa
#
# When to execute the program. If the packet
+bob Cleartext-Password := "bob"
+ Session-Timeout := 1234,
+ Example-Integer := 6809
+
#
# Configuration file for the rlm_files module.
# Please see rlm_files(5) manpage for more information.
+<<<<<<< Updated upstream
+=======
+DEFAULT User-Name =~ "^([^@]+)@realm.com", NAS-IP-Address == "127.0.0.1"
+ User-Name := "%{1}"
+
+# hints
+>>>>>>> Stashed changes
#
# hints
#
(username, pass, reply, authdate) \
VALUES(\
'%{User-Name}', \
- '%{%{User-Password}:-Chap-Password}', \
+ '%{%{User-Password}:-%{Chap-Password}}', \
'%{reply:Packet-Type}', \
NOW())"
}
preacct {
preprocess
+ update coa {
+ User-Name="%{User-Name}"
+ Acct-Session-Id="%{%{Acct-Multi-Session-Id}:-%{Acct-Session-ID}}"
+ }
+
+ echo
+
+
#
# Merge Acct-[Input|Output]-Gigawords and Acct-[Input-Output]-Octets
# into a single 64bit counter Acct-[Input|Output]-Octets64.