Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2062 → Rev 2063

/conf/empty-radiusd-db.sql
24,7 → 24,7
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mtotacct` (
`MTotAcctId` bigint(21) NOT NULL AUTO_INCREMENT,
`UserName` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`UserName` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
`AcctDate` date NOT NULL DEFAULT '0000-00-00',
`ConnNum` bigint(12) DEFAULT NULL,
`ConnTotDuration` bigint(12) DEFAULT NULL,
32,13 → 32,13
`ConnMinDuration` bigint(12) DEFAULT NULL,
`InputOctets` bigint(12) DEFAULT NULL,
`OutputOctets` bigint(12) DEFAULT NULL,
`NASIPAddress` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL,
`NASIPAddress` varchar(15) COLLATE utf8_bin DEFAULT NULL,
PRIMARY KEY (`MTotAcctId`),
KEY `UserName` (`UserName`),
KEY `AcctDate` (`AcctDate`),
KEY `UserOnDate` (`UserName`,`AcctDate`),
KEY `NASIPAddress` (`NASIPAddress`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
 
--
50,31 → 50,31
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `radacct` (
`radacctid` bigint(21) NOT NULL AUTO_INCREMENT,
`acctsessionid` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`acctuniqueid` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`username` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`groupname` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`realm` varchar(64) COLLATE utf8_unicode_ci DEFAULT '',
`nasipaddress` varchar(15) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`nasportid` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL,
`nasporttype` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
`acctsessionid` varchar(32) COLLATE utf8_bin NOT NULL DEFAULT '',
`acctuniqueid` varchar(32) COLLATE utf8_bin NOT NULL DEFAULT '',
`username` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
`groupname` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
`realm` varchar(64) COLLATE utf8_bin DEFAULT '',
`nasipaddress` varchar(15) COLLATE utf8_bin NOT NULL DEFAULT '',
`nasportid` varchar(15) COLLATE utf8_bin DEFAULT NULL,
`nasporttype` varchar(32) COLLATE utf8_bin DEFAULT NULL,
`acctstarttime` datetime DEFAULT NULL,
`acctstoptime` datetime DEFAULT NULL,
`acctsessiontime` int(12) DEFAULT NULL,
`acctauthentic` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
`connectinfo_start` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`connectinfo_stop` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`acctauthentic` varchar(32) COLLATE utf8_bin DEFAULT NULL,
`connectinfo_start` varchar(50) COLLATE utf8_bin DEFAULT NULL,
`connectinfo_stop` varchar(50) COLLATE utf8_bin DEFAULT NULL,
`acctinputoctets` bigint(20) DEFAULT NULL,
`acctoutputoctets` bigint(20) DEFAULT NULL,
`calledstationid` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`callingstationid` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`acctterminatecause` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`servicetype` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
`framedprotocol` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
`framedipaddress` varchar(15) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`calledstationid` varchar(50) COLLATE utf8_bin NOT NULL DEFAULT '',
`callingstationid` varchar(50) COLLATE utf8_bin NOT NULL DEFAULT '',
`acctterminatecause` varchar(32) COLLATE utf8_bin NOT NULL DEFAULT '',
`servicetype` varchar(32) COLLATE utf8_bin DEFAULT NULL,
`framedprotocol` varchar(32) COLLATE utf8_bin DEFAULT NULL,
`framedipaddress` varchar(15) COLLATE utf8_bin NOT NULL DEFAULT '',
`acctstartdelay` int(12) DEFAULT NULL,
`acctstopdelay` int(12) DEFAULT NULL,
`xascendsessionsvrkey` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
`xascendsessionsvrkey` varchar(10) COLLATE utf8_bin DEFAULT NULL,
PRIMARY KEY (`radacctid`),
KEY `username` (`username`),
KEY `framedipaddress` (`framedipaddress`),
84,7 → 84,7
KEY `acctstarttime` (`acctstarttime`),
KEY `acctstoptime` (`acctstoptime`),
KEY `nasipaddress` (`nasipaddress`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
 
--
96,13 → 96,13
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `radcheck` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`attribute` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`op` char(2) COLLATE utf8_unicode_ci NOT NULL DEFAULT '==',
`value` varchar(253) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`username` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
`attribute` varchar(32) COLLATE utf8_bin NOT NULL DEFAULT '',
`op` char(2) COLLATE utf8_bin NOT NULL DEFAULT '==',
`value` varchar(253) COLLATE utf8_bin NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
KEY `username` (`username`(32))
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
 
--
114,13 → 114,13
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `radgroupcheck` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`groupname` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`attribute` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`op` char(2) COLLATE utf8_unicode_ci NOT NULL DEFAULT '==',
`value` varchar(253) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`groupname` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
`attribute` varchar(32) COLLATE utf8_bin NOT NULL DEFAULT '',
`op` char(2) COLLATE utf8_bin NOT NULL DEFAULT '==',
`value` varchar(253) COLLATE utf8_bin NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
KEY `groupname` (`groupname`(32))
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
 
--
132,13 → 132,13
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `radgroupreply` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`groupname` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`attribute` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`op` char(2) COLLATE utf8_unicode_ci NOT NULL DEFAULT '=',
`value` varchar(253) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`groupname` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
`attribute` varchar(32) COLLATE utf8_bin NOT NULL DEFAULT '',
`op` char(2) COLLATE utf8_bin NOT NULL DEFAULT '=',
`value` varchar(253) COLLATE utf8_bin NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
KEY `groupname` (`groupname`(32))
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
 
--
150,11 → 150,11
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `radpostauth` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`reply` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`username` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
`reply` varchar(32) COLLATE utf8_bin NOT NULL DEFAULT '',
`authdate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
 
--
166,13 → 166,13
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `radreply` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`attribute` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`op` char(2) COLLATE utf8_unicode_ci NOT NULL DEFAULT '=',
`value` varchar(253) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`username` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
`attribute` varchar(32) COLLATE utf8_bin NOT NULL DEFAULT '',
`op` char(2) COLLATE utf8_bin NOT NULL DEFAULT '=',
`value` varchar(253) COLLATE utf8_bin NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
KEY `username` (`username`(32))
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
 
--
183,11 → 183,11
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `radusergroup` (
`username` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`groupname` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`username` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
`groupname` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
`priority` int(11) NOT NULL DEFAULT '1',
KEY `username` (`username`(32))
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
 
--
199,7 → 199,7
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `totacct` (
`TotAcctId` bigint(21) NOT NULL AUTO_INCREMENT,
`UserName` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`UserName` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
`AcctDate` date NOT NULL DEFAULT '0000-00-00',
`ConnNum` bigint(12) DEFAULT NULL,
`ConnTotDuration` bigint(12) DEFAULT NULL,
207,7 → 207,7
`ConnMinDuration` bigint(12) DEFAULT NULL,
`InputOctets` bigint(12) DEFAULT NULL,
`OutputOctets` bigint(12) DEFAULT NULL,
`NASIPAddress` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL,
`NASIPAddress` varchar(15) COLLATE utf8_bin DEFAULT NULL,
PRIMARY KEY (`TotAcctId`),
KEY `UserName` (`UserName`),
KEY `AcctDate` (`AcctDate`),
214,7 → 214,7
KEY `UserOnDate` (`UserName`,`AcctDate`),
KEY `NASIPAddress` (`NASIPAddress`),
KEY `NASIPAddressOnDate` (`AcctDate`,`NASIPAddress`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
 
--
226,17 → 226,17
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `userinfo` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`UserName` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
`Name` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
`Mail` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
`Department` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
`WorkPhone` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
`HomePhone` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
`Mobile` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
`UserName` varchar(64) COLLATE utf8_bin DEFAULT NULL,
`Name` varchar(200) COLLATE utf8_bin DEFAULT NULL,
`Mail` varchar(200) COLLATE utf8_bin DEFAULT NULL,
`Department` varchar(200) COLLATE utf8_bin DEFAULT NULL,
`WorkPhone` varchar(200) COLLATE utf8_bin DEFAULT NULL,
`HomePhone` varchar(200) COLLATE utf8_bin DEFAULT NULL,
`Mobile` varchar(200) COLLATE utf8_bin DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `UserName` (`UserName`),
KEY `Department` (`Department`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;