Activity log for bug #673427

Date Who What changed Old value New value Message
2010-11-10 09:58:28 Karsten Becker bug added bug
2010-11-10 10:00:07 Karsten Becker description Binary package hint: dhcp3-server-ldap Take as example the following dhcpd.conf (just as example, it's syntax is not right): global parameters... class "VoIP_Phones" { match if (substring (hardware,1,3)=00:04:13); } class "Other_Clients" { match if (substring (hardware,1,3)=00:04:13); } subnet 204.254.239.0 netmask 255.255.255.224 { subnet-specific parameters... pool "VoIP" { allow members of "VoIP_Phones"; deny members of "Other_Clients"; pool-specific parameters... } pool "VoIP" { deny members of "VoIP_Phones"; allow members of "Other_Clients"; pool-specific parameters... } } If you want to have such kind of configuration LDAP based, you would create corresponding LDIF files and load them in the LDAP. But - and that's tricky - you need to ensure to load all classes that get referenced by the pool declarations later get loaded into the LDAP before the pool declarations. In other words - DHCP does not automatically load class declarations first. If you you first save the pools into LDAP, followed by the classes, DHCP will throw an error on restart because it finds the reference to the class before the class declaration itself. Binary package hint: dhcp3-server-ldap Take as example the following dhcpd.conf (just as example, it's syntax is not right): global parameters... class "VoIP_Phones" {    match if (substring (hardware,1,3)=00:04:13); } class "Other_Clients" {    match if not (substring (hardware,1,3)=00:04:13); } subnet 204.254.239.0 netmask 255.255.255.224 {    subnet-specific parameters...    pool "VoIP" {       allow members of "VoIP_Phones";       deny members of "Other_Clients";       pool-specific parameters...    }    pool "VoIP" {       deny members of "VoIP_Phones";       allow members of "Other_Clients";       pool-specific parameters...    } } If you want to have such kind of configuration LDAP based, you would create corresponding LDIF files and load them in the LDAP. But - and that's tricky - you need to ensure to load all classes that get referenced by the pool declarations later get loaded into the LDAP before the pool declarations. In other words - DHCP does not automatically load class declarations first. If you you first save the pools into LDAP, followed by the classes, DHCP will throw an error on restart because it finds the reference to the class before the class declaration itself.
2010-11-10 18:17:46 Mathias Gug dhcp3 (Ubuntu): importance Undecided Wishlist
2010-11-10 18:17:50 Mathias Gug dhcp3 (Ubuntu): status New Incomplete
2010-11-11 19:45:13 Karsten Becker attachment added dhcp.conf_traditional https://bugs.launchpad.net/ubuntu/+source/dhcp3/+bug/673427/+attachment/1730376/+files/dhcp.conf_traditional
2010-11-11 19:45:55 Karsten Becker attachment added dhcpd.conf_with_LDAP https://bugs.launchpad.net/ubuntu/+source/dhcp3/+bug/673427/+attachment/1730377/+files/dhcpd.conf_with_LDAP
2010-11-11 19:46:43 Karsten Becker attachment added dhcp.ldif https://bugs.launchpad.net/ubuntu/+source/dhcp3/+bug/673427/+attachment/1730378/+files/dhcp.ldif
2011-01-11 04:18:10 Launchpad Janitor dhcp3 (Ubuntu): status Incomplete Expired