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

« back to all changes in this revision

Viewing changes to raddb/sql/ndb/schema.sql

  • 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
###########################################################################
 
2
# $Id$                 #
 
3
#                                                                         #
 
4
#  schema.sql                       rlm_sql - FreeRADIUS SQL Module       #
 
5
#                                                                         #
 
6
#     Database schema for MySQL Cluster.                                  #
 
7
#     The only difference between this file and ../mysql/schema.sql       #
 
8
#     is the definition of the storage engine.                            #
 
9
#                                                                         #
 
10
#     To load:                                                            #
 
11
#         mysql -uroot -prootpass radius < schema.sql                     #
 
12
#                                                                         #
 
13
#                                   Mike Machado <mike@innercite.com>     #
 
14
###########################################################################
 
15
#
 
16
# Table structure for table 'radacct'
 
17
#
 
18
 
 
19
CREATE TABLE radacct (
 
20
  radacctid bigint(21) NOT NULL auto_increment,
 
21
  acctsessionid varchar(64) NOT NULL default '',
 
22
  acctuniqueid varchar(32) NOT NULL default '',
 
23
  username varchar(64) NOT NULL default '',
 
24
  groupname varchar(64) NOT NULL default '',
 
25
  realm varchar(64) default '',
 
26
  nasipaddress varchar(15) NOT NULL default '',
 
27
  nasportid varchar(15) default NULL,
 
28
  nasporttype varchar(32) default NULL,
 
29
  acctstarttime datetime NULL default NULL,
 
30
  acctstoptime datetime NULL default NULL,
 
31
  acctsessiontime int(12) default NULL,
 
32
  acctauthentic varchar(32) default NULL,
 
33
  connectinfo_start varchar(50) default NULL,
 
34
  connectinfo_stop varchar(50) default NULL,
 
35
  acctinputoctets bigint(20) default NULL,
 
36
  acctoutputoctets bigint(20) default NULL,
 
37
  calledstationid varchar(50) NOT NULL default '',
 
38
  callingstationid varchar(50) NOT NULL default '',
 
39
  acctterminatecause varchar(32) NOT NULL default '',
 
40
  servicetype varchar(32) default NULL,
 
41
  framedprotocol varchar(32) default NULL,
 
42
  framedipaddress varchar(15) NOT NULL default '',
 
43
  acctstartdelay int(12) default NULL,
 
44
  acctstopdelay int(12) default NULL,
 
45
  xascendsessionsvrkey varchar(10) default NULL,
 
46
  PRIMARY KEY  (radacctid),
 
47
  KEY username (username),
 
48
  KEY framedipaddress (framedipaddress),
 
49
  KEY acctsessionid (acctsessionid),
 
50
  KEY acctsessiontime (acctsessiontime),
 
51
  KEY acctuniqueid (acctuniqueid),
 
52
  KEY acctstarttime (acctstarttime),
 
53
  KEY acctstoptime (acctstoptime),
 
54
  KEY nasipaddress (nasipaddress)
 
55
) ENGINE=ndbcluster;
 
56
 
 
57
#
 
58
# Table structure for table 'radcheck'
 
59
#
 
60
 
 
61
CREATE TABLE radcheck (
 
62
  id int(11) unsigned NOT NULL auto_increment,
 
63
  username varchar(64) NOT NULL default '',
 
64
  attribute varchar(64)  NOT NULL default '',
 
65
  op char(2) NOT NULL DEFAULT '==',
 
66
  value varchar(253) NOT NULL default '',
 
67
  PRIMARY KEY  (id),
 
68
  KEY username (username(32))
 
69
) ENGINE=ndbcluster;
 
70
 
 
71
#
 
72
# Table structure for table 'radgroupcheck'
 
73
#
 
74
 
 
75
CREATE TABLE radgroupcheck (
 
76
  id int(11) unsigned NOT NULL auto_increment,
 
77
  groupname varchar(64) NOT NULL default '',
 
78
  attribute varchar(64)  NOT NULL default '',
 
79
  op char(2) NOT NULL DEFAULT '==',
 
80
  value varchar(253)  NOT NULL default '',
 
81
  PRIMARY KEY  (id),
 
82
  KEY groupname (groupname(32))
 
83
) ENGINE=ndbcluster;
 
84
 
 
85
#
 
86
# Table structure for table 'radgroupreply'
 
87
#
 
88
 
 
89
CREATE TABLE radgroupreply (
 
90
  id int(11) unsigned NOT NULL auto_increment,
 
91
  groupname varchar(64) NOT NULL default '',
 
92
  attribute varchar(64)  NOT NULL default '',
 
93
  op char(2) NOT NULL DEFAULT '=',
 
94
  value varchar(253)  NOT NULL default '',
 
95
  PRIMARY KEY  (id),
 
96
  KEY groupname (groupname(32))
 
97
) ENGINE=ndbcluster;
 
98
 
 
99
#
 
100
# Table structure for table 'radreply'
 
101
#
 
102
 
 
103
CREATE TABLE radreply (
 
104
  id int(11) unsigned NOT NULL auto_increment,
 
105
  username varchar(64) NOT NULL default '',
 
106
  attribute varchar(64) NOT NULL default '',
 
107
  op char(2) NOT NULL DEFAULT '=',
 
108
  value varchar(253) NOT NULL default '',
 
109
  PRIMARY KEY  (id),
 
110
  KEY username (username(32))
 
111
) ENGINE=ndbcluster;
 
112
 
 
113
 
 
114
#
 
115
# Table structure for table 'radusergroup'
 
116
#
 
117
 
 
118
CREATE TABLE radusergroup (
 
119
  username varchar(64) NOT NULL default '',
 
120
  groupname varchar(64) NOT NULL default '',
 
121
  priority int(11) NOT NULL default '1',
 
122
  KEY username (username(32))
 
123
) ENGINE=ndbcluster;
 
124
 
 
125
#
 
126
# Table structure for table 'radpostauth'
 
127
#
 
128
 
 
129
CREATE TABLE radpostauth (
 
130
  id int(11) NOT NULL auto_increment,
 
131
  username varchar(64) NOT NULL default '',
 
132
  pass varchar(64) NOT NULL default '',
 
133
  reply varchar(32) NOT NULL default '',
 
134
  authdate timestamp NOT NULL,
 
135
  PRIMARY KEY  (id)
 
136
) ENGINE=ndbcluster;