
Copyright © 2007,2008 Cédric Delfosse - Mandriva
| Revision History | ||
|---|---|---|
| Revision $Revision: 102 $ | $Date: 2008-06-02 14:51:55 +0200 (Mon, 02 Jun 2008) $ | $Author: cdelfosse $ |
Abstract
This document explains the content of the MMC network plugin configuration file
Table of Contents
The « network » plugin allows the MMC Python API to manage DNS zones and hosts, DHCP subnet and hosts, into a LDAP. Patched version of ISC BIND (with LDAP sdb backend) and ISC DHCP (with LDAP configuration file backend) are needed.
The plugin configuration file is /etc/mmc/plugins/network.ini.
Like all MMC related configuration file, its file format is INI style. The file is made of sections, each one starting with a « [sectionname] » header. In each section options can be defined like this « option = value ».
For example:
[section1]
option1 = 1
option2 = 2
[section2]
option1 = foo
option2 = plop
Here are all the network.ini available sections
Table 1. network.ini available sections
| Section name | Description | Optional |
|---|---|---|
| main | global network plugin configuration | yes |
| dns | DNS related configuration | no |
| dhcp | DHCP related configuration | no |
This sections defines the global options of the network plugin.
Table 2. Available options for the "main" section
| Option name | Description | Optional | Default value |
|---|---|---|---|
| disable | Is the plugin disabled | yes | 1 |
This section defines where DNS needed files, directories and LDAP entities are located.
When the plugin starts for the first time, it creates:
the directory bindroot/named.ldap.
This directory will contains all zones definitions
the file bindroot/named.conf.ldap.
This file will include all the zone definitions stored into
bindroot/named.ldap/
Table 3. Available options for the "dns" section
| Option name | Description | Optional | Default value |
|---|---|---|---|
| dn | LDAP DN where the DNS zones are stored | no | |
| logfile | path to BIND log file | no | |
| pidfile | path to BIND pid file | no | |
| init | BIND init script | no | |
| bindchrootconfpath | path to the named.ldap directory inside the BIND chroot. Don't set it if BIND is not into a chroot. | no | |
| bindroot | path to the BIND configuration file directory | no | |
| bindgroup | gid which BIND is running ("bind" or "named") | no | |
| dnsreader | LDAP user DN to use to read zone info | yes | |
| dnsreaderpassword | password of the user specified in dnsreader | not if dnsreader is set |
Here is an example for a Mandriva Corporate Server 4:
[dns]
dn = ou=DNS,dc=mandriva,dc=com
pidfile = /var/lib/named/var/run/named.pid
init = /etc/rc.d/init.d/named
logfile = /var/log/messages
bindroot = /var/lib/named/etc/
bindchrootconfpath = /etc
bindgroup = named
dnsreader = uid=DNS Reader,ou=System Accounts,dc=mandriva,dc=com
dnsreaderpassword = s3cr3t
This section defines where DHCP related files and LDAP entities are located.
Table 4. Available options for the "backup-tools" section
| Option name | Description | Optional | Default value |
|---|---|---|---|
| dn | LDAP DN where the DHCP server configuration is stored | no | |
| pidfile | path to DHCP server pidfile | no | |
| init | path to DHCP service init script | no | |
| logfile | path to DHCP service log file | no | |
| leases | path to DHCP service leases file | no |