|
|
@ -1,5 +1,3 @@
|
|
|
|
%bcond_with nis
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} >= 14 || 0%{?rhel} >= 6
|
|
|
|
%if 0%{?fedora} >= 14 || 0%{?rhel} >= 6
|
|
|
|
%define ldap_impl openldap
|
|
|
|
%define ldap_impl openldap
|
|
|
|
%else
|
|
|
|
%else
|
|
|
@ -12,14 +10,15 @@
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
Name: slapi-nis
|
|
|
|
Name: slapi-nis
|
|
|
|
Version: 0.70.0
|
|
|
|
Version: 0.60.0
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Release: 5%{?dist}
|
|
|
|
Summary: Schema Compatibility plugin for Directory Server
|
|
|
|
Summary: NIS Server and Schema Compatibility plugins for Directory Server
|
|
|
|
License: GPL-3.0-or-later
|
|
|
|
License: GPLv3
|
|
|
|
URL: http://pagure.io/slapi-nis/
|
|
|
|
URL: http://pagure.io/slapi-nis/
|
|
|
|
Source0: https://releases.pagure.org/slapi-nis/slapi-nis-%{version}.tar.gz
|
|
|
|
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
|
|
|
|
Source1: https://releases.pagure.org/slapi-nis/slapi-nis-%{version}.tar.gz.asc
|
|
|
|
Patch0: slapi-nis-eq_once_rel.patch
|
|
|
|
Patch0: slapi-nis-bz2183950.patch
|
|
|
|
|
|
|
|
Patch1: slapi-nis-RHEL-5134.patch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: autoconf
|
|
|
@ -34,13 +33,11 @@ BuildRequires: libsss_nss_idmap-devel > 1.16.0-5
|
|
|
|
%define sss_nss_opts %{nil}
|
|
|
|
%define sss_nss_opts %{nil}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
BuildRequires: pam-devel
|
|
|
|
BuildRequires: pam-devel
|
|
|
|
%if %{with nis}
|
|
|
|
|
|
|
|
%if (0%{?fedora} > 14 && 0%{?fedora} < 28) || (0%{?rhel} > 6 && 0%{?rhel} < 8)
|
|
|
|
%if (0%{?fedora} > 14 && 0%{?fedora} < 28) || (0%{?rhel} > 6 && 0%{?rhel} < 8)
|
|
|
|
BuildRequires: libtirpc-devel
|
|
|
|
BuildRequires: libtirpc-devel
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
BuildRequires: libnsl2-devel
|
|
|
|
BuildRequires: libnsl2-devel
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?fedora} > 27 || 0%{?rhel} >= 9
|
|
|
|
%if 0%{?fedora} > 27 || 0%{?rhel} >= 9
|
|
|
|
ExcludeArch: %{ix86}
|
|
|
|
ExcludeArch: %{ix86}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
@ -61,18 +58,13 @@ for attributes from multiple entries in the tree.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%setup -q
|
|
|
|
%patch -p1 -P0
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
autoconf --force
|
|
|
|
autoconf --force
|
|
|
|
%if %{with nis}
|
|
|
|
|
|
|
|
WITH_NIS=--enable-nis=yes
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
WITH_NIS=--disable-nis
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%configure --disable-static --with-ldap=%{ldap_impl} \
|
|
|
|
%configure --disable-static --with-ldap=%{ldap_impl} \
|
|
|
|
--with-nsswitch --with-pam --with-pam-service=system-auth \
|
|
|
|
--with-nsswitch --with-pam --with-pam-service=system-auth \
|
|
|
|
$WITH_NIS \
|
|
|
|
|
|
|
|
%{sss_nss_opts} %{betxn_opts}
|
|
|
|
%{sss_nss_opts} %{betxn_opts}
|
|
|
|
sed -i -e 's,%{_libdir}/dirsrv/plugins/,,g' -e 's,.so$,,g' doc/examples/*.ldif
|
|
|
|
sed -i -e 's,%{_libdir}/dirsrv/plugins/,,g' -e 's,.so$,,g' doc/examples/*.ldif
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
make %{?_smp_mflags}
|
|
|
@ -89,86 +81,59 @@ make check
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%doc COPYING NEWS README STATUS doc/sch-*.txt doc/examples/sch-*.ldif doc/ipa
|
|
|
|
%doc COPYING NEWS README STATUS doc/*.txt doc/examples/*.ldif doc/ipa
|
|
|
|
%if %{with nis}
|
|
|
|
|
|
|
|
%doc doc/nis-*.txt doc/examples/nis-*.ldif
|
|
|
|
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
%{_sbindir}/nisserver-plugin-defs
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%{_libdir}/dirsrv/plugins/*.so
|
|
|
|
%{_libdir}/dirsrv/plugins/*.so
|
|
|
|
|
|
|
|
%{_sbindir}/nisserver-plugin-defs
|
|
|
|
%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
|
|
|
|
%changelog
|
|
|
|
* Tue Nov 26 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 0.70.0-2
|
|
|
|
* Tue Oct 10 2023 Alexander Bokovoy <abokovoy@redhat.com> - 0.60.0-5
|
|
|
|
- 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
|
|
|
|
- Ignore updates from non-tracked subtrees during modify/modrdn/update
|
|
|
|
to avoid deadlocks with retro changelog
|
|
|
|
to avoid deadlocks with retro changelog
|
|
|
|
|
|
|
|
- Resolves: RHEL-11983
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.60.0-3
|
|
|
|
* Mon Apr 24 2023 Alexander Bokovoy <abokovoy@redhat.com> - 0.60.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
- Also handle base searches within the compat tree
|
|
|
|
|
|
|
|
- Related: rhbz#2183950
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.60.0-2
|
|
|
|
* Wed Apr 12 2023 Alexander Bokovoy <abokovoy@redhat.com> - 0.60.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
- 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 Aug 20 2022 Alexander Bokovoy <abokovoy@redhat.com> - 0.60.0-1
|
|
|
|
* Sat Aug 20 2022 Alexander Bokovoy <abokovoy@redhat.com> - 0.60.0-1
|
|
|
|
- new upstream release
|
|
|
|
- upstream release 0.60.0
|
|
|
|
- Change license from GPLv2 to GPLv3+ to follow 389-ds licensing
|
|
|
|
- Change license from GPLv2 to GPLv3+ to follow 389-ds licensing
|
|
|
|
- Fix ID views integration
|
|
|
|
- Fix ID views integration
|
|
|
|
- Fix base scope lookups
|
|
|
|
- Fix base scope lookups
|
|
|
|
- Bump NIS max dgram size to 8KB by default instead of 1KB
|
|
|
|
- Bump NIS max dgram size to 8KB by default instead of 1KB
|
|
|
|
|
|
|
|
- Resolves: rhbz#2117299
|
|
|
|
|
|
|
|
Allow to rebuild the compat tree
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.56.7-6
|
|
|
|
* Fri Jan 21 2022 Alexander Bokovoy <abokovoy@redhat.com> - 0.56.7-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
- Rebuild against libnsl 2.0.0
|
|
|
|
|
|
|
|
- Related: rhbz#2039220
|
|
|
|
* Tue Feb 01 2022 Alexander Bokovoy <abokovoy@redhat.com> - 0.56.7-5
|
|
|
|
|
|
|
|
- Resolves: rhbz#2032691
|
|
|
|
|
|
|
|
- Rebuild against newer OpenLDAP version
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.56.7-4
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 0.56.7-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Nov 12 2021 Björn Esser <besser82@fedoraproject.org> - 0.56.7-3
|
|
|
|
* Wed Jul 07 2021 Alexander Bokovoy <abokovoy@redhat.com> - 0.56.7-2
|
|
|
|
- Rebuild(libnsl2)
|
|
|
|
- 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 Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.56.7-2
|
|
|
|
* Wed May 19 2021 Alexander Bokovoy <abokovoy@redhat.com> - 0.56.7-1
|
|
|
|
- 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
|
|
|
|
- CVE-2021-3480: invalid bind DN crash
|
|
|
|
- New upstream release
|
|
|
|
- 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
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.56.6-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|