Debian Codegraph @

raddb/mods-config/sql/main/mysql/extras/wimax/queries.conf

raw
1 # -*- text -*-
2 ##
3 ## wimax.conf -- MySQL configuration for WiMAX keying
4 ##
5 ## $Id: 26942305017c59d4589d0645cfc79405b98b4c6a $
6
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.-_: /"
11
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.
19 #
20 # Uncomment the next line, if you want the sql_user_name to mean:
21 #
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}}"
26 #
27 sql_user_name = "%{User-Name}"
28
29 #######################################################################
30 # Logging of WiMAX SPI -> key mappings
31 #######################################################################
32 # postauth_query - Insert some info after authentication
33 #######################################################################
34
35 postauth_query = "INSERT INTO wimax \
36 (username, authdate, spi, mipkey, lifetime) \
37 VALUES ( \
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}' )"