7e63d6
7e63d6
%global pkgname   dirsrv
7e63d6
%global srcname   389-ds-base
7e63d6
7e63d6
# Exclude i686 bit arches
7e63d6
ExcludeArch: i686 
7e63d6
7e63d6
# If perl-Socket-2.000 or newer is available, set 0 to use_Socket6.
7e63d6
%global use_Socket6 0
7e63d6
7e63d6
%global use_asan 0
7e63d6
%global use_rust 1
7e63d6
%global bundle_jemalloc 1
7e63d6
%if %{use_asan}
7e63d6
%global bundle_jemalloc 0
7e63d6
%endif
7e63d6
7e63d6
%if %{bundle_jemalloc}
7e63d6
%global jemalloc_name jemalloc
7e63d6
%global jemalloc_ver 5.2.1
7e63d6
%global __provides_exclude ^libjemalloc\\.so.*$
7e63d6
%endif
7e63d6
7e63d6
# Use Clang instead of GCC
7e63d6
%global use_clang 0
7e63d6
7e63d6
# Build cockpit plugin
7e63d6
%global use_cockpit 0
7e63d6
7e63d6
# fedora 15 and later uses tmpfiles.d
7e63d6
# otherwise, comment this out
7e63d6
%{!?with_tmpfiles_d: %global with_tmpfiles_d %{_sysconfdir}/tmpfiles.d}
7e63d6
7e63d6
# systemd support
7e63d6
%global groupname %{pkgname}.target
7e63d6
7e63d6
# set PIE flag
7e63d6
%global _hardened_build 1
7e63d6
7e63d6
# Filter argparse-manpage from autogenerated package Requires
7e63d6
%global __requires_exclude ^python.*argparse-manpage
7e63d6
7e63d6
# Force to require nss version greater or equal as the version available at the build time
7e63d6
# See bz1986327
7e63d6
%define dirsrv_requires_ge()  %(LC_ALL="C" echo '%*' | xargs -r rpm -q --qf 'Requires: %%{name} >= %%{epoch}:%%{version}\\n' | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v "is not")
7e63d6
7e63d6
Summary:          389 Directory Server (base)
7e63d6
Name:             389-ds-base
dd314a
Version:          2.0.14
4caad7
Release:          1%{?dist}
dd314a
License:          GPLv3+ and ASL 2.0
7e63d6
URL:              https://www.port389.org
7e63d6
Conflicts:        selinux-policy-base < 3.9.8
7e63d6
Conflicts:        freeipa-server < 4.0.3
7e63d6
Obsoletes:        %{name} <= 1.4.0.9
7e63d6
Obsoletes:        %{name}-legacy-tools < 1.4.4.6
7e63d6
Obsoletes:        %{name}-legacy-tools-debuginfo < 1.4.4.6
7e63d6
Provides:         ldif2ldbm >= 0
7e63d6
7e63d6
##### Bundled cargo crates list - START #####
858e64
Provides:  bundled(crate(ahash)) = 0.7.6
dd314a
Provides:  bundled(crate(ansi_term)) = 0.12.1
7e63d6
Provides:  bundled(crate(atty)) = 0.2.14
7e63d6
Provides:  bundled(crate(autocfg)) = 1.0.1
7e63d6
Provides:  bundled(crate(base64)) = 0.13.0
858e64
Provides:  bundled(crate(bitflags)) = 1.3.2
7e63d6
Provides:  bundled(crate(byteorder)) = 1.4.3
7e63d6
Provides:  bundled(crate(cbindgen)) = 0.9.1
858e64
Provides:  bundled(crate(cc)) = 1.0.72
7e63d6
Provides:  bundled(crate(cfg-if)) = 1.0.0
dd314a
Provides:  bundled(crate(clap)) = 2.34.0
dd314a
Provides:  bundled(crate(concread)) = 0.2.21
858e64
Provides:  bundled(crate(crossbeam)) = 0.8.1
dd314a
Provides:  bundled(crate(crossbeam-channel)) = 0.5.2
858e64
Provides:  bundled(crate(crossbeam-deque)) = 0.8.1
dd314a
Provides:  bundled(crate(crossbeam-epoch)) = 0.9.6
dd314a
Provides:  bundled(crate(crossbeam-queue)) = 0.3.3
dd314a
Provides:  bundled(crate(crossbeam-utils)) = 0.8.6
7e63d6
Provides:  bundled(crate(entryuuid)) = 0.1.0
7e63d6
Provides:  bundled(crate(entryuuid_syntax)) = 0.1.0
dd314a
Provides:  bundled(crate(fastrand)) = 1.7.0
7e63d6
Provides:  bundled(crate(fernet)) = 0.1.4
7e63d6
Provides:  bundled(crate(foreign-types)) = 0.3.2
7e63d6
Provides:  bundled(crate(foreign-types-shared)) = 0.1.1
dd314a
Provides:  bundled(crate(getrandom)) = 0.2.4
858e64
Provides:  bundled(crate(hashbrown)) = 0.11.2
858e64
Provides:  bundled(crate(hermit-abi)) = 0.1.19
858e64
Provides:  bundled(crate(instant)) = 0.1.12
dd314a
Provides:  bundled(crate(itoa)) = 1.0.1
858e64
Provides:  bundled(crate(jobserver)) = 0.1.24
7e63d6
Provides:  bundled(crate(lazy_static)) = 1.4.0
dd314a
Provides:  bundled(crate(libc)) = 0.2.113
7e63d6
Provides:  bundled(crate(librnsslapd)) = 0.1.0
7e63d6
Provides:  bundled(crate(librslapd)) = 0.1.0
858e64
Provides:  bundled(crate(lock_api)) = 0.4.5
7e63d6
Provides:  bundled(crate(log)) = 0.4.14
dd314a
Provides:  bundled(crate(lru)) = 0.7.2
dd314a
Provides:  bundled(crate(memoffset)) = 0.6.5
dd314a
Provides:  bundled(crate(once_cell)) = 1.9.0
858e64
Provides:  bundled(crate(openssl)) = 0.10.38
dd314a
Provides:  bundled(crate(openssl-sys)) = 0.9.72
858e64
Provides:  bundled(crate(parking_lot)) = 0.11.2
858e64
Provides:  bundled(crate(parking_lot_core)) = 0.8.5
7e63d6
Provides:  bundled(crate(paste)) = 0.1.18
7e63d6
Provides:  bundled(crate(paste-impl)) = 0.1.18
dd314a
Provides:  bundled(crate(pin-project-lite)) = 0.2.8
dd314a
Provides:  bundled(crate(pkg-config)) = 0.3.24
dd314a
Provides:  bundled(crate(ppv-lite86)) = 0.2.16
7e63d6
Provides:  bundled(crate(proc-macro-hack)) = 0.5.19
dd314a
Provides:  bundled(crate(proc-macro2)) = 1.0.36
7e63d6
Provides:  bundled(crate(pwdchan)) = 0.1.0
dd314a
Provides:  bundled(crate(quote)) = 1.0.15
858e64
Provides:  bundled(crate(rand)) = 0.8.4
858e64
Provides:  bundled(crate(rand_chacha)) = 0.3.1
858e64
Provides:  bundled(crate(rand_core)) = 0.6.3
858e64
Provides:  bundled(crate(rand_hc)) = 0.3.1
858e64
Provides:  bundled(crate(redox_syscall)) = 0.2.10
7e63d6
Provides:  bundled(crate(remove_dir_all)) = 0.5.3
dd314a
Provides:  bundled(crate(ryu)) = 1.0.9
7e63d6
Provides:  bundled(crate(scopeguard)) = 1.1.0
dd314a
Provides:  bundled(crate(serde)) = 1.0.135
dd314a
Provides:  bundled(crate(serde_derive)) = 1.0.135
dd314a
Provides:  bundled(crate(serde_json)) = 1.0.78
7e63d6
Provides:  bundled(crate(slapd)) = 0.1.0
7e63d6
Provides:  bundled(crate(slapi_r_plugin)) = 0.1.0
dd314a
Provides:  bundled(crate(smallvec)) = 1.8.0
7e63d6
Provides:  bundled(crate(strsim)) = 0.8.0
dd314a
Provides:  bundled(crate(syn)) = 1.0.86
858e64
Provides:  bundled(crate(synstructure)) = 0.12.6
dd314a
Provides:  bundled(crate(tempfile)) = 3.3.0
7e63d6
Provides:  bundled(crate(textwrap)) = 0.11.0
dd314a
Provides:  bundled(crate(tokio)) = 1.15.0
dd314a
Provides:  bundled(crate(tokio-macros)) = 1.7.0
7e63d6
Provides:  bundled(crate(toml)) = 0.5.8
858e64
Provides:  bundled(crate(unicode-width)) = 0.1.9
858e64
Provides:  bundled(crate(unicode-xid)) = 0.2.2
7e63d6
Provides:  bundled(crate(uuid)) = 0.8.2
858e64
Provides:  bundled(crate(vcpkg)) = 0.2.15
7e63d6
Provides:  bundled(crate(vec_map)) = 0.8.2
dd314a
Provides:  bundled(crate(version_check)) = 0.9.4
7e63d6
Provides:  bundled(crate(wasi)) = 0.10.2+wasi_snapshot_preview1
7e63d6
Provides:  bundled(crate(winapi)) = 0.3.9
7e63d6
Provides:  bundled(crate(winapi-i686-pc-windows-gnu)) = 0.4.0
7e63d6
Provides:  bundled(crate(winapi-x86_64-pc-windows-gnu)) = 0.4.0
dd314a
Provides:  bundled(crate(zeroize)) = 1.5.0
dd314a
Provides:  bundled(crate(zeroize_derive)) = 1.3.1
7e63d6
##### Bundled cargo crates list - END #####
7e63d6
7e63d6
BuildRequires:    nspr-devel
7e63d6
BuildRequires:    nss-devel >= 3.34
7e63d6
BuildRequires:    openldap-devel
7e63d6
BuildRequires:    libdb-devel
7e63d6
BuildRequires:    cyrus-sasl-devel
7e63d6
BuildRequires:    icu
7e63d6
BuildRequires:    libicu-devel
7e63d6
BuildRequires:    pcre-devel
7e63d6
BuildRequires:    cracklib-devel
7e63d6
%if %{use_clang}
7e63d6
BuildRequires:    libatomic
7e63d6
BuildRequires:    clang
7e63d6
%else
7e63d6
BuildRequires:    gcc
7e63d6
BuildRequires:    gcc-c++
7e63d6
%endif
7e63d6
# The following are needed to build the snmp ldap-agent
7e63d6
BuildRequires:    net-snmp-devel
7e63d6
BuildRequires:    lm_sensors-devel
7e63d6
BuildRequires:    bzip2-devel
7e63d6
BuildRequires:    zlib-devel
7e63d6
BuildRequires:    openssl-devel
7e63d6
# the following is for the pam passthru auth plug-in
7e63d6
BuildRequires:    pam-devel
7e63d6
BuildRequires:    systemd-units
7e63d6
BuildRequires:    systemd-devel
7e63d6
%if %{use_asan}
7e63d6
BuildRequires:    libasan
7e63d6
%endif
7e63d6
# If rust is enabled
7e63d6
%if %{use_rust}
7e63d6
BuildRequires: cargo
7e63d6
BuildRequires: rust
7e63d6
%endif
7e63d6
BuildRequires:    pkgconfig
7e63d6
BuildRequires:    pkgconfig(systemd)
7e63d6
BuildRequires:    pkgconfig(krb5)
7e63d6
7e63d6
# Needed to support regeneration of the autotool artifacts.
7e63d6
BuildRequires:    autoconf
7e63d6
BuildRequires:    automake
7e63d6
BuildRequires:    libtool
7e63d6
# For our documentation
7e63d6
BuildRequires:    doxygen
7e63d6
# For tests!
7e63d6
BuildRequires:    libcmocka-devel
7e63d6
BuildRequires:    libevent-devel
7e63d6
# For lib389 and related components
7e63d6
BuildRequires:    python%{python3_pkgversion}-devel
7e63d6
BuildRequires:    python%{python3_pkgversion}-setuptools
7e63d6
BuildRequires:    python%{python3_pkgversion}-ldap
7e63d6
BuildRequires:    python%{python3_pkgversion}-six
7e63d6
BuildRequires:    python%{python3_pkgversion}-pyasn1
7e63d6
BuildRequires:    python%{python3_pkgversion}-pyasn1-modules
7e63d6
BuildRequires:    python%{python3_pkgversion}-dateutil
7e63d6
BuildRequires:    python%{python3_pkgversion}-argcomplete
7e63d6
BuildRequires:    python%{python3_pkgversion}-argparse-manpage
7e63d6
BuildRequires:    python%{python3_pkgversion}-libselinux
7e63d6
BuildRequires:    python%{python3_pkgversion}-policycoreutils
7e63d6
7e63d6
# For cockpit
7e63d6
%if %{use_cockpit}
7e63d6
BuildRequires:    rsync
7e63d6
%endif
7e63d6
7e63d6
Requires:         %{name}-libs = %{version}-%{release}
7e63d6
Requires:         python%{python3_pkgversion}-lib389 = %{version}-%{release}
7e63d6
7e63d6
# this is needed for using semanage from our setup scripts
7e63d6
Requires:         policycoreutils-python-utils
7e63d6
Requires:         /usr/sbin/semanage
7e63d6
Requires:         libsemanage-python%{python3_pkgversion}
7e63d6
7e63d6
Requires:         selinux-policy >= 3.14.1-29
7e63d6
7e63d6
# the following are needed for some of our scripts
7e63d6
Requires:         openldap-clients
7e63d6
Requires:         /usr/bin/c_rehash
7e63d6
Requires:         python%{python3_pkgversion}-ldap
7e63d6
7e63d6
# this is needed to setup SSL if you are not using the
7e63d6
# administration server package
7e63d6
Requires:         nss-tools
7e63d6
Requires:         nss >= 3.34
7e63d6
%dirsrv_requires_ge nss
7e63d6
7e63d6
# these are not found by the auto-dependency method
7e63d6
# they are required to support the mandatory LDAP SASL mechs
7e63d6
Requires:         cyrus-sasl-gssapi
7e63d6
Requires:         cyrus-sasl-md5
7e63d6
Requires:         cyrus-sasl-plain
7e63d6
7e63d6
# this is needed for verify-db.pl
7e63d6
Requires:         libdb-utils
7e63d6
7e63d6
# Needed for password dictionary checks
7e63d6
Requires:         cracklib-dicts
7e63d6
7e63d6
# Needed by logconv.pl
7e63d6
Requires:         perl-DB_File
7e63d6
Requires:         perl-Archive-Tar
7e63d6
Requires:         perl-debugger
7e63d6
Requires:         perl-sigtrap
7e63d6
7e63d6
# Picks up our systemd deps.
7e63d6
%{?systemd_requires}
7e63d6
7e63d6
Obsoletes:        %{name} <= 1.3.5.4
7e63d6
7e63d6
Source0:          https://releases.pagure.org/389-ds-base/%{name}-%{version}.tar.bz2
7e63d6
# 389-ds-git.sh should be used to generate the source tarball from git
7e63d6
Source1:          %{name}-git.sh
7e63d6
Source2:          %{name}-devel.README
7e63d6
%if %{bundle_jemalloc}
7e63d6
Source3:          https://github.com/jemalloc/%{jemalloc_name}/releases/download/%{jemalloc_ver}/%{jemalloc_name}-%{jemalloc_ver}.tar.bz2
7e63d6
%endif
dd314a
Patch01:          0001-Bug-2027783-CVE-2021-4091-389-ds-base-double-free-of.patch
858e64
7e63d6
%description
7e63d6
389 Directory Server is an LDAPv3 compliant server.  The base package includes
7e63d6
the LDAP server and command line utilities for server administration.
7e63d6
%if %{use_asan}
7e63d6
WARNING! This build is linked to Address Sanitisation libraries. This probably
7e63d6
isn't what you want. Please contact support immediately.
7e63d6
Please see http://seclists.org/oss-sec/2016/q1/363 for more information.
7e63d6
%endif
7e63d6
7e63d6
%package          libs
7e63d6
Summary:          Core libraries for 389 Directory Server
7e63d6
BuildRequires:    nspr-devel
7e63d6
BuildRequires:    nss-devel >= 3.34
7e63d6
BuildRequires:    openldap-devel
7e63d6
BuildRequires:    libdb-devel
7e63d6
BuildRequires:    cyrus-sasl-devel
7e63d6
BuildRequires:    libicu-devel
7e63d6
BuildRequires:    pcre-devel
7e63d6
BuildRequires:    libtalloc-devel
7e63d6
BuildRequires:    libevent-devel
7e63d6
BuildRequires:    libtevent-devel
7e63d6
Requires:         krb5-libs
7e63d6
Requires:         libevent
7e63d6
BuildRequires:    systemd-devel
7e63d6
BuildRequires:    make
7e63d6
Provides:         svrcore = 4.1.4
7e63d6
Conflicts:        svrcore
7e63d6
Obsoletes:        svrcore <= 4.1.3
7e63d6
7e63d6
%description      libs
7e63d6
Core libraries for the 389 Directory Server base package.  These libraries
7e63d6
are used by the main package and the -devel package.  This allows the -devel
7e63d6
package to be installed with just the -libs package and without the main package.
7e63d6
7e63d6
%package          devel
7e63d6
Summary:          Development libraries for 389 Directory Server
7e63d6
Requires:         %{name}-libs = %{version}-%{release}
7e63d6
Requires:         pkgconfig
7e63d6
Requires:         nspr-devel
7e63d6
Requires:         nss-devel >= 3.34
7e63d6
Requires:         openldap-devel
7e63d6
Requires:         libtalloc
7e63d6
Requires:         libevent
7e63d6
Requires:         libtevent
7e63d6
Requires:         systemd-libs
7e63d6
Provides:         svrcore-devel = 4.1.4
7e63d6
Conflicts:        svrcore-devel
7e63d6
Obsoletes:        svrcore-devel <= 4.1.3
7e63d6
7e63d6
%description      devel
7e63d6
Development Libraries and headers for the 389 Directory Server base package.
7e63d6
7e63d6
%package          snmp
7e63d6
Summary:          SNMP Agent for 389 Directory Server
7e63d6
Requires:         %{name} = %{version}-%{release}
7e63d6
7e63d6
Obsoletes:        %{name} <= 1.4.0.0
7e63d6
7e63d6
%description      snmp
7e63d6
SNMP Agent for the 389 Directory Server base package.
7e63d6
7e63d6
%package -n python%{python3_pkgversion}-lib389
7e63d6
Summary:  A library for accessing, testing, and configuring the 389 Directory Server
7e63d6
BuildArch:        noarch
7e63d6
Requires: openssl
7e63d6
Requires: iproute
7e63d6
Recommends: bash-completion
7e63d6
Requires: python%{python3_pkgversion}
7e63d6
Requires: python%{python3_pkgversion}-distro
7e63d6
Requires: python%{python3_pkgversion}-ldap
7e63d6
Requires: python%{python3_pkgversion}-six
7e63d6
Requires: python%{python3_pkgversion}-pyasn1
7e63d6
Requires: python%{python3_pkgversion}-pyasn1-modules
7e63d6
Requires: python%{python3_pkgversion}-dateutil
7e63d6
Requires: python%{python3_pkgversion}-argcomplete
7e63d6
Requires: python%{python3_pkgversion}-libselinux
7e63d6
Requires: python%{python3_pkgversion}-setuptools
7e63d6
%{?python_provide:%python_provide python%{python3_pkgversion}-lib389}
7e63d6
7e63d6
%description -n python%{python3_pkgversion}-lib389
7e63d6
This module contains tools and libraries for accessing, testing,
7e63d6
 and configuring the 389 Directory Server.
7e63d6
7e63d6
%if %{use_cockpit}
7e63d6
%package -n cockpit-389-ds
7e63d6
Summary:          Cockpit UI Plugin for configuring and administering the 389 Directory Server
7e63d6
BuildArch:        noarch
7e63d6
Requires:         cockpit
7e63d6
Requires:         389-ds-base
7e63d6
Requires:         python%{python3_pkgversion}
7e63d6
Requires:         python%{python3_pkgversion}-lib389
7e63d6
7e63d6
%description -n cockpit-389-ds
7e63d6
A cockpit UI Plugin for configuring and administering the 389 Directory Server
7e63d6
%endif
7e63d6
7e63d6
%prep
7e63d6
7e63d6
%autosetup -p1 -v -n %{name}-%{version}
7e63d6
%if %{bundle_jemalloc}
7e63d6
%setup -q -n %{name}-%{version} -T -D -b 3
7e63d6
%endif
7e63d6
7e63d6
cp %{SOURCE2} README.devel
7e63d6
7e63d6
# The configure macro will modify some autoconf-related files, which upsets
7e63d6
# cargo when it tries to verify checksums in those files.  If we just truncate
7e63d6
# that file list, cargo won't have anything to complain about.
7e63d6
find vendor -name .cargo-checksum.json \
7e63d6
  -exec sed -i.uncheck -e 's/"files":{[^}]*}/"files":{ }/' '{}' '+'
7e63d6
7e63d6
%build
7e63d6
7e63d6
OPENLDAP_FLAG="--with-openldap"
7e63d6
%{?with_tmpfiles_d: TMPFILES_FLAG="--with-tmpfiles-d=%{with_tmpfiles_d}"}
7e63d6
# hack hack hack https://bugzilla.redhat.com/show_bug.cgi?id=833529
7e63d6
NSSARGS="--with-nss-lib=%{_libdir} --with-nss-inc=%{_includedir}/nss3"
7e63d6
7e63d6
%if %{use_asan}
7e63d6
ASAN_FLAGS="--enable-asan --enable-debug"
7e63d6
%endif
7e63d6
7e63d6
%if %{use_rust}
7e63d6
RUST_FLAGS="--enable-rust --enable-rust-offline"
7e63d6
%endif
7e63d6
7e63d6
%if !%{use_cockpit}
7e63d6
COCKPIT_FLAGS="--disable-cockpit"
7e63d6
%endif 
7e63d6
7e63d6
%if %{use_clang}
7e63d6
export CC=clang
7e63d6
export CXX=clang++
7e63d6
CLANG_FLAGS="--enable-clang"
7e63d6
%endif
7e63d6
7e63d6
%if %{bundle_jemalloc}
7e63d6
# Override page size, bz #1545539
7e63d6
# 4K
7e63d6
%ifarch %ix86 %arm x86_64 s390x
7e63d6
%define lg_page --with-lg-page=12
7e63d6
%endif
7e63d6
7e63d6
# 64K
7e63d6
%ifarch ppc64 ppc64le aarch64
7e63d6
%define lg_page --with-lg-page=16
7e63d6
%endif
7e63d6
7e63d6
# Override huge page size on aarch64
7e63d6
# 2M instead of 512M
7e63d6
%ifarch aarch64
7e63d6
%define lg_hugepage --with-lg-hugepage=21
7e63d6
%endif
7e63d6
7e63d6
# Build jemalloc
7e63d6
pushd ../%{jemalloc_name}-%{jemalloc_ver}
7e63d6
%configure \
7e63d6
        --libdir=%{_libdir}/%{pkgname}/lib \
7e63d6
        --bindir=%{_libdir}/%{pkgname}/bin \
7e63d6
        --enable-prof
7e63d6
make %{?_smp_mflags}
7e63d6
popd
7e63d6
%endif
7e63d6
7e63d6
# Enforce strict linking
7e63d6
%define _ld_strict_symbol_defs 1
7e63d6
7e63d6
# Rebuild the autotool artifacts now.
7e63d6
autoreconf -fiv
7e63d6
7e63d6
%configure --enable-autobind --with-selinux $TMPFILES_FLAG \
7e63d6
           --with-systemd \
7e63d6
           --with-systemdsystemunitdir=%{_unitdir} \
7e63d6
           --with-systemdsystemconfdir=%{_sysconfdir}/systemd/system \
7e63d6
           --with-systemdgroupname=%{groupname}  \
7e63d6
           --libexecdir=%{_libexecdir}/%{pkgname} \
7e63d6
           $NSSARGS $ASAN_FLAGS $RUST_FLAGS $CLANG_FLAGS $COCKPIT_FLAGS \
858e64
           --enable-cmocka --enable-new-dtags
7e63d6
7e63d6
7e63d6
# lib389
7e63d6
pushd ./src/lib389
7e63d6
%py3_build
7e63d6
popd
7e63d6
# argparse-manpage dynamic man pages have hardcoded man v1 in header,
7e63d6
# need to change it to v8
7e63d6
sed -i  "1s/\"1\"/\"8\"/" %{_builddir}/%{name}-%{version}/src/lib389/man/dsconf.8
7e63d6
sed -i  "1s/\"1\"/\"8\"/" %{_builddir}/%{name}-%{version}/src/lib389/man/dsctl.8
7e63d6
sed -i  "1s/\"1\"/\"8\"/" %{_builddir}/%{name}-%{version}/src/lib389/man/dsidm.8
7e63d6
sed -i  "1s/\"1\"/\"8\"/" %{_builddir}/%{name}-%{version}/src/lib389/man/dscreate.8
7e63d6
7e63d6
# Generate symbolic info for debuggers
7e63d6
export XCFLAGS=$RPM_OPT_FLAGS
7e63d6
7e63d6
#make %{?_smp_mflags}
7e63d6
make
7e63d6
7e63d6
%install
7e63d6
7e63d6
mkdir -p %{buildroot}%{_datadir}/gdb/auto-load%{_sbindir}
7e63d6
%if %{use_cockpit}
7e63d6
mkdir -p %{buildroot}%{_datadir}/cockpit
7e63d6
%endif
7e63d6
make DESTDIR="$RPM_BUILD_ROOT" install
7e63d6
7e63d6
%if %{use_cockpit}
7e63d6
find %{buildroot}%{_datadir}/cockpit/389-console -type d | sed -e "s@%{buildroot}@@" | sed -e 's/^/\%dir /' > cockpit.list
7e63d6
find %{buildroot}%{_datadir}/cockpit/389-console -type f | sed -e "s@%{buildroot}@@" >> cockpit.list
7e63d6
%endif
7e63d6
7e63d6
# Copy in our docs from doxygen.
7e63d6
cp -r %{_builddir}/%{name}-%{version}/man/man3 $RPM_BUILD_ROOT/%{_mandir}/man3
7e63d6
7e63d6
# lib389
7e63d6
pushd src/lib389
7e63d6
%py3_install
7e63d6
popd
7e63d6
7e63d6
mkdir -p $RPM_BUILD_ROOT/var/log/%{pkgname}
7e63d6
mkdir -p $RPM_BUILD_ROOT/var/lib/%{pkgname}
7e63d6
mkdir -p $RPM_BUILD_ROOT/var/lock/%{pkgname}
7e63d6
7e63d6
# for systemd
7e63d6
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/systemd/system/%{groupname}.wants
7e63d6
7e63d6
# remove libtool archives and static libs
7e63d6
rm -f $RPM_BUILD_ROOT%{_libdir}/%{pkgname}/*.a
7e63d6
rm -f $RPM_BUILD_ROOT%{_libdir}/%{pkgname}/*.la
7e63d6
rm -f $RPM_BUILD_ROOT%{_libdir}/%{pkgname}/plugins/*.a
7e63d6
rm -f $RPM_BUILD_ROOT%{_libdir}/%{pkgname}/plugins/*.la
7e63d6
rm -f $RPM_BUILD_ROOT%{_libdir}/libsvrcore.a
7e63d6
rm -f $RPM_BUILD_ROOT%{_libdir}/libsvrcore.la
7e63d6
7e63d6
%if %{bundle_jemalloc}
7e63d6
pushd ../%{jemalloc_name}-%{jemalloc_ver}
7e63d6
make DESTDIR="$RPM_BUILD_ROOT" install_lib install_bin
7e63d6
cp -pa COPYING ../%{name}-%{version}/COPYING.jemalloc
7e63d6
cp -pa README ../%{name}-%{version}/README.jemalloc
7e63d6
popd
7e63d6
%endif
7e63d6
7e63d6
%check
7e63d6
# This checks the code, if it fails it prints why, then re-raises the fail to shortcircuit the rpm build.
7e63d6
if ! make DESTDIR="$RPM_BUILD_ROOT" check; then cat ./test-suite.log && false; fi
7e63d6
7e63d6
%post
7e63d6
if [ -n "$DEBUGPOSTTRANS" ] ; then
7e63d6
    output=$DEBUGPOSTTRANS
7e63d6
    output2=${DEBUGPOSTTRANS}.upgrade
7e63d6
else
7e63d6
    output=/dev/null
7e63d6
    output2=/dev/null
7e63d6
fi
7e63d6
# reload to pick up any changes to systemd files
7e63d6
/bin/systemctl daemon-reload >$output 2>&1 || :
7e63d6
7e63d6
# https://fedoraproject.org/wiki/Packaging:UsersAndGroups#Soft_static_allocation
7e63d6
# Soft static allocation for UID and GID
7e63d6
USERNAME="dirsrv"
7e63d6
ALLOCATED_UID=389
7e63d6
GROUPNAME="dirsrv"
7e63d6
ALLOCATED_GID=389
7e63d6
HOMEDIR="/usr/share/dirsrv"
7e63d6
7e63d6
getent group $GROUPNAME >/dev/null || /usr/sbin/groupadd -f -g $ALLOCATED_GID -r $GROUPNAME
7e63d6
if ! getent passwd $USERNAME >/dev/null ; then
7e63d6
    if ! getent passwd $ALLOCATED_UID >/dev/null ; then
7e63d6
      /usr/sbin/useradd -r -u $ALLOCATED_UID -g $GROUPNAME -d $HOMEDIR -s /sbin/nologin -c "user for 389-ds-base" $USERNAME
7e63d6
    else
7e63d6
      /usr/sbin/useradd -r -g $GROUPNAME -d $HOMEDIR -s /sbin/nologin -c "user for 389-ds-base" $USERNAME
7e63d6
    fi
7e63d6
fi
7e63d6
7e63d6
# Reload our sysctl before we restart (if we can)
7e63d6
sysctl --system &> $output; true
7e63d6
7e63d6
# Gather the running instances so we can restart them
7e63d6
instbase="%{_sysconfdir}/%{pkgname}"
7e63d6
ninst=0
7e63d6
for dir in $instbase/slapd-* ; do
7e63d6
    echo dir = $dir >> $output 2>&1 || :
7e63d6
    if [ ! -d "$dir" ] ; then continue ; fi
7e63d6
    case "$dir" in *.removed) continue ;; esac
7e63d6
    basename=`basename $dir`
7e63d6
    inst="%{pkgname}@`echo $basename | sed -e 's/slapd-//g'`"
7e63d6
    echo found instance $inst - getting status  >> $output 2>&1 || :
7e63d6
    if /bin/systemctl -q is-active $inst ; then
7e63d6
       echo instance $inst is running >> $output 2>&1 || :
7e63d6
       instances="$instances $inst"
7e63d6
    else
7e63d6
       echo instance $inst is not running >> $output 2>&1 || :
7e63d6
    fi
7e63d6
    ninst=`expr $ninst + 1`
7e63d6
done
7e63d6
if [ $ninst -eq 0 ] ; then
7e63d6
    echo no instances to upgrade >> $output 2>&1 || :
7e63d6
    exit 0 # have no instances to upgrade - just skip the rest
7e63d6
else
7e63d6
    # restart running instances
7e63d6
    echo shutting down all instances . . . >> $output 2>&1 || :
7e63d6
    for inst in $instances ; do
7e63d6
        echo stopping instance $inst >> $output 2>&1 || :
7e63d6
        /bin/systemctl stop $inst >> $output 2>&1 || :
7e63d6
    done
7e63d6
    for inst in $instances ; do
7e63d6
        echo starting instance $inst >> $output 2>&1 || :
7e63d6
        /bin/systemctl start $inst >> $output 2>&1 || :
7e63d6
    done
7e63d6
fi
7e63d6
7e63d6
7e63d6
%preun
7e63d6
if [ $1 -eq 0 ]; then # Final removal
7e63d6
    # remove instance specific service files/links
7e63d6
    rm -rf %{_sysconfdir}/systemd/system/%{groupname}.wants/* > /dev/null 2>&1 || :
7e63d6
fi
7e63d6
7e63d6
%postun
7e63d6
if [ $1 = 0 ]; then # Final removal
7e63d6
    rm -rf /var/run/%{pkgname}
7e63d6
fi
7e63d6
7e63d6
%post snmp
7e63d6
%systemd_post %{pkgname}-snmp.service
7e63d6
7e63d6
%preun snmp
7e63d6
%systemd_preun %{pkgname}-snmp.service %{groupname}
7e63d6
7e63d6
%postun snmp
7e63d6
%systemd_postun_with_restart %{pkgname}-snmp.service
7e63d6
7e63d6
exit 0
7e63d6
7e63d6
%files
7e63d6
%if %{bundle_jemalloc}
7e63d6
%doc LICENSE LICENSE.GPLv3+ LICENSE.openssl README.jemalloc
7e63d6
%license COPYING.jemalloc
7e63d6
%else
7e63d6
%doc LICENSE LICENSE.GPLv3+ LICENSE.openssl
7e63d6
%endif
7e63d6
%dir %{_sysconfdir}/%{pkgname}
7e63d6
%dir %{_sysconfdir}/%{pkgname}/schema
7e63d6
%config(noreplace)%{_sysconfdir}/%{pkgname}/schema/*.ldif
7e63d6
%dir %{_sysconfdir}/%{pkgname}/config
7e63d6
%dir %{_sysconfdir}/systemd/system/%{groupname}.wants
7e63d6
%config(noreplace)%{_sysconfdir}/%{pkgname}/config/slapd-collations.conf
7e63d6
%config(noreplace)%{_sysconfdir}/%{pkgname}/config/certmap.conf
7e63d6
%{_datadir}/%{pkgname}
7e63d6
%{_datadir}/gdb/auto-load/*
7e63d6
%{_unitdir}
7e63d6
%{_bindir}/dbscan
7e63d6
%{_mandir}/man1/dbscan.1.gz
7e63d6
%{_bindir}/ds-replcheck
7e63d6
%{_mandir}/man1/ds-replcheck.1.gz
7e63d6
%{_bindir}/ds-logpipe.py
7e63d6
%{_mandir}/man1/ds-logpipe.py.1.gz
7e63d6
%{_bindir}/ldclt
7e63d6
%{_mandir}/man1/ldclt.1.gz
7e63d6
%{_bindir}/logconv.pl
7e63d6
%{_mandir}/man1/logconv.pl.1.gz
7e63d6
%{_bindir}/pwdhash
7e63d6
%{_mandir}/man1/pwdhash.1.gz
7e63d6
#%caps(CAP_NET_BIND_SERVICE=pe) {_sbindir}/ns-slapd
7e63d6
%{_sbindir}/ns-slapd
7e63d6
%{_mandir}/man8/ns-slapd.8.gz
7e63d6
%{_sbindir}/openldap_to_ds
7e63d6
%{_mandir}/man8/openldap_to_ds.8.gz
7e63d6
%{_libexecdir}/%{pkgname}/ds_systemd_ask_password_acl
dd314a
%{_libexecdir}/%{pkgname}/ds_selinux_restorecon.sh
7e63d6
%{_mandir}/man5/99user.ldif.5.gz
7e63d6
%{_mandir}/man5/certmap.conf.5.gz
7e63d6
%{_mandir}/man5/slapd-collations.conf.5.gz
7e63d6
%{_mandir}/man5/dirsrv.5.gz
7e63d6
%{_mandir}/man5/dirsrv.systemd.5.gz
7e63d6
%{_libdir}/%{pkgname}/python
7e63d6
%dir %{_libdir}/%{pkgname}/plugins
7e63d6
%{_libdir}/%{pkgname}/plugins/*.so
7e63d6
# This has to be hardcoded to /lib - $libdir changes between lib/lib64, but
7e63d6
# sysctl.d is always in /lib.
7e63d6
%{_prefix}/lib/sysctl.d/*
7e63d6
%dir %{_localstatedir}/lib/%{pkgname}
7e63d6
%dir %{_localstatedir}/log/%{pkgname}
7e63d6
%ghost %dir %{_localstatedir}/lock/%{pkgname}
7e63d6
%exclude %{_sbindir}/ldap-agent*
7e63d6
%exclude %{_mandir}/man1/ldap-agent.1.gz
7e63d6
%exclude %{_unitdir}/%{pkgname}-snmp.service
7e63d6
%if %{bundle_jemalloc}
7e63d6
%{_libdir}/%{pkgname}/lib/
7e63d6
%{_libdir}/%{pkgname}/bin/
7e63d6
%exclude %{_libdir}/%{pkgname}/bin/jemalloc-config
7e63d6
%exclude %{_libdir}/%{pkgname}/bin/jemalloc.sh
7e63d6
%exclude %{_libdir}/%{pkgname}/lib/libjemalloc.a
7e63d6
%exclude %{_libdir}/%{pkgname}/lib/libjemalloc.so
7e63d6
%exclude %{_libdir}/%{pkgname}/lib/libjemalloc_pic.a
7e63d6
%exclude %{_libdir}/%{pkgname}/lib/pkgconfig
7e63d6
%endif
7e63d6
7e63d6
%files devel
7e63d6
%doc LICENSE LICENSE.GPLv3+ LICENSE.openssl README.devel
7e63d6
%{_mandir}/man3/*
7e63d6
%{_includedir}/svrcore.h
7e63d6
%{_includedir}/%{pkgname}
7e63d6
%{_libdir}/libsvrcore.so
7e63d6
%{_libdir}/%{pkgname}/libslapd.so
7e63d6
%{_libdir}/%{pkgname}/libns-dshttpd.so
7e63d6
%{_libdir}/%{pkgname}/libldaputil.so
7e63d6
%{_libdir}/pkgconfig/svrcore.pc
7e63d6
%{_libdir}/pkgconfig/dirsrv.pc
7e63d6
7e63d6
%files libs
7e63d6
%doc LICENSE LICENSE.GPLv3+ LICENSE.openssl README.devel
7e63d6
%dir %{_libdir}/%{pkgname}
7e63d6
%{_libdir}/libsvrcore.so.*
7e63d6
%{_libdir}/%{pkgname}/libslapd.so.*
7e63d6
%{_libdir}/%{pkgname}/libns-dshttpd.so.*
7e63d6
%{_libdir}/%{pkgname}/libldaputil.so.*
7e63d6
%{_libdir}/%{pkgname}/librewriters.so*
7e63d6
%if %{bundle_jemalloc}
7e63d6
%{_libdir}/%{pkgname}/lib/libjemalloc.so.2
7e63d6
%endif
7e63d6
7e63d6
%files snmp
7e63d6
%doc LICENSE LICENSE.GPLv3+ LICENSE.openssl README.devel
7e63d6
%config(noreplace)%{_sysconfdir}/%{pkgname}/config/ldap-agent.conf
7e63d6
%{_sbindir}/ldap-agent*
7e63d6
%{_mandir}/man1/ldap-agent.1.gz
7e63d6
%{_unitdir}/%{pkgname}-snmp.service
7e63d6
7e63d6
%files -n python%{python3_pkgversion}-lib389
7e63d6
%doc LICENSE LICENSE.GPLv3+
7e63d6
%{python3_sitelib}/lib389*
7e63d6
%{_sbindir}/dsconf
7e63d6
%{_mandir}/man8/dsconf.8.gz
7e63d6
%{_sbindir}/dscreate
7e63d6
%{_mandir}/man8/dscreate.8.gz
7e63d6
%{_sbindir}/dsctl
7e63d6
%{_mandir}/man8/dsctl.8.gz
7e63d6
%{_sbindir}/dsidm
7e63d6
%{_mandir}/man8/dsidm.8.gz
7e63d6
%{_libexecdir}/%{pkgname}/dscontainer
7e63d6
7e63d6
%if %{use_cockpit}
7e63d6
%files -n cockpit-389-ds -f cockpit.list
7e63d6
%{_datarootdir}/metainfo/389-console/org.port389.cockpit_console.metainfo.xml
7e63d6
%doc README.md
7e63d6
%endif
7e63d6
7e63d6
%changelog
dd314a
* Fri Jan 28 2022 Mark Reynolds <mreynolds@redhat.com> - 2.0.14-1
dd314a
- Bump version to 2.0.14-1
dd314a
- Resolves: Bug 2034880 - ipa-restore command is failing when restore after uninstalling the server (part2)
dd314a
dd314a
* Tue Jan 25 2022 Mark Reynolds <mreynolds@redhat.com> - 2.0.13-1
dd314a
- Bump version to 2.0.13-1
dd314a
- Resolves: Bug 2034880 - ipa-restore command is failing when restore after uninstalling the server
dd314a
- Resolves: Bug 2045098 - Demoting a supplier to a consumer crashes the server
dd314a
dd314a
* Wed Nov 24 2021 Simon Pichugin <spichugi@redhat.com> - 2.0.11-2
dd314a
- Bump version to 2.0.11-2
dd314a
- Revert commit "Set db home directory by default"
dd314a
858e64
* Thu Nov 18 2021 Mark Reynolds <mreynolds@redhat.com> - 2.0.11-1
858e64
- Bump version to 2.0.11-1
858e64
- Resolves: Bug 2024693 - Rebase RHEL 9.0 with 389-ds-base
858e64
- Resolves: Bug 2015996 - Log the Auto Member invalid regex rules in the LDAP errors log
858e64
- Resolves: Bug 2020554 - ipa user-add fails with "gecos: value invalid per syntax: Invalid syntax"
858e64
- Resolves: Bug 1779685 - PBKDF2 hashing does not work in FIPS mode
858e64
7e63d6
* Fri Sep 17 2021 Mark Reynolds <mreynolds@redhat.com> - 2.0.8-6
7e63d6
- Bump version to 2.0.8-6
7e63d6
- Resolves: Bug 2000420 - Not able to preserve users using "ipa user-del --preserve"
7e63d6
7e63d6
* Fri Sep 17 2021 Mark Reynolds <mreynolds@redhat.com> - 2.0.8-5
7e63d6
- Bump version to 2.0.8-5
7e63d6
- Resolves: Bug 2000420 - Not able to preserve users using "ipa user-del --preserve"
7e63d6
7e63d6
* Mon Aug 30 2021 Mark Reynolds <mreynolds@redhat.com> - 2.0.8-4
7e63d6
- Bump version to 2.0.8-4
7e63d6
- Resolves: Bug 1992609 - Fix specfile issue with applying patches
7e63d6
7e63d6
* Mon Aug 30 2021 Mark Reynolds <mreynolds@redhat.com> - 2.0.8-3
7e63d6
- Bump version to 2.0.8-3
7e63d6
- Resolves: Bug 1992609 - Fix specfile issue with applying patches
7e63d6
7e63d6
* Fri Aug 27 2021 Mark Reynolds <mreynolds@redhat.com> - 2.0.8-2
7e63d6
- Bump version to 2.0.8-2
7e63d6
- Resolves: Bug 1998464 - LDAP server crashes when dnaInterval attribute is set to 0
7e63d6
7e63d6
* Mon Aug 23 2021 Mark Reynolds <mreynolds@redhat.com> - 2.0.8-1
7e63d6
- Bump version to 2.0.8-1
7e63d6
- Resolves: Bug 1992609 - EntryUUID syntax plugin breaks replication with older versions
7e63d6
7e63d6
* Thu Aug 12 2021 Viktor Ashirov <vashirov@redhat.com> - 2.0.7-3
7e63d6
- Remove unused relprefix and prerel macros that break rpmdev-bumpspec logic
7e63d6
  Related: rhbz#1991688
7e63d6
7e63d6
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.0.7-2.1
7e63d6
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
7e63d6
  Related: rhbz#1991688
7e63d6
7e63d6
* Thu Aug  5 2021 Simon Pichugin <spichugi@redhat.com> - 2.0.7-2
7e63d6
- Resolves: Bug 1988759 - 389-ds-base: Rebuild does not switch to OpenSSL 3.0 Beta ABI
7e63d6
- Force to require nss version greater or equal as the version available at the build time
7e63d6
7e63d6
* Fri Jul 16 2021 Mark Reynolds <mreynolds@redhat.com> - 2.0.7-1
7e63d6
- Bump version to 2.0.7-1
7e63d6
- Resolves: Bug 1982789 - 389-ds-base: CRYPT password hash with asterisk allows any bind attempt to succeed
7e63d6
7e63d6
* Thu Jul 8 2021 Mark Reynolds <mreynolds@redhat.com> - 2.0.6-3
7e63d6
- Bump version to 2.0.6-3
7e63d6
- Resolves: Bug 1978618 - Drop argparse-manpage runtime dependency
7e63d6
7e63d6
* Mon Jun 28 2021 Simon Pichugin <spichugi@redhat.com> - 2.0.6-2
7e63d6
- Roll back to openssl 0.10.33 rust crate as it's required for OpenSSL 3.0.0-alpha16
7e63d6
7e63d6
* Thu Jun 24 2021 Mark Reynolds <mreynolds@redhat.com> - 2.0.6-1
7e63d6
- Bump version to 2.0.6
7e63d6
- Resolves: Bug 1970559 - Crash in dynamic_plugins_test.py::test_acceptance
7e63d6
- Resolves: Bug 1843522 - move CL followup (1) - don't use hardcoded filename
7e63d6
- Resolves: Bug 1843524 - move CL followup (3) - import ldif2cl task should not close all changelogs
7e63d6
- Resolves: Bug 220222 - [RFE] support for RFC 4530 entryUUID attribute
7e63d6
- Resolves: Bug 1859296 - Remove DES to AES conversion code
7e63d6
- Resolves: Bug 1970586 - MODRDN fails with err=32 in managed_entry_test.py::test_mentry01
7e63d6
- Resolves: Bug 1970613 - dbscan crashes with SIGABRT in dirsrvtests/tests/suites/password/regression_test.py::test_unhashed_pw_switch
7e63d6
- Resolves: Bug 1970620 - memberofAutoAddOC attribute can't be added to Memberof plugin when dynamic plugins are on
7e63d6
- Resolves: Bug 1970586 - MODRDN fails with err=32 in managed_entry_test.py::test_mentry01
7e63d6
- Resolves: Bug 1910941 - CVE-2020-35518 389-ds-base: information disclosure during the binding of a DN
7e63d6
7e63d6
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.0.5-1.1
7e63d6
- Rebuilt for RHEL 9 BETA for openssl 3.0
7e63d6
  Related: rhbz#1971065
7e63d6
7e63d6
* Sun May 30 2021 Mark Reynolds <mreynolds@redhat.com> - 2.0.5-1
7e63d6
- Bump version to 2.0.5
7e63d6
- Issue 4778 - RFE - Allow setting TOD for db compaction and add task
7e63d6
- Issue 4169 - UI - Port plugin tables to PF4
7e63d6
- Issue 4656 - Allow backward compatilbity for replication plugin name change
7e63d6
- Issue 4764 - replicated operation sometime checks ACI (#4783)
7e63d6
- Issue 2820 - Fix CI test suite issues
7e63d6
- Issue 4781 - There are some typos in man-pages
7e63d6
- Issue 4773 - Enable interval feature of DNA plugin
7e63d6
- Issue 4623 - RFE - Monitor the current DB locks (#4762)
7e63d6
- Issue 3555 - Fix UI audit issue
7e63d6
- Issue 4725 - Fix compiler warnings
7e63d6
- Issue 4770 - Lower FIPS logging severity
7e63d6
- Issue 4765 - database suffix unexpectdly changed from .db to .db4 (#4766)
7e63d6
- Issue 4725 - [RFE] DS - Update the password policy to support a Temporary Password Rules (#4727)
7e63d6
- Issue 4747 - Remove unstable/unstatus tests from PRCI (#4748)
7e63d6
- Issue 4759 - Fix coverity issue (#4760)
7e63d6
- Issue 4169 - UI - Migrate Buttons to PF4 (#4745)
7e63d6
- Issue 4714 - dscontainer fails with rootless podman
7e63d6
- Issue 4750 - Fix compiler warning in retrocl (#4751)
7e63d6
- Issue 4742 - UI - should always use LDAPI path when calling CLI
7e63d6
- Issue 4169 - UI - Migrate Server, Security, and Schema tables to PF4
7e63d6
- Issue 4667 - incorrect accounting of readers in vattr rwlock (#4732)
7e63d6
- Issue 4701 - RFE - Exclude attributes from retro changelog (#4723)
7e63d6
- Issue 4740 - Fix CI lib389 userPwdPolicy and subtreePwdPolicy (#4741)
7e63d6
- Issue 4711 - SECURITY FIX - SIGSEV with sync_repl (#4738)
7e63d6
- Issue 4734 - import of entry with no parent warning (#4735)
7e63d6
- Issue 4729 - GitHub Actions fails to run pytest tests
7e63d6
- Issue 4656 - Remove problematic language from source code
7e63d6
- Issue 4632 - dscontainer: SyntaxWarning: "is" with a literal.
7e63d6
- Issue 4169 - UI - migrate replication tables to PF4
7e63d6
- Issue 4637 - ndn cache leak (#4724)
7e63d6
- Issue 4577 - Fix ASAN flags in specfile
7e63d6
- Issue 4169 - UI - PF4 migration - database tables
7e63d6
- issue 4653 - refactor ldbm backend to allow replacement of BDB - phase 3e - dbscan (#4709)
7e63d6
7e63d6
* Mon May 24 2021 Simon Pichugin <spichugi@redhat.com> - 2.0.3-4
7e63d6
- Initial support for OpenSSL 3.0.0-alpha16
7e63d6
7e63d6
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 2.0.3-3.1
7e63d6
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
7e63d6
7e63d6
* Fri Feb 26 2021 Alexander Bokovoy <abokovoy@redhat.com> - 2.0.3-3
7e63d6
- Remove a revert of the fix for Issue 4609 - CVE - info disclosure when authenticating(breaks Dogtag)
7e63d6
- Dogtag has fixed own code that failed in the presence of the fix for Issue 4609
7e63d6
7e63d6
* Fri Feb 19 2021 Mark Reynolds <mreynolds@redhat.com> - 2.0.3-2
7e63d6
- Bump version to 2.0.3-2
7e63d6
- Revert Issue 4609 - CVE - info disclosure when authenticating(breaks DogTag)
7e63d6
7e63d6
* Fri Feb 12 2021 Mark Reynolds <mreynolds@redhat.com> - 2.0.3-1
7e63d6
- Bump version to 2.0.3
7e63d6
- Issue 4619 - remove pytest requirement from lib389
7e63d6
- Issue 4615 - log message when psearch first exceeds max threads per conn
7e63d6
- Issue 4469 - Backend redesing phase 3a - implement dbimpl API and use it in back-ldbm (#4618)
7e63d6
- Issue 4324 - Some architectures the cache line size file does not exist
7e63d6
- Issue 4593 - RFE - Print help when nsSSLPersonalitySSL is not found (#4614)
7e63d6
- Issue 4469 - Backend redesign phase 3a - bdb dependency removal from back-ldbm
7e63d6
- PR 4564 - Update dscontainer
7e63d6
- Issue 4149 - UI - port TreeView and opther components to PF4
7e63d6
- Issue 4577 - Add GitHub actions
7e63d6
- Issue 4591 - RFE - improve openldap_to_ds help and features (#4607)
7e63d6
- issue 4612 - Fix pytest fourwaymmr_test for non root user (#4613)
7e63d6
- Issue 4609 - CVE - info disclosure when authenticating
7e63d6
- Issue 4348 - Add tests for dsidm
7e63d6
- Issue 4571 - Stale libdb-utils dependency
7e63d6
- Issue 4600 - performance modify rate: reduce lock contention on the object extension factory (#4601)
7e63d6
- Issue 4577 - Add GitHub actions
7e63d6
- Issue 4588 - BUG - unable to compile without xcrypt (#4589)
7e63d6
- Issue 4579 - libasan detects heap-use-after-free in URP test (#4584)
7e63d6
- Issue 4581 - A failed re-indexing leaves the database in broken state (#4582)
7e63d6
- Issue 4348 - Add tests for dsidm
7e63d6
- Issue 4577 - Add GitHub actions
7e63d6
- Issue 4563 - Failure on s390x: 'Fails to split RDN "o=pki-tomcat-CA" into components' (#4573)
7e63d6
- Issue 4093 - fix compiler warnings and update doxygen
7e63d6
- Issue 4575 - Update test docstrings metadata
7e63d6
- Issue 4526 - sync_repl: when completing an operation in the pending list, it can select the wrong operation (#4553)
7e63d6
- Issue 4324 - Performance search rate: change entry cache monitor to recursive pthread mutex (#4569)
7e63d6
- Issue 4513 - Add DS version check to SSL version test (#4570)
7e63d6
- Issue 5442 - Search results are different between RHDS10 and RHDS11
7e63d6
- Issue 4396 - Minor memory leak in backend (#4558)
7e63d6
- Issue 4513 - Fix replication CI test failures (#4557)
7e63d6
- Issue 4513 - Fix replication CI test failures (#4557)
7e63d6
- Issue 4153 - Added a CI test (#4556)
7e63d6
- Issue 4506 - BUG - fix oob alloc for fds (#4555)
7e63d6
- Issue 4548 - CLI - dsconf needs better root DN access control plugin validation
7e63d6
- Issue 4506 - Temporary fix for io issues (#4516)
7e63d6
- Issue 4535 - lib389 - Fix log function in backends.py
7e63d6
- Issue 4534 - libasan read buffer overflow in filtercmp (#4541)
7e63d6
- Issue 4544 - Compiler warnings on krb5 functions (#4545)
7e63d6
- Update rpm.mk for RUST tarballs
7e63d6
7e63d6
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-1.1
7e63d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
7e63d6
7e63d6
* Thu Jan 14 2021 Mark Reynolds <mreynolds@redhat.com> - 2.0.2-1
7e63d6
- Bump version to 2.0.2
7e63d6
- Issue 4539 - BUG - no such file if no overlays in openldap during migration (#4540)
7e63d6
- Issue 4528 - Fix cn=monitor SCOPE_ONE search (#4529)
7e63d6
- Issue 4535 - lib389 - healthcheck throws exception if backend is not replicated
7e63d6
- Issue 4537 - Use KRB5_CLIENT_KTNAME for client keytabs (#4523)
7e63d6
- Issue 4513 - CI Tests - fix test failures
7e63d6
- Issue 4504 - insure that repl_monitor_test use ldapi (for RHEL) - fix merge issue (#4533)
7e63d6
- Issue 4315 - performance search rate: nagle triggers high rate of setsocketopt
7e63d6
- Issue 4504 - pytest test_dsconf_replication_monitor fails on RHEL - Fix merging issue (#4530)
7e63d6
- Issue 4504 - Insure ldapi is enabled in repl_monitor_test.py (Needed on RHEL) (#4527)
7e63d6
- Issue 4506 - BUG - Fix bounds on fd table population (#4520)
7e63d6
- Issue 4521 - DS crash in deref plugin if dereferenced entry exists but is not returned by internal search (#4525)
7e63d6
- Issue 4219 - Log internal unindexed searches (notes=A)
7e63d6
- Issue 4384 - Separate eventq into REALTIME and MONOTONIC
7e63d6
- Issue 4381 - RFE - LDAPI authentication DN rewritter
7e63d6
- Issue 4513 - Fix schema test and lib389 task module (#4514)
7e63d6
- Issue 4414 - disk monitoring - prevent division by zero crash
7e63d6
- Issue 4517 - BUG: Multiple systemd pin warnings (#4518)
7e63d6
- Issue 4507 - Improve csngen testing task (#4508)
7e63d6
- Issue 4498 - BUG - entryuuid replication may not work (#4503)
7e63d6
- Issue 4480 - Unexpected info returned to ldap request (#4491)
7e63d6
- Issue 4504 - Fix pytest test_dsconf_replication_monitor (#4505)
7e63d6
- Issue 4373 - BUG - one line cleanup, free results in mt if ent 0 (#4502)
7e63d6
- Issue 4500 - Add cockpit enabling to dsctl
7e63d6
- Issue 4272 - RFE - add support for gost-yescrypt for hashing passwords (#4497)
7e63d6
- Issue 1795 - RFE - Enable logging for libldap and libber in error log (#4481)
7e63d6
- Issue 3522 - Remove DES to AES conversion code
7e63d6
- Issue 4492 - Changelog cache can upload updates from a wrong starting point (CSN) (#4493)
7e63d6
- Issue 4373 - BUG - calloc of size 0 in MT build (#4496)
7e63d6
- Issue 4483 - heap-use-after-free in slapi_be_getsuffix
7e63d6
- Issue 4486 - Remove random ldif file generation from import test (#4487)
7e63d6
- Issue 4224 - cleanup specfile after libsds removal
7e63d6
- Issue 4421 - Unable to build with Rust enabled in closed environment
7e63d6
- Issue 4489 - Remove return statement from a void function (#4490)
7e63d6
- Issue 4229 - RFE - Improve rust linking and build performance (#4474)
7e63d6
- Issue 4224 - openldap can become confused with entryuuid
7e63d6
- Issue 4313 - improve tests and improve readme re refdel
7e63d6
- Issue 4313 - fix potential syncrepl data corruption
7e63d6
- Issue 4419 - Warn users of skipped entries during ldif2db online import (#4476)
7e63d6
- Issue 4243 - Fix test (4th): SyncRepl plugin provides a wrong (#4475)
7e63d6
- Issue 4315 - performance search rate: nagle triggers high rate of setsocketopt (#4437)
7e63d6
- Issue 4460 - BUG - add machine name to subject alt names in SSCA (#4472)
7e63d6
- Issue 4446 - RFE - openldap password hashers
7e63d6
- Issue 4284 - dsidm fails to delete an organizationalUnit entry
7e63d6
- Issue 4243 - Fix test: SyncRepl plugin provides a wrong cookie (#4466) (#4466)
7e63d6
- Issue 4464 - RFE - clang with ds+asan+rust
7e63d6
- Issue 4105 - Remove python.six (fix regression)
7e63d6
- Issue 4384 - Use MONOTONIC clock for all timing events and conditions
7e63d6
- Issue 4418 - ldif2db - offline. Warn the user of skipped entries
7e63d6
- Issue 4243 - Fix test: SyncRepl plugin provides a wrong cookie (#4467)
7e63d6
- Issue 4460 - BUG  - lib389 should use system tls policy
7e63d6
- Issue 3657 - Add options to dsctl for dsrc file
7e63d6
- Issue 4454 - RFE - fix version numbers to allow object caching
7e63d6
- Issue 3986 - UI - Handle objectclasses that do not have X-ORIGIN set
7e63d6
- Issue 4297 - 2nd fix for on ADD replication URP issue internal searches with filter containing unescaped chars (#4439)
7e63d6
- Issue 4112 - Added a CI test (#4441)
7e63d6
- Issue 4449 - dsconf replication monitor fails to retrieve database RUV - consumer (Unavailable) (#4451)
7e63d6
- Issue 4105 - Remove python.six from lib389 (#4456)
7e63d6
- Issue 4440 - BUG - ldifgen with --start-idx option fails with unsupported operand (#4444)
7e63d6
- Issue 4410 - RFE - ndn cache with arc in rust
7e63d6
- Issue 4373 - BUG - Mapping Tree nodes can be created that are invalid
7e63d6
- Issue 4428 - BUG Paged Results with critical false causes sigsegv in chaining
7e63d6
- Issue 4428 - Paged Results with Chaining Test Case
7e63d6
- Issue 2054 - do not add referrals for masters with different data generation
7e63d6
- Issue 4383 - Do not normalize escaped spaces in a DN
7e63d6
- Issue 4432 - After a failed online import the next imports are very slow
7e63d6
- Issue 4316 - performance search rate: useless poll on network send callback (#4424)
7e63d6
- Issue 4281 - dsidm user status fails with Error: 'nsUserAccount' object has no attribute 'is_locked'
7e63d6
- Issue 4429 - NULL dereference in revert_cache()
7e63d6
- Issue 4412 - Fix CLI repl-agmt requirement for parameters (#4422)
7e63d6
- Issue 4407 - RFE - remove http client and presence plugin (#4409)
7e63d6
- Issue 4398 - build problems at alpine linux
7e63d6
- Issue 4415 - unable to query schema if there are extra parenthesis
7e63d6
7e63d6
* Thu Oct 29 2020 Mark Reynolds <mreynolds@redhat.com> - 2.0.1-1
7e63d6
- Bump version to 2.0.1
7e63d6
- Issue 4420 - change NVR to use X.X.X instead of X.X.X.X
7e63d6
- Issue 4391 - DSE config modify does not call be_postop (#4394)
7e63d6
- Issue 4218 - Verify the new wtime and optime access log keywords (#4397)
7e63d6
- Issue 4176 - CL trimming causes high CPU
7e63d6
- Issue 2058 - Add keep alive entry after on-line initialization - second version (#4399)
7e63d6
- Issue 4403 - RFE - OpenLDAP pw hash migration tests (#4408)
7e63d6
7e63d6
* Wed Oct 28 2020 Mark Reynolds <mreynolds@redhat.com> - 1.4.5.0-1
7e63d6
- Bump version to 1.4.5.0
7e63d6
- Issue 4262 - more perl removal cleanup
7e63d6
- Issue 2526 - retrocl backend created out of order
7e63d6
7e63d6
* Mon Oct 26 2020 Mark Reynolds <mreynolds@redhat.com> - 1.4.4.6-1
7e63d6
- Bump version to 1.4.4.6
7e63d6
- Issue 4262 - Remove legacy tools subpackage (final cleanup)
7e63d6
- Issue 4262 - Remove legacy tools subpackage (restart instances after rpm install)
7e63d6
- Issue 4262 - Remove legacy tools subpackage
7e63d6
- Issue 2526 - revert API change in slapi_be_getsuffix()
7e63d6
- Issue 4363 - Sync repl: per thread structure was incorrectly initialized (#4395)
7e63d6
- Issue 4392 - Update create_test.py
7e63d6
- Issue 2820 - Fix CI tests (#4365)
7e63d6
- Issue 2526 - suffix management in backends incorrect
7e63d6
- Issue 4389 - errors log with incorrectly formatted message parent_update_on_childchange
7e63d6
- Issue 4295 - Fix a closing quote issue (#4386)
7e63d6
- Issue 1199 - Misleading message in access log for idle timeout (#4385)
7e63d6
- Issue 3600 - RFE - openldap migration tooling (#4318)
7e63d6
- Issue 4176 - import ldif2cl task should not close all changelogs
7e63d6
- Issue 4159 - Healthcheck code DSBLE0002 not returned on disabled suffix
7e63d6
- Issue 4379 - allow more than 1 empty AttributeDescription for ldapsearch, without the risk of denial of service (#4380)
7e63d6
- Issue 4329 - Sync repl - if a serie of updates target the same entry then the cookie get wrong changenumber (#4356)
7e63d6
- Issue 3555 - Fix npm audit issues (#4370)
7e63d6
- Issue 4372 - BUG - Chaining DB did not validate bind mech parameters (#4374)
7e63d6
- Issue 4334 - RFE - Task timeout may cause larger dataset imports to fail (#4359)
7e63d6
- Issue 4361 - RFE - add - dscreate --advanced flag to avoid user confusion
7e63d6
- Issue 4368 - ds-replcheck crashes when processing glue entries
7e63d6
- Issue 4366 - lib389 - Fix account status inactivity checks
7e63d6
- Issue 4265 - UI - Make the secondary plugins read-only (#4364)
7e63d6
- Issue 4360 - password policy max sequence sets is not working as expected
7e63d6
- Issue 4348 - Add tests for dsidm
7e63d6
- Issue 4350 - One line, fix invalid type error in tls_cacertdir check (#4358)
7e63d6