Commit 53eccbbc authored by Leigh B Stoller's avatar Leigh B Stoller

Add new geni_cas table to store the root certificates of those CA who

have been approved. Only used by the Clearinghouse to control who gets
a credential to access the Clearinghouse. This is part of the changes
to fully automate the installation of new ProtoGENI sites.
parent cd191e4d
......@@ -178,6 +178,16 @@ CREATE TABLE `geni_crls` (
PRIMARY KEY (`uuid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `geni_cas`;
CREATE TABLE `geni_cas` (
`hash` varchar(40) NOT NULL default '',
`created` datetime default NULL,
`cert` text,
`DN` text,
PRIMARY KEY (`hash`),
INDEX `DN` (`DN`(255))
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
CREATE TABLE `geni_manifests` (
`idx` int(10) unsigned NOT NULL auto_increment,
`slice_uuid` varchar(40) NOT NULL default '',
......
#
# Add a geni_cas table, for use by the CH only.
#
use strict;
use GeniDB;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
DBSetDefault($dbhandle);
if (!DBTableExists("geni_cas")) {
DBQueryFatal("CREATE TABLE `geni_cas` ( ".
" `hash` varchar(40) NOT NULL default '', ".
" `created` datetime default NULL, ".
" `cert` text, ".
" `DN` text, ".
" PRIMARY KEY (`hash`), ".
" INDEX `DN` (`DN`(255)) ".
") ENGINE=MyISAM DEFAULT CHARSET=latin1");
}
return 0;
}
1;
# Local Variables:
# mode:perl
# End:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment