RSS
 

ISC DHCP and Ldap Backend

08 Jan

Searching the web for documentation on how to configure ISC DHCPD and Ldap backend. I will be use the Fedora Directory Server, and i have found some information at this site. I am posting the data here because i am afraid of the site going away. Not that it would, but you never know. The reason for this work is because i have not found a good gui tool for dhcp administration.

My plan is to develop a tool that will use LDAP as the storage, and it will be written in Java. The idea that i have now is that the Model can be used to do a desktop installable app, and also a browser based app.

I have used PHP allot for my applications, but this time i am going to change over to Java for this one. I did a management gui for ISC DNS using the Dlz feature. It is browser based and done with php. The project i did is called dlzSync and the website should be up soon. I did code the sync server in java, but it needs more work.

.::LDAP Info::.

This is the information that i gleaned from solstice.nl. I plan on adding more information as i learn how to use the feature. But this is the starting point of my work. Thanks to the people at solstice.nl, and the person that created the entry.

.::DHCP Ldap Config::.

/etc/dhcpd.conf


ldap-server "ds.edmann.com";
ldap-port 389; # We do an anonymous bind
# ldap-username "cn=manager_login";
# ldap-password "mysecretPWD";
ldap-base-dn "ou=DHCP,dc=edmann,dc=com";
ldap-method static;
ldap-debug-file "/var/log/dhcp-ldap-startup.log";

.::DHCP ldif example::.

 dn: ou=DHCP,dc=edmann,dc=com
ou: DHCP
objectClass: top
objectClass: organizationalUnit
description: DHCP Servers

dn: cn=DHCP Config, ou=DHCP,dc=edmann,dc=com
cn: DHCP Config
objectClass: top
objectClass: dhcpService
dhcpPrimaryDN: cn=dns,ou=DHCP,dc=edmann,dc=com
dhcpStatements: ddns-update-style none
dhcpStatements: get-lease-hostnames true
dhcpStatements: use-host-decl-names true

dn: cn=192.168.1.0, cn=DHCP Config, ou=DHCP,dc=edmann,dc=com
cn: 192.168.1.0
objectClass: top
objectClass: dhcpSubnet
objectClass: dhcpOptions
dhcpNetMask: 24
dhcpRange: 192.168.1.150 192.168.1.200
dhcpStatements: default-lease-time 600
dhcpStatements: max-lease-time 7200
dhcpOption: netbios-name-servers 192.168.1.16
dhcpOption: subnet-mask 255.255.255.0
dhcpOption: routers 192.168.1.1
dhcpOption: domain-name-servers 192.168.1.11
dhcpOption: domain-name "edmann.com"

dn: cn=dns, ou=DHCP,dc=edmann,dc=com
cn: dns
objectClass: top
objectClass: dhcpServer
dhcpServiceDN: cn=DHCP Config, ou=DHCP,dc=edmann,dc=com

dn: cn=clienta, cn=DHCP Config, ou=DHCP,dc=edmann,dc=com
cn: clienta
objectClass: top
objectClass: dhcpHost
dhcpHWAddress: ethernet 00:16:3e:3d:eb:87
dhcpStatements: fixed-address 192.168.1.111

 You should note that they are not doing Dynamic DNS update. I have used this and plan on using it more. So my final configuration will have an example on using ddns.

There is a special schema that you need to use. The website said they had one (64ldapdhcp.ldif) in their downloads directory, but when i clicked on the link i was given a 404 error. So i will need to generate one myself and i will post it here for others. Which means i need to get the add file part of my blog system working. :-)

You can find the OpenLdap schema file on lunytune.net, I may be able to run the conversion script against this. I will need to test it and post back my results. 

Leave a Reply

Comments are closed