Marius Tomaschewski
348f524f0a
reorder config to add all global options or option declarations to the dhcpService object instead to create new service object (bsc#886094,ISC-Bugs#37876). [+ dhcp-4.2.x-contrib-conf-to-ldap-reorder.886094.patch] - Applied an upstream patch by Thomas Markwalder adding missed mapping of SHA TSIG algorithm names to their constants to enable hmac-sha1, hmac_sha224, hmac_sha256, hmac_sha384 and hmac_sha512 authenticated dynamic DNS updates (bsc#890731, ISC-Bugs#36947). [+ dhcp-4.2.x-ddns-tsig-hmac-sha-support.890731.patch] - Decline IPv6 addresses on Duplicate Address Detection failure and stop client message exchanges on reached MRD rather than at some point after it. Applied fedora patches by Jiri Popelka and added DAD reporting via exit 3 to the dhclient-script and a fix to use correct address variables in the DEPREF6 action (bsc#872609,ISC-Bugs#26735,ISC-Bugs#21238). [+ dhcp-4.2.x-dhcpv6-decline-on-DAD-failure.872609.patch, + dhcp-4.2.x-dhcpv6-retransmission-until-MRD.872609.patch] - Applied backport patch by William Preston avoiding to bind ddns socket in the server when ddns-update-style is none (bsc#891655). [+ dhcp-4.2.x-disable-unused-ddns-port-in-server.891655.patch] - Applied patch for the contrib/ldap/dhcpd-conf-to-ldap script fixing subclass statement handling (bnc#878846,[ISC-Bugs #36409]) [+ dhcp-4.2.4-P2-bnc878846-conf-to-ldap.patch] - Updated licence statement and FSF address in our scripts. - Added missed service_add_pre macro calls for dhcrelay services OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=141
33 lines
917 B
Diff
33 lines
917 B
Diff
Index: dhcp-4.2.4-P2/contrib/ldap/dhcpd-conf-to-ldap
|
|
===================================================================
|
|
--- dhcp-4.2.4-P2/contrib/ldap/dhcpd-conf-to-ldap
|
|
+++ dhcp-4.2.4-P2/contrib/ldap/dhcpd-conf-to-ldap
|
|
@@ -486,14 +486,23 @@ sub parse_subclass
|
|
$subclass = next_token (0);
|
|
parse_error () if !defined ($subclass);
|
|
|
|
- $tmp = next_token (0);
|
|
- parse_error () if !defined ($tmp);
|
|
- parse_error () if !($tmp eq '{');
|
|
-
|
|
+ if (substr($subclass,-1) eq ';') {
|
|
+ $tmp = ";";
|
|
+ $subclass = substr($subclass,0,-1);
|
|
+ } else {
|
|
+ $tmp = next_token (0);
|
|
+ parse_error () if !defined ($tmp);
|
|
+ }
|
|
+ parse_error () if !($tmp eq '{' or $tmp eq ';');
|
|
add_dn_to_stack ("cn=$subclass");
|
|
$curentry{'type'} = 'subclass';
|
|
$curentry{'class'} = $class;
|
|
$curentry{'subclass'} = $subclass;
|
|
+
|
|
+ if ($tmp eq ';') {
|
|
+ print_entry () if %curentry;
|
|
+ remove_dn_from_stack ();
|
|
+ }
|
|
}
|
|
|
|
|