# timespan. Dynamic substitution is supported.
#
reply-message = "You are calling outside your allowed timespan\r\n"
-# reply-message = "Outside allowed timespan (%{check:Login-Time}), %{User-Name}\r\n"
+# reply-message = "Outside allowed timespan (%{control:Login-Time}), %{User-Name}\r\n"
# The minimum timeout (in seconds) a user is allowed
# to have. If the calculated timeout is lower we don't
# ## The ORDER BY clause of this query tries to allocate the same IP-address
# ## which user had last session...
# allocate-find = "SELECT framedipaddress FROM ${ippool_table} \
-# WHERE pool_name = '%{check:Pool-Name}' AND expiry_time < NOW() \
+# WHERE pool_name = '%{control:Pool-Name}' AND expiry_time < NOW() \
# ORDER BY (username <> '%{User-Name}'), (callingstationid <> '%{Calling-Station-Id}'), \
# expiry_time \
# LIMIT 1 \
## If you prefer to allocate a random IP address every time, use this query instead
allocate-find = "SELECT framedipaddress FROM ${ippool_table} \
- WHERE pool_name = '%{check:Pool-Name}' AND expiry_time = '0000-00-00 00:00:00' \
+ WHERE pool_name = '%{control:Pool-Name}' AND expiry_time = '0000-00-00 00:00:00' \
ORDER BY RAND() \
LIMIT 1 \
FOR UPDATE"
## This allows the module to differentiate between a full pool and no pool
## Note: If you are not running redundant pool modules this query may be commented
## out to save running this query every time an ip is not allocated.
-pool-check = "SELECT id FROM ${ippool_table} WHERE pool_name='%{check:Pool-Name}' LIMIT 1"
+pool-check = "SELECT id FROM ${ippool_table} WHERE pool_name='%{control:Pool-Name}' LIMIT 1"
## The ORDER BY clause of this query tries to allocate the same IP-address
## which user had last session...
allocate-find = "SELECT framedipaddress FROM ${ippool_table} \
- WHERE pool_name = '%{check:Pool-Name}' AND expiry_time < 'now'::timestamp(0) \
+ WHERE pool_name = '%{control:Pool-Name}' AND expiry_time < 'now'::timestamp(0) \
ORDER BY (username <> '%{SQL-User-Name}'), (callingstationid <> '%{Calling-Station-Id}'), expiry_time \
LIMIT 1 \
FOR UPDATE"
## This allows the module to differentiate between a full pool and no pool
## Note: If you are not running redundant pool modules this query may be commented
## out to save running this query every time an ip is not allocated.
- pool-check = "SELECT id FROM ${ippool_table} WHERE pool_name='%{check:Pool-Name}' LIMIT 1"
+ pool-check = "SELECT id FROM ${ippool_table} WHERE pool_name='%{control:Pool-Name}' LIMIT 1"
allocate-update = "UPDATE ${ippool_table} \