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