~ubuntu-branches/ubuntu/natty/freeradius/natty-updates

« back to all changes in this revision

Viewing changes to raddb/sql/mysql/wimax.conf

  • Committer: Bazaar Package Importer
  • Author(s): Josip Rodin
  • Date: 2009-11-23 03:57:37 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 28.
  • Revision ID: james.westby@ubuntu.com-20091123035737-zsgtzhfych8hir68
Tags: 2.1.7+dfsg-1
* Adopting the package, closes: #536623.
* New upstream version, closes: #513484.
  + Fixes the blooper in unlang evaluation logic, closes: #526175.
* Used quilt (and added README.source), and moved upstream file patching
  into debian/patches/. The source is no longer in collab-maint git
  (to make it simpler for me to finally get this out the door), but
  kept the .gitignore should we need that again.
* Dropped the dialup_admin/bin/backup_radacct patch (integrated upstream).
* Dropped the raddb/Makefile patch (problem no longer exists upstream).
* Dropped the lib/packet.c lib/radius.c main/listen.c patches (was from
  upstream 2.0.5 anyway).
* Dropped references to otp.conf, it no longer exists upstream.
  Keep removing the conffile statoverride in prerm.
* Dropped references to snmp.conf, it no longer exists upstream.
  Keep removing the conffile statoverride in prerm.
* Ship /etc/freeradius/modules/* in the freeradius package.
* Stop shipping sites-enabled symlinks in the package and instead create
  them only on initial install, thanks to Matej Vela, closes: #533396.
* Add export PATH="${PATH:+$PATH:}/usr/sbin:/sbin" to the init script
  at the request of John Morrissey, closes: #550143.
* Stop installing /var/run/freeradius in the package to silence Lintian.
  The init script already recreates it at will.
* Remove executable bit from example.pl to silence Lintian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- text -*-
 
2
##
 
3
## wimax.conf -- MySQL configuration for WiMAX keying
 
4
##
 
5
##      $Id$
 
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}' )"