How to setup the dhcp-plugin

Install required packages:

debian:

on Debian lenny

root@dhcp-server:~# apt-get install dhcp3-server-ldap
root@fd-server:~# apt-get install fusiondirectory-plugin-dhcp fusiondirectory-plugin-dhcp-schema

On Debian Squeeze

root@dhcp-server:~# apt-get install isc-dhcp-server-ldap
root@fd-server:~# apt-get install fusiondirectory-plugin-dhcp fusiondirectory-plugin-dhcp-schema

rpm: <TODO>

rpm user, please edit

archlinux:

[root@fd-server ~]# pacman -Sy fusiondirectory-plugins-dhcp
[root@dhcp-server ~]# pacman -Sy dhcp-ldap
[root@ldap-server ~]# pacman -Sy fusiondirectory-plugins-dhcp-schema

debian:

In your dhcp-server add in /etc/dhcp/dhcpd.conf the following ldap configuration lines :

root@dhcp-server:~# cat /etc/dhcp/dhcpd.conf 
ldap-server "localhost";
ldap-port 389;
ldap-username "cn=ldapadmin,dc=my-domain,dc=com";
ldap-password "secret";
ldap-base-dn "dc=my-domain,dc=com";
ldap-method dynamic;
ldap-debug-file "/var/log/dhcp-ldap-startup.log";

Note: Adjust ldap-server, ldap-port, ldap-username, … to your environment.

In your ldap-server add the required schema file for dhcp in slapd.conf.

root@fd-server:~# fusiondirectory-insert-schema -i /etc/ldap/schema/fusiondirectory/dhcp-fd.schema

SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
adding new entry "cn=dhcp-fd,cn=schema,cn=config"

verification :

root@fd-server:~# fusiondirectory-insert-schema -l | grep dhcp
dhcp-fd

rpm: <TODO>

rpm user, please edit

archlinux:

On your dhcp-server configure dhcpd.conf to look like the example below.

[root@dhcp-server ~]# cat /etc/dhcpd.conf 
ldap-server "localhost";
ldap-port 389;
ldap-username "cn=ldapadmin,dc=my-domain,dc=com";
ldap-password "secret";
ldap-base-dn "dc=my-domain,dc=com";
ldap-method dynamic;
ldap-debug-file "/var/log/dhcp-ldap-startup.log";

Note: Adjust ldap-server, ldap-port, ldap-username, … to your environment.

Add dhcp service to a system in fusiondirectory:

debian, rpm, archlinux:

1. If not already done, create a new server in fusiondirectory. See How to setup the systems-plugin

2. Click on the new server:

3. Click on Services:

4. Create new Service:

5. Choose dhcp service and click “Continue”:

6. Insert a new dhcp section:

7. Choose new section “subnet” and click “Create”:

8. Fill in required fields and click “Save”:

9. Click “Save” again:

10. Click “Ok”:

11. You are back to main “Systems” screen now, and ready to continue with last step(s)

debian:

Debian Squeeze

First (Re)Start slapd:

root@fd-server:~# service slapd restart
Stopping OpenLDAP: slapd.
Starting OpenLDAP: slapd.

Then (Re)Start dhcpd:

root@fd-server:~# service isc-dhcp-server start
Starting DHCP Server.

Important Note: The hostname of the dhcp-server (machine running dhcpd) MUST BE the same as the name of the server you assigned the dhcp service to in fusiondirectory !!

rpm: <TODO>

rpm user, please edit

archlinux:

First (Re)Start slapd:

[root@ldap-server ~]# /etc/rc.d/slapd restart
:: Stopping OpenLDAP                                                   [DONE] 
:: Starting OpenLDAP                                                   [DONE] 

Then (Re)Start dhcpd:

[root@dhcp-server ~]# /etc/rc.d/dhcpd start
:: Starting DHCP Server                                                [DONE]

Important Note: The hostname of the dhcp-server (machine running dhcpd) MUST BE the same as the name of the server you assigned the dhcp service to in fusiondirectory !!

en/documentation/plugin/dhcp_plugin/how_to_setup_dhcp_plugin.txt · Last modified: 2017/10/31 10:32 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0