bug 1391: corrected value check
[cacert-mgr.git] / dbadm / ca_mgr.mysql
1 -- MySQL dump 10.11
2 --
3 -- Host: localhost Database: ca_mgr
4 -- ------------------------------------------------------
5 -- Server version 5.0.51a-24+lenny2-log
6
7 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
8 /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
9 /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
10 /*!40101 SET NAMES utf8 */;
11 /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
12 /*!40103 SET TIME_ZONE='+00:00' */;
13 /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
14 /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
15 /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
16 /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
17
18 --
19 -- Table structure for table `front_session`
20 --
21
22 DROP TABLE IF EXISTS `front_session`;
23 SET @saved_cs_client = @@character_set_client;
24 SET character_set_client = utf8;
25 CREATE TABLE `front_session` (
26 `id` char(32) collate utf8_unicode_ci NOT NULL default '',
27 `modified` int(11) default NULL,
28 `lifetime` int(11) default NULL,
29 `data` text collate utf8_unicode_ci,
30 PRIMARY KEY (`id`)
31 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
32 SET character_set_client = @saved_cs_client;
33
34 --
35 -- Dumping data for table `front_session`
36 --
37
38 LOCK TABLES `front_session` WRITE;
39 /*!40000 ALTER TABLE `front_session` DISABLE KEYS */;
40 /*!40000 ALTER TABLE `front_session` ENABLE KEYS */;
41 UNLOCK TABLES;
42
43 --
44 -- Table structure for table `system_config`
45 --
46
47 DROP TABLE IF EXISTS `system_config`;
48 SET @saved_cs_client = @@character_set_client;
49 SET character_set_client = utf8;
50 CREATE TABLE `system_config` (
51 `id` bigint(20) NOT NULL auto_increment,
52 `config_key` varchar(128) collate utf8_unicode_ci NOT NULL,
53 `config_value` varchar(255) collate utf8_unicode_ci NOT NULL,
54 PRIMARY KEY (`id`)
55 ) ENGINE=MyISAM AUTO_INCREMENT=619 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
56 SET character_set_client = @saved_cs_client;
57
58 --
59 -- Dumping data for table `system_config`
60 --
61
62 LOCK TABLES `system_config` WRITE;
63 /*!40000 ALTER TABLE `system_config` DISABLE KEYS */;
64 INSERT INTO `system_config` VALUES (588,'log.file.name','/tmp/ca_mgr.log'),(589,'log.file.enabled','0'),(590,'log.syslog.facility','128'),(591,'log.syslog.enabled','1'),(592,'log.priority','7'),(624,'imap.port','143'),(623,'log.application','ca_mgr'),(622,'imap.use_tls','1'),(621,'imap.password','cacertmail'),(620,'imap.username','cacertmail'),(619,'imap.mailhost','localhost');
65 /*!40000 ALTER TABLE `system_config` ENABLE KEYS */;
66 UNLOCK TABLES;
67
68 --
69 -- Table structure for table `system_resource`
70 --
71
72 DROP TABLE IF EXISTS `system_resource`;
73 SET @saved_cs_client = @@character_set_client;
74 SET character_set_client = utf8;
75 CREATE TABLE `system_resource` (
76 `id` bigint(20) NOT NULL auto_increment,
77 `resource` varchar(45) collate utf8_unicode_ci NOT NULL COMMENT 'Name of the resource',
78 `inherit_resource` varchar(45) collate utf8_unicode_ci default NULL COMMENT 'Resource inherits from another resource',
79 PRIMARY KEY (`id`)
80 ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='resources to which access can be granted (see system_roles)';
81 SET character_set_client = @saved_cs_client;
82
83 --
84 -- Dumping data for table `system_resource`
85 --
86
87 LOCK TABLES `system_resource` WRITE;
88 /*!40000 ALTER TABLE `system_resource` DISABLE KEYS */;
89 /*!40000 ALTER TABLE `system_resource` ENABLE KEYS */;
90 UNLOCK TABLES;
91
92 --
93 -- Table structure for table `system_role`
94 --
95
96 DROP TABLE IF EXISTS `system_role`;
97 SET @saved_cs_client = @@character_set_client;
98 SET character_set_client = utf8;
99 CREATE TABLE `system_role` (
100 `id` bigint(20) NOT NULL auto_increment,
101 `role` varchar(45) collate utf8_unicode_ci NOT NULL COMMENT 'Name of an role, these roles can then be assigned to users.',
102 `inherit_role` varchar(45) collate utf8_unicode_ci default NULL COMMENT 'Role inherits from another role',
103 PRIMARY KEY (`id`)
104 ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Define the roles, never assign permissions directly';
105 SET character_set_client = @saved_cs_client;
106
107 --
108 -- Dumping data for table `system_role`
109 --
110
111 LOCK TABLES `system_role` WRITE;
112 /*!40000 ALTER TABLE `system_role` DISABLE KEYS */;
113 INSERT INTO `system_role` VALUES (1,'User',''),(2,'Admin','User');
114 /*!40000 ALTER TABLE `system_role` ENABLE KEYS */;
115 UNLOCK TABLES;
116
117 --
118 -- Table structure for table `system_role_has_system_resource`
119 --
120
121 DROP TABLE IF EXISTS `system_role_has_system_resource`;
122 SET @saved_cs_client = @@character_set_client;
123 SET character_set_client = utf8;
124 CREATE TABLE `system_role_has_system_resource` (
125 `system_role_id` bigint(20) NOT NULL,
126 `system_resource_id` bigint(20) NOT NULL,
127 `priority` int(10) unsigned NOT NULL default '1' COMMENT 'Allow and deny statements can be piled, which makes the order of statements important.',
128 `permission` enum('allow','deny') collate utf8_unicode_ci NOT NULL default 'allow' COMMENT 'Grant permission or deny, defaults to grant',
129 `privilege` set('view','edit','administrate') collate utf8_unicode_ci NOT NULL default 'view' COMMENT 'Privilege to grant or deny',
130 PRIMARY KEY (`system_role_id`,`system_resource_id`),
131 KEY `fk_system_role_has_system_resource_system_role1` (`system_role_id`),
132 KEY `fk_system_role_has_system_resource_system_resource1` (`system_resource_id`),
133 CONSTRAINT `fk_system_role_has_system_resource_system_resource1` FOREIGN KEY (`system_resource_id`) REFERENCES `system_resource` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
134 CONSTRAINT `fk_system_role_has_system_resource_system_role1` FOREIGN KEY (`system_role_id`) REFERENCES `system_role` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
135 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
136 SET character_set_client = @saved_cs_client;
137
138 --
139 -- Dumping data for table `system_role_has_system_resource`
140 --
141
142 LOCK TABLES `system_role_has_system_resource` WRITE;
143 /*!40000 ALTER TABLE `system_role_has_system_resource` DISABLE KEYS */;
144 /*!40000 ALTER TABLE `system_role_has_system_resource` ENABLE KEYS */;
145 UNLOCK TABLES;
146
147 --
148 -- Table structure for table `system_user`
149 --
150
151 DROP TABLE IF EXISTS `system_user`;
152 SET @saved_cs_client = @@character_set_client;
153 SET character_set_client = utf8;
154 CREATE TABLE `system_user` (
155 `id` bigint(20) NOT NULL auto_increment,
156 `system_role_id` bigint(20) NOT NULL,
157 `login` varchar(255) collate utf8_unicode_ci NOT NULL default '',
158 `user_client_crt_s_dn_i_dn` varchar(128) collate utf8_unicode_ci NOT NULL,
159 PRIMARY KEY (`id`),
160 KEY `fk_system_user_system_role1` (`system_role_id`),
161 CONSTRAINT `fk_system_user_system_role1` FOREIGN KEY (`system_role_id`) REFERENCES `system_role` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
162 ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
163 SET character_set_client = @saved_cs_client;
164
165 --
166 -- Dumping data for table `system_user`
167 --
168
169 LOCK TABLES `system_user` WRITE;
170 /*!40000 ALTER TABLE `system_user` DISABLE KEYS */;
171 INSERT INTO `system_user` VALUES (1,2,'cacert1@quarkus.de','/CN=Markus Warg/emailAddress=markus@cacert.org///O=CAcert Inc./OU=http://www.CAcert.org/CN=CAcert Class 3 Root');
172 /*!40000 ALTER TABLE `system_user` ENABLE KEYS */;
173 UNLOCK TABLES;
174 /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
175
176 /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
177 /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
178 /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
179 /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
180 /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
181 /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
182 /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
183
184 -- Dump completed on 2010-04-13 10:51:41