How to store config DHCP for ipv6(LDAP for example)?

Trying to make the storage configuration DHCP in LDAP. But I can't figure out how to get LDAP parameter in subnet6. Take for example the config from the web:
default-lease-time 2592000;
preferred-lifetime 604800;
option dhcp-renewal-time 3600;
option dhcp-rebinding-time 7200;
allow leasequery;
option 3ffe:501:ffff:100:200:ff:fe00:3f3e;
option dhcp6.domain-search "","";
option 21600;
dhcpv6-lease-file-name "/usr/local/var/db/dhcpd6.leases";
subnet6 3ffe:501:ffff:100::/64 {
 range6 3ffe:501:ffff:100::10 3ffe:501:ffff:100::11;
 range6 3ffe:501:ffff:100:: temporary;
 prefix6 3ffe:501:ffff:100:: 3ffe:501:ffff:111:: /64;
host myclient {
 host-identifier option
 dhcp6.client-id 00:01:00:01:00:04:93:e0:00:00:00:00:a2:a2;
 fixed-address6 3ffe:501:ffff:100::1234;
 fixed-prefix6 3ffe:501:ffff:101::/64;
 option 3ffe:501:ffff:100:200:ff:fe00:4f4e;
host otherclient {
 hardware ethernet 01:00:80:a2:55:67:34;
 fixed-address6 3ffe:501:ffff:100:4321;

It turns out about the following:
#dhcp server
objectClass: top
objectClass: dhcpServer
dhcpServiceDN: cn=DHCP Service Config, dc=ipv6,dc=domain,dc=ru

#new instance for config:
dn: dc=ipv6,dc=domain,dc=ru
dc: ipv6
objectClass: top
objectClass: dcObject
objectClass: organization

# the root config:
dn: cn=DHCP Service Config, dc=ipv6,dc=domain,dc=ru
cn: DHCP Service Config
objectClass: top
objectClass: dhcpService
dhcpPrimaryDN: dc=ipv6,dc=domain,dc=ru
dhcpStatements: default-lease-time 2592000;
dhcpStatements: preferred-lifetime 604800;
dhcpStatements: option dhcp-renewal-time 3600;
dhcpStatements: allow leasequery;
dhcpStatements: dhcpv6-lease-file-name "/usr/local/var/db/dhcpd6.leases";
dhcpOption: dhcp-rebinding-time 7200;
dhcpOption: 3ffe:501:ffff:100:200:ff:fe00:3f3e;
dhcpOption: dhcp6.domain-search "","";
dhcpOption: 21600;

As we now have subnet6? I believe that as such support subnet6 no, but need to do something similar with other non-supported parameters (via dhcpStatements). But how?

Is there anyone already implemented this bundle? can you show the ldif file with grids and 1-2 hosts?
July 8th 19 at 15:39
1 answer
July 8th 19 at 15:41
The answer himself. In the official repe - error. In 4.2.4 is not working at all. did not understand.
For ISC-DHCP 4.3.4b1 need to roll this patch:
--- ./dhcp-4.3.4b1/server/ldap.c 2016-03-05 01:40:31.000000000 +0500
+++ ./dhcp 4.3.4 bf/server/ldap.c 2016-06-14 16:40:23.000000000 +0500
@@ -702,9 +of 702.9 @@
 struct berval **tempbv;
 int i;

- x_parser_strcat (cfile, "pool {\n");
+ x_parser_strcat (cfile, "pool6 {\n");

- if ((tempbv = ldap_get_values_len (ld, item->ldent, "dhcpRange")) != NULL)
+ if ((tempbv = ldap_get_values_len (ld, item->ldent, "dhcpRange6")) != NULL)
 x_parser_strcat (cfile, "range6");
 for (i=0; tempbv[i] != NULL; i++)

after that everything is fine start.

Find more questions by tags IPLDAP