Commit 0ee6abf7f4ca4154d060dc246ccdea0fbf22bb17
Merge branch 'master' of https://git.myonline.hu/pty/smbind-ng
Showing
3 changed files
with
23 additions
and
11 deletions
INSTALL.md
| @@ -42,17 +42,25 @@ by owned group. | @@ -42,17 +42,25 @@ by owned group. | ||
| 42 | 2. Create a file with same permissions in this directory for saving zone | 42 | 2. Create a file with same permissions in this directory for saving zone |
| 43 | definitions - eg. | 43 | definitions - eg. |
| 44 | *touch smbind-ng.conf.* | 44 | *touch smbind-ng.conf.* |
| 45 | -3. Create a subdirectory for keeping zone files with same permissions at the | ||
| 46 | -step 1. | 45 | +3. Create a subdirectory for keeping zone files with write permissions by |
| 46 | +www-data and bind group. | ||
| 47 | 47 | ||
| 48 | ### Modify bind configuration | 48 | ### Modify bind configuration |
| 49 | On your bind options set this folder to use with *directory* option and | 49 | On your bind options set this folder to use with *directory* option and |
| 50 | *managed-keys* option (folder created at the step 3 above). | 50 | *managed-keys* option (folder created at the step 3 above). |
| 51 | -Include the master and slave configuration files into your bind config - what | ||
| 52 | -created at the step 2. | 51 | +Include the master configuration files into your bind config - what created at |
| 52 | +the step 2. | ||
| 53 | 53 | ||
| 54 | Restart your bind daemon. | 54 | Restart your bind daemon. |
| 55 | 55 | ||
| 56 | +#### *Under bind9.9 or later only* | ||
| 57 | +You need to add your options the | ||
| 58 | + *masterfile-format text;* | ||
| 59 | +line, because these versions keep the zone files as binary format, and you | ||
| 60 | +couldn't preview the slave zones as human readable. | ||
| 61 | + | ||
| 62 | +Restart your bind daemon | ||
| 63 | + | ||
| 56 | ### Database | 64 | ### Database |
| 57 | Create a database user with full permission to access a non existing database | 65 | Create a database user with full permission to access a non existing database |
| 58 | with any name. | 66 | with any name. |
| @@ -148,4 +156,4 @@ dig - Place of your binary. Default if found: */usr/bin/dig* | @@ -148,4 +156,4 @@ dig - Place of your binary. Default if found: */usr/bin/dig* | ||
| 148 | http(s)://your.virtualhost.here/path | 156 | http(s)://your.virtualhost.here/path |
| 149 | 157 | ||
| 150 | Global admin username: **admin** | 158 | Global admin username: **admin** |
| 151 | -Initial password: **SMBind-ng2016** | 159 | -Initial password: **SMBind-ng2016** |
| 160 | +Initial password: **SMBind-ng2016** | ||
| 152 | \ No newline at end of file | 161 | \ No newline at end of file |
README.md
| @@ -32,4 +32,7 @@ This fork has many improvements, security changes and new features | @@ -32,4 +32,7 @@ This fork has many improvements, security changes and new features | ||
| 32 | 32 | ||
| 33 | ## Attention | 33 | ## Attention |
| 34 | The main repository there is in [my own](https://git.myonline.hu/pty/smbind-ng) | 34 | The main repository there is in [my own](https://git.myonline.hu/pty/smbind-ng) |
| 35 | -site. Please use that mainly. | ||
| 36 | \ No newline at end of file | 35 | \ No newline at end of file |
| 36 | +site. Please use that mainly. | ||
| 37 | + | ||
| 38 | +## Installation | ||
| 39 | +See [INSTALL.md](INSTALL.md) | ||
| 37 | \ No newline at end of file | 40 | \ No newline at end of file |
mysql.sql
| @@ -29,7 +29,7 @@ CREATE TABLE `dnssec_keys` ( | @@ -29,7 +29,7 @@ CREATE TABLE `dnssec_keys` ( | ||
| 29 | KEY `arch` (`archive`), | 29 | KEY `arch` (`archive`), |
| 30 | KEY `filen` (`filename`), | 30 | KEY `filen` (`filename`), |
| 31 | CONSTRAINT `fkdskeys` FOREIGN KEY (`dszone`) REFERENCES `dnssec_zones` (`id`) ON DELETE CASCADE | 31 | CONSTRAINT `fkdskeys` FOREIGN KEY (`dszone`) REFERENCES `dnssec_zones` (`id`) ON DELETE CASCADE |
| 32 | -) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8; | 32 | +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; |
| 33 | /*!40101 SET character_set_client = @saved_cs_client */; | 33 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 34 | 34 | ||
| 35 | -- | 35 | -- |
| @@ -56,7 +56,7 @@ CREATE TABLE `dnssec_zones` ( | @@ -56,7 +56,7 @@ CREATE TABLE `dnssec_zones` ( | ||
| 56 | UNIQUE KEY `id` (`id`), | 56 | UNIQUE KEY `id` (`id`), |
| 57 | KEY `dsnam` (`zone`), | 57 | KEY `dsnam` (`zone`), |
| 58 | CONSTRAINT `fkdszones` FOREIGN KEY (`zone`) REFERENCES `zones` (`id`) ON DELETE CASCADE | 58 | CONSTRAINT `fkdszones` FOREIGN KEY (`zone`) REFERENCES `zones` (`id`) ON DELETE CASCADE |
| 59 | -) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8; | 59 | +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; |
| 60 | /*!40101 SET character_set_client = @saved_cs_client */; | 60 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 61 | 61 | ||
| 62 | -- | 62 | -- |
| @@ -114,7 +114,7 @@ CREATE TABLE `records` ( | @@ -114,7 +114,7 @@ CREATE TABLE `records` ( | ||
| 114 | KEY `reczone` (`zone`), | 114 | KEY `reczone` (`zone`), |
| 115 | KEY `rech` (`host`), | 115 | KEY `rech` (`host`), |
| 116 | CONSTRAINT `fkrecords` FOREIGN KEY (`zone`) REFERENCES `zones` (`id`) ON DELETE CASCADE | 116 | CONSTRAINT `fkrecords` FOREIGN KEY (`zone`) REFERENCES `zones` (`id`) ON DELETE CASCADE |
| 117 | -) ENGINE=InnoDB AUTO_INCREMENT=765 DEFAULT CHARSET=utf8; | 117 | +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; |
| 118 | /*!40101 SET character_set_client = @saved_cs_client */; | 118 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 119 | 119 | ||
| 120 | -- | 120 | -- |
| @@ -144,7 +144,7 @@ CREATE TABLE `slave_zones` ( | @@ -144,7 +144,7 @@ CREATE TABLE `slave_zones` ( | ||
| 144 | UNIQUE KEY `sznam` (`name`), | 144 | UNIQUE KEY `sznam` (`name`), |
| 145 | KEY `szupd` (`updated`), | 145 | KEY `szupd` (`updated`), |
| 146 | KEY `szow` (`owner`) | 146 | KEY `szow` (`owner`) |
| 147 | -) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8; | 147 | +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; |
| 148 | /*!40101 SET character_set_client = @saved_cs_client */; | 148 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 149 | 149 | ||
| 150 | -- | 150 | -- |
| @@ -173,7 +173,7 @@ CREATE TABLE `users` ( | @@ -173,7 +173,7 @@ CREATE TABLE `users` ( | ||
| 173 | UNIQUE KEY `usnam` (`username`), | 173 | UNIQUE KEY `usnam` (`username`), |
| 174 | KEY `uspass` (`password`), | 174 | KEY `uspass` (`password`), |
| 175 | KEY `admin` (`admin`) | 175 | KEY `admin` (`admin`) |
| 176 | -) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; | 176 | +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; |
| 177 | /*!40101 SET character_set_client = @saved_cs_client */; | 177 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 178 | 178 | ||
| 179 | -- | 179 | -- |
| @@ -212,7 +212,7 @@ CREATE TABLE `zones` ( | @@ -212,7 +212,7 @@ CREATE TABLE `zones` ( | ||
| 212 | KEY `zonval` (`valid`), | 212 | KEY `zonval` (`valid`), |
| 213 | KEY `zonow` (`owner`), | 213 | KEY `zonow` (`owner`), |
| 214 | KEY `zonupd` (`updated`) | 214 | KEY `zonupd` (`updated`) |
| 215 | -) ENGINE=InnoDB AUTO_INCREMENT=38 DEFAULT CHARSET=utf8; | 215 | +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; |
| 216 | /*!40101 SET character_set_client = @saved_cs_client */; | 216 | /*!40101 SET character_set_client = @saved_cs_client */; |
| 217 | 217 | ||
| 218 | -- | 218 | -- |