<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><updated>2008-01-08T10:58:32-06:00</updated><title type="text">Feed for edmann.com</title><link href="http://www.edmann.com/Computers-Technology/2008/01/08/ISC-DHCP-and-Ldap-Backend/feed/atom.xml" rel="self"/><author><name>edmann.com</name><email>support@arctechnologies.net</email><uri>http://edmann.com</uri></author><id>urn:uuid:61a0877b-9f9a-311b-a922-99fb9d4529c7</id><category term="Computers-Technology"/><subtitle type="text"></subtitle><entry><title>ISC DHCP and Ldap Backend</title><link href="/Computers-Technology/2008/01/08/ISC-DHCP-and-Ldap-Backend"/><id>urn:uuid:7798edd7-ec8b-35bf-80b4-5ebd57fcb0e2</id><updated>2008-01-08T10:29:05-06:00</updated><summary type="html"><![CDATA[<p>Searching the web for documentation on how to configure <a href="http://www.isc.org/sw/dhcp/">ISC DHCPD</a> and Ldap backend. I will be use the<a href="http://directory.fedoraproject.org/"> Fedora Directory Server</a>, and i have found some information <a href="http://dokuwiki.solstice.nl/dokuwiki/doku.php?id=hannibal:dns_and_dhcp">at this site</a>. 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.</p>
<p>My plan is to develop a tool that will use LDAP as the storage, and it will be written in <a href="http://java.com/en/">Java</a>. 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.</p>
<p>I have used <a href="http://www.php.net">PHP</a> allot for my applications, but this time i am going to change over to Java for this one. I did a management gui for <a href="http://www.isc.org/sw/bind/index.php">ISC DNS</a> using the <a href="http://bind-dlz.sourceforge.net/">Dlz</a> 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.</p>
<h2>.::LDAP Info::.</h2>
<p>This is the information that i gleaned from <a href="http://dokuwiki.solstice.nl/dokuwiki/doku.php?id=hannibal:dns_and_dhcp">solstice.nl</a>. 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 <a href="http://dokuwiki.solstice.nl/dokuwiki/doku.php?id=hannibal:dns_and_dhcp">solstice.nl</a>, and the person that created the entry.</p>
<h4>.::DHCP Ldap Config::.</h4>
<p>/etc/dhcpd.conf</p>
<pre><code><br />ldap-server                 &quot;ds.edmann.com&quot;;<br />ldap-port                   389; # We do an anonymous bind <br /># ldap-username             &quot;cn=manager_login&quot;; <br /># ldap-password             &quot;mysecretPWD&quot;; <br />ldap-base-dn                &quot;ou=DHCP,dc=edmann,dc=com&quot;; <br />ldap-method                 static; <br />ldap-debug-file             &quot;/var/log/dhcp-ldap-startup.log&quot;; <br /></code></pre>
<h4>.::DHCP ldif example::.</h4>
<pre><code> dn: ou=DHCP,dc=edmann,dc=com<br />ou: DHCP<br />objectClass: top<br />objectClass: organizationalUnit<br />description: DHCP Servers<br /><br />dn: cn=DHCP Config, ou=DHCP,dc=edmann,dc=com<br />cn: DHCP Config<br />objectClass: top<br />objectClass: dhcpService<br />dhcpPrimaryDN: cn=dns,ou=DHCP,dc=edmann,dc=com<br />dhcpStatements: ddns-update-style none<br />dhcpStatements: get-lease-hostnames true<br />dhcpStatements: use-host-decl-names true<br /><br />dn: cn=192.168.1.0, cn=DHCP Config, ou=DHCP,dc=edmann,dc=com<br />cn: 192.168.1.0<br />objectClass: top<br />objectClass: dhcpSubnet<br />objectClass: dhcpOptions<br />dhcpNetMask: 24<br />dhcpRange: 192.168.1.150 192.168.1.200<br />dhcpStatements: default-lease-time 600<br />dhcpStatements: max-lease-time 7200<br />dhcpOption: netbios-name-servers 192.168.1.16<br />dhcpOption: subnet-mask 255.255.255.0<br />dhcpOption: routers 192.168.1.1<br />dhcpOption: domain-name-servers 192.168.1.11<br />dhcpOption: domain-name &quot;edmann.com&quot;<br /><br />dn: cn=dns, ou=DHCP,dc=edmann,dc=com<br />cn: dns<br />objectClass: top<br />objectClass: dhcpServer<br />dhcpServiceDN: cn=DHCP Config, ou=DHCP,dc=edmann,dc=com<br /><br />dn: cn=clienta, cn=DHCP Config, ou=DHCP,dc=edmann,dc=com<br />cn: clienta<br />objectClass: top<br />objectClass: dhcpHost<br />dhcpHWAddress: ethernet 00:16:3e:3d:eb:87<br />dhcpStatements: fixed-address 192.168.1.111</code></pre>
<p>&nbsp;You should note that they are not doing <a href="http://en.wikipedia.org/wiki/Dynamic_DNS">Dynamic DNS</a> update. I have used this and plan on using it more. So my final configuration will have an example on using ddns.</p>
<p>There is a special schema that you need to use. The website said they had one (64<span class="search_hit">ldap</span><span class="search_hit">dhcp</span>.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. :-)</p>
<p>You can find the <a href="http://www.openldap.org/">OpenLdap</a> <a href="http://www.lunytune.net/dhcp.schema.gz">schema</a> file on <a href="http://www.lunytune.net/isc-ldap.html">lunytune.net</a>, I may be able to run the conversion script against this. I will need to test it and post back my results.&nbsp;</p>]]></summary><category term="Computers &amp; Technology"/><published>2008-01-08T10:58:32-06:00</published><content type="html"><![CDATA[<p>Searching the web for documentation on how to configure <a href="http://www.isc.org/sw/dhcp/">ISC DHCPD</a> and Ldap backend. I will be use the<a href="http://directory.fedoraproject.org/"> Fedora Directory Server</a>, and i have found some information <a href="http://dokuwiki.solstice.nl/dokuwiki/doku.php?id=hannibal:dns_and_dhcp">at this site</a>. 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.</p>
<p>My plan is to develop a tool that will use LDAP as the storage, and it will be written in <a href="http://java.com/en/">Java</a>. 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.</p>
<p>I have used <a href="http://www.php.net">PHP</a> allot for my applications, but this time i am going to change over to Java for this one. I did a management gui for <a href="http://www.isc.org/sw/bind/index.php">ISC DNS</a> using the <a href="http://bind-dlz.sourceforge.net/">Dlz</a> 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.</p>
<h2>.::LDAP Info::.</h2>
<p>This is the information that i gleaned from <a href="http://dokuwiki.solstice.nl/dokuwiki/doku.php?id=hannibal:dns_and_dhcp">solstice.nl</a>. 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 <a href="http://dokuwiki.solstice.nl/dokuwiki/doku.php?id=hannibal:dns_and_dhcp">solstice.nl</a>, and the person that created the entry.</p>
<h4>.::DHCP Ldap Config::.</h4>
<p>/etc/dhcpd.conf</p>
<pre><code><br />ldap-server                 &quot;ds.edmann.com&quot;;<br />ldap-port                   389; # We do an anonymous bind <br /># ldap-username             &quot;cn=manager_login&quot;; <br /># ldap-password             &quot;mysecretPWD&quot;; <br />ldap-base-dn                &quot;ou=DHCP,dc=edmann,dc=com&quot;; <br />ldap-method                 static; <br />ldap-debug-file             &quot;/var/log/dhcp-ldap-startup.log&quot;; <br /></code></pre>
<h4>.::DHCP ldif example::.</h4>
<pre><code> dn: ou=DHCP,dc=edmann,dc=com<br />ou: DHCP<br />objectClass: top<br />objectClass: organizationalUnit<br />description: DHCP Servers<br /><br />dn: cn=DHCP Config, ou=DHCP,dc=edmann,dc=com<br />cn: DHCP Config<br />objectClass: top<br />objectClass: dhcpService<br />dhcpPrimaryDN: cn=dns,ou=DHCP,dc=edmann,dc=com<br />dhcpStatements: ddns-update-style none<br />dhcpStatements: get-lease-hostnames true<br />dhcpStatements: use-host-decl-names true<br /><br />dn: cn=192.168.1.0, cn=DHCP Config, ou=DHCP,dc=edmann,dc=com<br />cn: 192.168.1.0<br />objectClass: top<br />objectClass: dhcpSubnet<br />objectClass: dhcpOptions<br />dhcpNetMask: 24<br />dhcpRange: 192.168.1.150 192.168.1.200<br />dhcpStatements: default-lease-time 600<br />dhcpStatements: max-lease-time 7200<br />dhcpOption: netbios-name-servers 192.168.1.16<br />dhcpOption: subnet-mask 255.255.255.0<br />dhcpOption: routers 192.168.1.1<br />dhcpOption: domain-name-servers 192.168.1.11<br />dhcpOption: domain-name &quot;edmann.com&quot;<br /><br />dn: cn=dns, ou=DHCP,dc=edmann,dc=com<br />cn: dns<br />objectClass: top<br />objectClass: dhcpServer<br />dhcpServiceDN: cn=DHCP Config, ou=DHCP,dc=edmann,dc=com<br /><br />dn: cn=clienta, cn=DHCP Config, ou=DHCP,dc=edmann,dc=com<br />cn: clienta<br />objectClass: top<br />objectClass: dhcpHost<br />dhcpHWAddress: ethernet 00:16:3e:3d:eb:87<br />dhcpStatements: fixed-address 192.168.1.111</code></pre>
<p>&nbsp;You should note that they are not doing <a href="http://en.wikipedia.org/wiki/Dynamic_DNS">Dynamic DNS</a> update. I have used this and plan on using it more. So my final configuration will have an example on using ddns.</p>
<p>There is a special schema that you need to use. The website said they had one (64<span class="search_hit">ldap</span><span class="search_hit">dhcp</span>.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. :-)</p>
<p>You can find the <a href="http://www.openldap.org/">OpenLdap</a> <a href="http://www.lunytune.net/dhcp.schema.gz">schema</a> file on <a href="http://www.lunytune.net/isc-ldap.html">lunytune.net</a>, I may be able to run the conversion script against this. I will need to test it and post back my results.&nbsp;</p>]]></content></entry></feed>

