Bump version to 2.0.8-2
Resolves: Bug 1998464 - LDAP server crashes when dnaInterval attribute is set to 0
This commit is contained in:
parent
a89fe7788b
commit
be8a940734
@ -0,0 +1,44 @@
|
|||||||
|
From 6e21d41f5d9f6437c00dd0150654415b172e391a Mon Sep 17 00:00:00 2001
|
||||||
|
From: Mark Reynolds <mreynolds@redhat.com>
|
||||||
|
Date: Wed, 25 Aug 2021 16:54:57 -0400
|
||||||
|
Subject: [PATCH 1/3] Issue 4884 - server crashes when dnaInterval attribute is
|
||||||
|
set to zero
|
||||||
|
|
||||||
|
Bug Description:
|
||||||
|
|
||||||
|
A division by zero crash occurs if the dnaInterval is set to zero
|
||||||
|
|
||||||
|
Fix Description:
|
||||||
|
|
||||||
|
Validate the config value of dnaInterval and adjust it to the
|
||||||
|
default/safe value of "1" if needed.
|
||||||
|
|
||||||
|
relates: https://github.com/389ds/389-ds-base/issues/4884
|
||||||
|
|
||||||
|
Reviewed by: tbordaz(Thanks!)
|
||||||
|
---
|
||||||
|
ldap/servers/plugins/dna/dna.c | 7 +++++++
|
||||||
|
1 file changed, 7 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/ldap/servers/plugins/dna/dna.c b/ldap/servers/plugins/dna/dna.c
|
||||||
|
index 928a3f54a..c983ebdd0 100644
|
||||||
|
--- a/ldap/servers/plugins/dna/dna.c
|
||||||
|
+++ b/ldap/servers/plugins/dna/dna.c
|
||||||
|
@@ -1025,7 +1025,14 @@ dna_parse_config_entry(Slapi_PBlock *pb, Slapi_Entry *e, int apply)
|
||||||
|
|
||||||
|
value = slapi_entry_attr_get_charptr(e, DNA_INTERVAL);
|
||||||
|
if (value) {
|
||||||
|
+ errno = 0;
|
||||||
|
entry->interval = strtoull(value, 0, 0);
|
||||||
|
+ if (entry->interval == 0 || errno == ERANGE) {
|
||||||
|
+ slapi_log_err(SLAPI_LOG_WARNING, DNA_PLUGIN_SUBSYSTEM,
|
||||||
|
+ "dna_parse_config_entry - Invalid value for dnaInterval (%s), "
|
||||||
|
+ "Using default value of 1\n", value);
|
||||||
|
+ entry->interval = 1;
|
||||||
|
+ }
|
||||||
|
slapi_ch_free_string(&value);
|
||||||
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
2.31.1
|
||||||
|
|
@ -47,7 +47,7 @@ ExcludeArch: i686
|
|||||||
Summary: 389 Directory Server (base)
|
Summary: 389 Directory Server (base)
|
||||||
Name: 389-ds-base
|
Name: 389-ds-base
|
||||||
Version: 2.0.8
|
Version: 2.0.8
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: GPLv3+ and ASL 2.0 and MPLv2.0 and Boost
|
License: GPLv3+ and ASL 2.0 and MPLv2.0 and Boost
|
||||||
URL: https://www.port389.org
|
URL: https://www.port389.org
|
||||||
Conflicts: selinux-policy-base < 3.9.8
|
Conflicts: selinux-policy-base < 3.9.8
|
||||||
@ -256,6 +256,7 @@ Source2: %{name}-devel.README
|
|||||||
%if %{bundle_jemalloc}
|
%if %{bundle_jemalloc}
|
||||||
Source3: https://github.com/jemalloc/%{jemalloc_name}/releases/download/%{jemalloc_ver}/%{jemalloc_name}-%{jemalloc_ver}.tar.bz2
|
Source3: https://github.com/jemalloc/%{jemalloc_name}/releases/download/%{jemalloc_ver}/%{jemalloc_name}-%{jemalloc_ver}.tar.bz2
|
||||||
%endif
|
%endif
|
||||||
|
Patch01: 0001-Issue-4884-server-crashes-when-dnaInterval-attribute.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
389 Directory Server is an LDAPv3 compliant server. The base package includes
|
389 Directory Server is an LDAPv3 compliant server. The base package includes
|
||||||
@ -706,6 +707,10 @@ exit 0
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 27 2021 Mark Reynolds <mreynolds@redhat.com> - 2.0.8-2
|
||||||
|
- Bump version to 2.0.8-2
|
||||||
|
- Resolves: Bug 1998464 - LDAP server crashes when dnaInterval attribute is set to 0
|
||||||
|
|
||||||
* Mon Aug 23 2021 Mark Reynolds <mreynolds@redhat.com> - 2.0.8-1
|
* Mon Aug 23 2021 Mark Reynolds <mreynolds@redhat.com> - 2.0.8-1
|
||||||
- Bump version to 2.0.8-1
|
- Bump version to 2.0.8-1
|
||||||
- Resolves: Bug 1992609 - EntryUUID syntax plugin breaks replication with older versions
|
- Resolves: Bug 1992609 - EntryUUID syntax plugin breaks replication with older versions
|
||||||
|
Loading…
Reference in New Issue
Block a user