[Bug 673427] Re: DHCP with LDAP config should load class definitions first
[Expired for dhcp3 (Ubuntu) because there has been no activity for 60 days.] ** Changed in: dhcp3 (Ubuntu) Status: Incomplete = Expired -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to dhcp3 in ubuntu. https://bugs.launchpad.net/bugs/673427 Title: DHCP with LDAP config should load class definitions first -- 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
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] 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
[Bug 673427] Re: DHCP with LDAP config should load class definitions first
Thank you for taking the time to report this bug and helping to make Ubuntu better. Could you provide a valid dhcp configuration file as well as ldif files so that reproducing your issue is straight-forward? ** Changed in: dhcp3 (Ubuntu) Importance: Undecided = Wishlist ** Changed in: dhcp3 (Ubuntu) Status: New = Incomplete -- 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