[Bug 673427] Re: DHCP with LDAP config should load class definitions first

Karsten Becker 673427 at bugs.launchpad.net
Wed Nov 10 09:59:48 GMT 2010


Uuups, of course it's

class "Other_Clients" {
   match if not (substring (hardware,1,3)=00:04:13);
}

** Description changed:

  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);
+    match if (substring (hardware,1,3)=00:04:13);
  }
  
  class "Other_Clients" {
-    match if (substring (hardware,1,3)=00:04:13);
+    match if not (substring (hardware,1,3)=00:04:13);
  }
  
  subnet 204.254.239.0 netmask 255.255.255.224 {
-    subnet-specific parameters...
+    subnet-specific parameters...
  
-    pool "VoIP" {
-       allow members of "VoIP_Phones";
-       deny members of "Other_Clients";
+    pool "VoIP" {
+       allow members of "VoIP_Phones";
+       deny members of "Other_Clients";
  
-       pool-specific parameters...
-    }
+       pool-specific parameters...
+    }
  
-    pool "VoIP" {
-       deny members of "VoIP_Phones";
-       allow members of "Other_Clients";
+    pool "VoIP" {
+       deny members of "VoIP_Phones";
+       allow members of "Other_Clients";
  
-       pool-specific parameters...
-    }
+       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.

-- 
DHCP with LDAP config should load class definitions first
https://bugs.launchpad.net/bugs/673427
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dhcp3 in ubuntu.



More information about the Ubuntu-server-bugs mailing list