|
|
|
@ -1,3 +1,5 @@
|
|
|
|
|
%bcond_with nis
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} >= 14 || 0%{?rhel} >= 6
|
|
|
|
|
%define ldap_impl openldap
|
|
|
|
|
%else
|
|
|
|
@ -10,15 +12,14 @@
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: slapi-nis
|
|
|
|
|
Version: 0.60.0
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Summary: NIS Server and Schema Compatibility plugins for Directory Server
|
|
|
|
|
License: GPLv3
|
|
|
|
|
Version: 0.70.0
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Summary: Schema Compatibility plugin for Directory Server
|
|
|
|
|
License: GPL-3.0-or-later
|
|
|
|
|
URL: http://pagure.io/slapi-nis/
|
|
|
|
|
Source0: https://releases.pagure.org/slapi-nis/slapi-nis-%{version}.tar.gz
|
|
|
|
|
Source1: https://releases.pagure.org/slapi-nis/slapi-nis-%{version}.tar.gz.asc
|
|
|
|
|
Patch0: slapi-nis-bz2183950.patch
|
|
|
|
|
Patch1: slapi-nis-RHEL-5134.patch
|
|
|
|
|
Patch0: slapi-nis-eq_once_rel.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: autoconf
|
|
|
|
@ -33,11 +34,13 @@ BuildRequires: libsss_nss_idmap-devel > 1.16.0-5
|
|
|
|
|
%define sss_nss_opts %{nil}
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: pam-devel
|
|
|
|
|
%if %{with nis}
|
|
|
|
|
%if (0%{?fedora} > 14 && 0%{?fedora} < 28) || (0%{?rhel} > 6 && 0%{?rhel} < 8)
|
|
|
|
|
BuildRequires: libtirpc-devel
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: libnsl2-devel
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?fedora} > 27 || 0%{?rhel} >= 9
|
|
|
|
|
ExcludeArch: %{ix86}
|
|
|
|
|
%endif
|
|
|
|
@ -58,13 +61,18 @@ for attributes from multiple entries in the tree.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
%patch -p1 -P0
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
autoconf --force
|
|
|
|
|
%if %{with nis}
|
|
|
|
|
WITH_NIS=--enable-nis=yes
|
|
|
|
|
%else
|
|
|
|
|
WITH_NIS=--disable-nis
|
|
|
|
|
%endif
|
|
|
|
|
%configure --disable-static --with-ldap=%{ldap_impl} \
|
|
|
|
|
--with-nsswitch --with-pam --with-pam-service=system-auth \
|
|
|
|
|
$WITH_NIS \
|
|
|
|
|
%{sss_nss_opts} %{betxn_opts}
|
|
|
|
|
sed -i -e 's,%{_libdir}/dirsrv/plugins/,,g' -e 's,.so$,,g' doc/examples/*.ldif
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
@ -81,59 +89,90 @@ make check
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc COPYING NEWS README STATUS doc/*.txt doc/examples/*.ldif doc/ipa
|
|
|
|
|
%doc COPYING NEWS README STATUS doc/sch-*.txt doc/examples/sch-*.ldif doc/ipa
|
|
|
|
|
%if %{with nis}
|
|
|
|
|
%doc doc/nis-*.txt doc/examples/nis-*.ldif
|
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
%{_libdir}/dirsrv/plugins/*.so
|
|
|
|
|
%{_sbindir}/nisserver-plugin-defs
|
|
|
|
|
%endif
|
|
|
|
|
%{_libdir}/dirsrv/plugins/*.so
|
|
|
|
|
|
|
|
|
|
%triggerin -- 389-ds-base
|
|
|
|
|
instances=$(/usr/sbin/dsctl -l)
|
|
|
|
|
for inst in $instances ; do
|
|
|
|
|
grep -q "cn=NIS server,cn=plugins" /etc/dirsrv/${inst}/dse.ldif
|
|
|
|
|
if test $? -eq 0 ; then
|
|
|
|
|
/usr/bin/ldapdelete -Y EXTERNAL -H ldapi://%2fvar%2frun%2f${inst}.socket -r "cn=NIS Server,cn=plugins,cn=config" 2>/dev/null
|
|
|
|
|
result=$?
|
|
|
|
|
if test $result -eq 255 ; then
|
|
|
|
|
echo "Cannot remove NIS server plugin from LDAP server ${inst} instance. Server will fail to start until it is removed."
|
|
|
|
|
echo "Remove 'cn=NIS Server,cn=plugins,cn=config' entry from /etc/dirsrv/${inst}/dse.ldif"
|
|
|
|
|
fi
|
|
|
|
|
if test $result -eq 0 ; then
|
|
|
|
|
/usr/sbin/dsctl "$inst" restart
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Oct 10 2023 Alexander Bokovoy <abokovoy@redhat.com> - 0.60.0-5
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.70.0-3
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
* Fri Oct 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 0.70.0-2
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Tue Aug 27 2024 Alexander Bokovoy <abokovoy@redhat.com> - 0.70.0-2
|
|
|
|
|
- Fix regression in data initialization
|
|
|
|
|
- Resolves: RHEL-56042
|
|
|
|
|
|
|
|
|
|
* Wed Aug 21 2024 Alexander Bokovoy <abokovoy@redhat.com> - 0.70.0-1
|
|
|
|
|
- Upstream release 0.70.0: make NIS server optional
|
|
|
|
|
- Disable NIS server support
|
|
|
|
|
- Resolves: RHEL-34186
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.60.0-6
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.60.0-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Nov 07 2023 Alexander Bokovoy <abokovoy@redhat.com> - 0.60.0-4
|
|
|
|
|
- Ignore updates from non-tracked subtrees during modify/modrdn/update
|
|
|
|
|
to avoid deadlocks with retro changelog
|
|
|
|
|
- Resolves: RHEL-11983
|
|
|
|
|
|
|
|
|
|
* Mon Apr 24 2023 Alexander Bokovoy <abokovoy@redhat.com> - 0.60.0-4
|
|
|
|
|
- Also handle base searches within the compat tree
|
|
|
|
|
- Related: rhbz#2183950
|
|
|
|
|
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.60.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Apr 12 2023 Alexander Bokovoy <abokovoy@redhat.com> - 0.60.0-3
|
|
|
|
|
- Fix base DN searches outside the compat tree
|
|
|
|
|
- Resolves: rhbz#2183950
|
|
|
|
|
|
|
|
|
|
* Sun Aug 21 2022 Alexander Bokovoy <abokovoy@redhat.com> - 0.60.0-2
|
|
|
|
|
- Rebuild to fix changelog
|
|
|
|
|
- Related: rhbz#2117299
|
|
|
|
|
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.60.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Aug 20 2022 Alexander Bokovoy <abokovoy@redhat.com> - 0.60.0-1
|
|
|
|
|
- upstream release 0.60.0
|
|
|
|
|
- new upstream release
|
|
|
|
|
- Change license from GPLv2 to GPLv3+ to follow 389-ds licensing
|
|
|
|
|
- Fix ID views integration
|
|
|
|
|
- Fix base scope lookups
|
|
|
|
|
- Bump NIS max dgram size to 8KB by default instead of 1KB
|
|
|
|
|
- Resolves: rhbz#2117299
|
|
|
|
|
Allow to rebuild the compat tree
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Alexander Bokovoy <abokovoy@redhat.com> - 0.56.7-4
|
|
|
|
|
- Rebuild against libnsl 2.0.0
|
|
|
|
|
- Related: rhbz#2039220
|
|
|
|
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.56.7-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Feb 01 2022 Alexander Bokovoy <abokovoy@redhat.com> - 0.56.7-5
|
|
|
|
|
- Resolves: rhbz#2032691
|
|
|
|
|
- Rebuild against newer OpenLDAP version
|
|
|
|
|
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 0.56.7-3
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.56.7-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jul 07 2021 Alexander Bokovoy <abokovoy@redhat.com> - 0.56.7-2
|
|
|
|
|
- Resolves: rhbz#1979619
|
|
|
|
|
IPA: High CPU utilization (over 1000% plus) by ns-slapd process
|
|
|
|
|
- Resolves: rhbz#1979623
|
|
|
|
|
With base object scope, ldapsearch against compat tree does not return any data on Rhel8 IPA servers.
|
|
|
|
|
* Fri Nov 12 2021 Björn Esser <besser82@fedoraproject.org> - 0.56.7-3
|
|
|
|
|
- Rebuild(libnsl2)
|
|
|
|
|
|
|
|
|
|
* Wed May 19 2021 Alexander Bokovoy <abokovoy@redhat.com> - 0.56.7-1
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.56.7-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue May 18 2021 Alexander Bokovoy <abokovoy@redhat.com> - 0.56.7-1
|
|
|
|
|
- CVE-2021-3480: invalid bind DN crash
|
|
|
|
|
- New upstream release
|
|
|
|
|
- Resolves: rhbz#1947351
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.56.6-3
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.56.6-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|