]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
[master] Fix some cut and paste type errors in LDAP code
authorShawn Routhier <sar@isc.org>
Mon, 20 Jun 2016 14:39:32 +0000 (07:39 -0700)
committerShawn Routhier <sar@isc.org>
Mon, 20 Jun 2016 14:39:32 +0000 (07:39 -0700)
Squashed commit of the following:

    [rt42666] Fix some cut and paste type errors in LDAP code

    Add the character '6' to some strings.  They were cut and pasted
    from the v4 versions and didn't get fully updated.

RELNOTES
contrib/ldap/dhcp.schema
server/ldap.c

index 188b46d90726ad2deeb911a49f58a572768f9c9b..c7eb246a92500e7b4ff12f3c1d25c0111bd935bc 100644 (file)
--- a/RELNOTES
+++ b/RELNOTES
@@ -77,6 +77,11 @@ by Eric Young (eay@cryptsoft.com).
   the client hostname from the original client.
   [ISC-Bugs #42008]
 
+- In the LDAP code and schema add some missing '6' characters to use
+  the v6 instead of the v4 versions.  Thanks to Denis Taranushin for
+  reporting this issue and supplying its patch.
+  [ISC-Bugs #42666]
+
                        Changes since 4.3.4b1
 
 - None
index 0c24a7a2bd4b548a7c801d5c48e33ed288964b0b..378243ecbdf8cc4577e0c02dcdb691629de19caa 100644 (file)
@@ -484,5 +484,5 @@ objectclass ( 2.16.840.1.113719.1.203.6.18
     SUP top
     MUST ( cn $ dhcpRange6 )
     MAY ( dhcpClassesDN $ dhcpPermitList $ dhcpLeasesDN $ dhcpOptionsDN $ dhcpZoneDN $dhcpKeyDN $ dhcpStatements $ dhcpComments $ dhcpOption )
-    X-NDS_CONTAINMENT ('dhcpSubnet' 'dhcpSharedNetwork') )
+    X-NDS_CONTAINMENT ('dhcpSubnet6' 'dhcpSharedNetwork') )
 
index a5f79eb31780ebd649ad7df1e2fdf1e39772fff9..6a31b8d3f9f47c232491cb57b47a48cc420ca581 100644 (file)
@@ -3,7 +3,7 @@
    Routines for reading the configuration from LDAP */
 
 /*
- * Copyright (c) 2010,2015 by Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (c) 2010,2015-2016 by Internet Systems Consortium, Inc. ("ISC")
  * Copyright (c) 2003-2006 Ntelos, Inc.
  * All rights reserved.
  *
@@ -638,7 +638,7 @@ ldap_parse_subnet6 (struct ldap_config_stack *item, struct parse *cfile)
 
   ldap_value_free_len (tempbv);
 
-  if ((tempbv = ldap_get_values_len (ld, item->ldent, "dhcpRange")) != NULL)
+  if ((tempbv = ldap_get_values_len (ld, item->ldent, "dhcpRange6")) != NULL)
     {
       for (i=0; tempbv[i] != NULL; i++)
         {
@@ -702,9 +702,9 @@ ldap_parse_pool6 (struct ldap_config_stack *item, struct parse *cfile)
   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++)