3
## wimax.conf -- MySQL configuration for WiMAX keying
7
# Safe characters list for sql queries. Everything else is replaced
8
# with their mime-encoded equivalents.
9
# The default list should be ok
10
#safe-characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /"
12
#######################################################################
13
# Query config: Username
14
#######################################################################
15
# This is the username that will get substituted, escaped, and added
16
# as attribute 'SQL-User-Name'. '%{SQL-User-Name}' should be used below
17
# everywhere a username substitution is needed so you you can be sure
18
# the username passed from the client is escaped properly.
20
# Uncomment the next line, if you want the sql_user_name to mean:
22
# Use Stripped-User-Name, if it's there.
23
# Else use User-Name, if it's there,
24
# Else use hard-coded string "DEFAULT" as the user name.
25
#sql_user_name = "%{%{Stripped-User-Name}:-%{%{User-Name}:-DEFAULT}}"
27
sql_user_name = "%{User-Name}"
29
#######################################################################
30
# Logging of WiMAX SPI -> key mappings
31
#######################################################################
32
# postauth_query - Insert some info after authentication
33
#######################################################################
35
postauth_query = "INSERT INTO wimax \
36
(username, authdate, spi, mipkey, lifetime) \
38
'%{User-Name}', '%S' \
39
'%{%{reply:WiMAX-MN-hHA-MIP4-SPI}:-%{reply:WiMAX-MN-hHA-MIP6-SPI}}', \
40
'%{%{reply:WiMAX-MN-hHA-MIP4-Key}:-%{reply:WiMAX-MN-hHA-MIP6-Key}}', '%{%{reply:Session-Timeout}:-86400}' )"