Reading config file using perl.

Zane C.Bowers zanecb at midwest-connections.com
Thu Jul 27 15:48:33 UTC 2006


On Wed, 26 Jul 2006 19:35:21 -0800
kalyanasundaram S <s.kalyanasundaram at inbox.com> wrote:
> > 
> > Any one know of any perl modules for parsing dhcpd.conf?
> 
> may we know what for you are searching a perl module.
> I can say something.
> http://home.ntelos.net/~masneyb/dhcp-3.0.4-ldap-patch
> 
> This patch is for making dhcp to work with directory Services. After
> applying the patch you get dhcpd-conf-to-ldap.pl file in
> dhcp-3.0.x/contrib folder. That perl module parse and convert your
> dhcpd.conf file to a ldif file. 

It can't parse something like this.

host whatever {hardware ethernet 00:14:BF:A8:86:B4; fixed-address 10.0.1.2;}



More information about the dhcp-users mailing list