[Bug 673427] Re: DHCP with LDAP config should load class definitions first
Traditional dhcpd.conf ** Attachment added: dhcp.conf_traditional https://bugs.launchpad.net/ubuntu/+source/dhcp3/+bug/673427/+attachment/1730376/+files/dhcp.conf_traditional -- 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. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 673427] Re: DHCP with LDAP config should load class definitions first
dhcpd.conf for LDAP saved configuration ** Attachment added: dhcpd.conf_with_LDAP https://bugs.launchpad.net/ubuntu/+source/dhcp3/+bug/673427/+attachment/1730377/+files/dhcpd.conf_with_LDAP -- 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. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 673427] Re: DHCP with LDAP config should load class definitions first
LDIF with DHCP configuration ** Attachment added: dhcp.ldif https://bugs.launchpad.net/ubuntu/+source/dhcp3/+bug/673427/+attachment/1730378/+files/dhcp.ldif -- 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. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 673427] [NEW] DHCP with LDAP config should load class definitions first
Public bug reported: 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. ** Affects: dhcp3 (Ubuntu) Importance: Undecided Status: New -- 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. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 673427] Re: DHCP with LDAP config should load class definitions first
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. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs