SHA256
1
0
forked from pool/sssd

33 Commits

Author SHA256 Message Date
5fc5a7ed82 Sync changes to SLFO-1.2 branch 2025-08-20 13:35:33 +02:00
1bb44b7558 Accepting request 1243227 from network:ldap
- Update to release 2.10.2

OBS-URL: https://build.opensuse.org/request/show/1243227
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sssd?expand=0&rev=143
2025-02-05 20:55:36 +00:00
OBS User unknown
a71b435f42 [info=0dd76c3fb1e8976e3f2203732d255929ddd4647604210f34bc9970c9c866a7c6]
OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=340
2025-02-04 22:47:19 +00:00
OBS User unknown
f7191ee183 [info=28a3ba978ae4540af4c492a58e999467d0c02d55c52fe8115b623c28f983efd4]
OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=339
2025-01-30 14:54:36 +00:00
6a343e865f Accepting request 1239477 from network:ldap
- Drop build dependency on ncsd, which has been deprecated
  (boo#1239262).
- Migrate away from update-alternatives, replaced by package
  conflicts; (bsc#1235789); (bsc#1216739);

OBS-URL: https://build.opensuse.org/request/show/1239477
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sssd?expand=0&rev=142
2025-01-24 12:39:42 +00:00
OBS User unknown
48f8d04c60 [info=24b0354b14a71a7f013d2f8aed5051f5418b44f1879804a1f4fd45fd4d790c6e]
OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=338
2025-01-22 10:13:31 +00:00
OBS User unknown
4689a7b2db [info=660ade3bb1e5650f8b379a95197017216f506e85d72c0b139b39a31cc7cc911a]
OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=337
2025-01-22 10:09:51 +00:00
OBS User unknown
be6a8acd73 [info=e6e6fdcbb8c81ae2cfdf1e19038a61c6014ac6a56c4c37eacfaa19f7abca3eda]
OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=336
2025-01-22 09:47:29 +00:00
9647d5a334 Accepting request 1236927 from network:ldap
- Update to release 2.10.1

OBS-URL: https://build.opensuse.org/request/show/1236927
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sssd?expand=0&rev=141
2025-01-12 10:13:57 +00:00
OBS User unknown
dcf4f635d5 [info=e9bed7037d80b1a2f8f6599da3e1d34aee9e5b250cf5642ba8f8e1c6ea438517]
OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=335
2025-01-10 19:53:36 +00:00
OBS User unknown
27948d90b8 [info=090bf5ef3094f02956c446012780493e69a1b75e976ce71b74cea81b1eb77897]
OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=334
2025-01-09 17:30:57 +00:00
OBS User unknown
86e7668f30 [info=cd05c14a49b9600916b3ace67564befd817f17fbbae208a2197db413e82a7560]
OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=333
2025-01-02 17:58:20 +00:00
OBS User unknown
1d71044539 [info=1507d9a0944d5e4561b50f5711c11410c6102db2357375f84d4e99c977e11c66]
OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=332
2024-12-20 08:21:11 +00:00
OBS User unknown
b3c6ba7ae5 [info=7a9befa6936272129afd7622722b7d44d87bdf6afa02bc7b21a6ccfd037903cc]
OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=331
2024-12-11 09:35:15 +00:00
bbfc610706 [info=6e6893108add570a0ec8a1cc983e87b11279bc98ee96e4f1af76ab397f1d0074]
OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=330
2024-11-27 10:12:37 +00:00
be0ba00c3b [info=8faca55b4aa3e3e74cbabb4b015f0b7beb4b2f1dd7b98a27b382d43be057f672]
OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=329
2024-11-25 09:06:26 +00:00
OBS User unknown
4565465470 [info=6e6893108add570a0ec8a1cc983e87b11279bc98ee96e4f1af76ab397f1d0074]
OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=328
2024-11-05 21:15:20 +00:00
OBS User unknown
55c982ab57 [info=0823836080bc76a2066070591bd0d13645c7446aa3ca664b9eb5b179699ab1b2]
OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=327
2024-11-05 21:03:40 +00:00
OBS User unknown
3709f0e766 [info=066c89155b2a5ef4e5f760515c1e3c2b976cc40e9d509583f3f58f219f61cbb9]
OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=326
2024-11-05 19:42:35 +00:00
OBS User unknown
0f06ed9ea8 [info=64fc4926abddde94cb6c33f85efec71de27adfb4c0ffab87972e4dc00bfef5d1]
OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=325
2024-11-05 18:20:03 +00:00
OBS User unknown
f86392c7a5 [info=4c1a7e3419ae2a9fd5571c543bf337898b158276112c19e299f4f385b5bedaf8]
OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=324
2024-11-05 18:00:20 +00:00
OBS User unknown
bdd89bc6f3 [info=d236d87ed89f720f7cdd75ceb8eee5ce72b6fa3d8878dd5e16de8962d581542b]
OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=323
2024-10-16 16:33:51 +00:00
OBS User unknown
3a117daca5 [info=03cfa0ca67c32d9aa59b740572efe4b06c350b3529fdc9dd7d46e7501d8cd398]
OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=322
2024-10-16 16:29:57 +00:00
d86b0e6701 Accepting request 1207137 from network:ldap
Please stage together with:
#1206308
#1206309

OBS-URL: https://build.opensuse.org/request/show/1207137
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sssd?expand=0&rev=140
2024-10-13 15:33:26 +00:00
OBS User unknown
fbb9662fbc [info=3a2bee3ebf6e89af81880d7927649117d782a0ba9f98f06213bb4744f044b7fb]
OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=321
2024-10-01 10:25:27 +00:00
OBS User unknown
d7d2d5b065 [info=73fb2a82f612a286176bd085d3250101f93e35e8d95604062552e3d66d837c69]
OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=320
2024-09-25 20:30:52 +00:00
OBS User unknown
4b55e8bec3 [info=4ccb2378cf598025ed7140843f9027c7d6380bb9bd3e3c93331dab8f27d8db43]
OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=319
2024-09-25 20:16:22 +00:00
2a837063b4 [info=bf358d8fff9cbe6e4d724686e14b1ba2f74e5be0130abd0c1aec853471ca572e]
OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=318
2024-07-18 03:02:07 +00:00
4ba4938fe8 Accepting request 1187905 from network:ldap
- Revert the change dropping the default configuration file. If
  /usr/etc exists will be installed there, otherwise in /etc.
  (bsc#1226157);

OBS-URL: https://build.opensuse.org/request/show/1187905
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sssd?expand=0&rev=139
2024-07-17 13:14:17 +00:00
OBS User unknown
3fd3832981 [info=bf358d8fff9cbe6e4d724686e14b1ba2f74e5be0130abd0c1aec853471ca572e]
OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=317
2024-07-17 12:08:46 +00:00
75c9ecde1e [info=747483e6173b31472d61e166a581bb9c9034cf6a690a8bc476176dd5b5befaba]
OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=316
2024-07-16 11:11:31 +00:00
8ef9d54958 feed through formatter, use more widely used ?expr:1
OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=315
2024-07-16 11:04:35 +00:00
fd5a3e89d6 Accepting request 1187794 from home:scabrero:sssd-conf
- Revert the change dropping the default configuration file. If
  /usr/etc exists will be installed there, otherwise in /etc.
  (bsc#1226157);

OBS-URL: https://build.opensuse.org/request/show/1187794
OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=314
2024-07-16 10:57:44 +00:00
2 changed files with 94 additions and 31 deletions

View File

@@ -1,3 +1,37 @@
-------------------------------------------------------------------
Tue Mar 25 17:42:38 UTC 2025 - Samuel Cabrero <scabrero@suse.de>
- Add python3-setuptools build dependency
- Drop nscd build dependency
-------------------------------------------------------------------
Tue Jan 21 16:33:00 UTC 2025 - Samuel Cabrero <scabrero@suse.de>
- Migrate away from update-alternatives, replaced by package
conflicts; (bsc#1235789); (bsc#1216739);
-------------------------------------------------------------------
Tue Oct 1 10:15:07 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Update filelists involving memberof.so and idmap/sss.so to
avoid gobbling up one file into multiple sssd subpackages.
(Between samba-4.20 and 4.21, %ldbdir changes from
/usr/lib64/ldb2/modules/ldb to /usr/lib64/samba/ldb, so now
`%_libdir/samba` is a bit too broad.)
-------------------------------------------------------------------
Wed Jul 17 09:19:20 UTC 2024 - Samuel Cabrero <scabrero@suse.de>
- Fix spec file for openSUSE ALP and SUSE SLFO, where the
python3_fix_shebang_path RPM macro is not available
-------------------------------------------------------------------
Thu Jul 11 09:41:21 UTC 2024 - Samuel Cabrero <scabrero@suse.de>
- Revert the change dropping the default configuration file. If
/usr/etc exists will be installed there, otherwise in /etc.
(bsc#1226157);
-------------------------------------------------------------------
Thu May 16 12:13:02 UTC 2024 - Jan Engelhardt <jengelh@inai.de>

View File

@@ -48,7 +48,6 @@ BuildRequires: libtool
BuildRequires: libunistring-devel
BuildRequires: libxml2-tools
BuildRequires: libxslt-tools
BuildRequires: nscd
BuildRequires: nss_wrapper
BuildRequires: openldap2-devel
BuildRequires: pam-devel
@@ -86,6 +85,14 @@ BuildRequires: pkgconfig(talloc)
BuildRequires: pkgconfig(tdb) >= 1.1.3
BuildRequires: pkgconfig(tevent)
BuildRequires: pkgconfig(uuid)
BuildRequires: python3-setuptools
%if 0%{?suse_version} && 0%{?suse_version} < 1600
# samba-client-devel pulls samba-client-libs pulls libldap-2_4-2 wants libldap-data(-2.4);
# this conflicts with
# openldap2-devel pulls libldap2 wants libldap-data(-2.6)
# Package contains just config files, not needed for build.
#!BuildIgnore: libldap-data
%endif
%{?systemd_ordering}
Requires: sssd-ldap = %version-%release
Requires(postun): pam-config
@@ -103,16 +110,8 @@ Obsoletes: sssd-common < %version-%release
%define gpocachepath %sssdstatedir/gpo_cache
%define ldbdir %(pkg-config ldb --variable=modulesdir)
# Both SSSD and cifs-utils provide an idmap plugin for cifs.ko
# %_sysconfdir/cifs-utils/idmap-plugin should be a symlink to one of the 2 idmap plugins
# * cifs-utils one is the default (priority 20)
# * installing SSSD should NOT switch to SSSD plugin (priority 10)
%define cifs_idmap_plugin %_sysconfdir/cifs-utils/idmap-plugin
%define cifs_idmap_lib %_libdir/cifs-utils/cifs_idmap_sss.so
%define cifs_idmap_name cifs-idmap-plugin
%define cifs_idmap_priority 10
Requires(post): update-alternatives
Requires(postun): update-alternatives
%description
Provides a set of daemons to manage access to remote directories and
@@ -225,6 +224,23 @@ Group: System/Libraries
The idmap_sss module provides a way for Winbind to call SSSD to map
UIDs/GIDs and SIDs.
%package cifs-idmap-plugin
Summary: The sssd idmap plugin for cifs.idmap
Group: System/Libraries
# Conflict as per https://bugzilla.suse.com/1235789
Provides: cifs-idmap-plugin
Conflicts: cifs-idmap-plugin
%description cifs-idmap-plugin
The cifs.idmap(8) userspace helper relies on a plugin to handle the
ID mapping. This package contains the ID mapping plugin that will use
sssd.
In SUSE systems, only one such plugin can be installed at a time
(either the one from sssd, or from cifs-utils).
Without the plugin, file objects in a mounted share have UID/GID of
the original mounting process.
%package -n libsss_certmap0
Summary: FreeIPA ID mapping library
License: LGPL-3.0-or-later
@@ -382,8 +398,6 @@ Security Services Daemon (sssd).
%autosetup -p1
%build
# help configure find nscd
export PATH="$PATH:/usr/sbin"
autoreconf -fiv
%configure \
@@ -420,6 +434,13 @@ perl -i -lpe 's{%_bindir/python\b}{%_bindir/python3}' src/tools/sss_obfuscate
b="%buildroot"
# Copy some defaults
%if "%{?_distconfdir}" != ""
install -D -p -m 0600 src/examples/sssd-example.conf "$b/%_distconfdir/sssd/sssd.conf"
install -d -m 0755 "$b/%_distconfdir/sssd/conf.d"
%else
install -D -p -m 0600 src/examples/sssd-example.conf "$b/%_sysconfdir/sssd/sssd.conf"
install -d -m 0755 "$b/%_sysconfdir/sssd/conf.d"
%endif
install -d "$b/%_unitdir"
%if 0%{?suse_version} > 1500
install -d "$b/%_distconfdir/logrotate.d"
@@ -441,12 +462,11 @@ find "$b" -type f -name "*.la" -print -delete
%find_lang %name --all-name
# dummy target for cifs-idmap-plugin
mkdir -pv %buildroot/%_sysconfdir/alternatives %buildroot/%_sysconfdir/cifs-utils
ln -sfv %_sysconfdir/alternatives/%cifs_idmap_name %buildroot/%cifs_idmap_plugin
mkdir -p %{buildroot}%{_sysconfdir}/cifs-utils
ln -s -f %{cifs_idmap_lib} %{buildroot}%{cifs_idmap_plugin}
%python3_fix_shebang
%if %{suse_version} >= 1600
%python3_fix_shebang_path %{buildroot}/%{_libexecdir}/%{name}/
%endif
%python3_fix_shebang_path %buildroot/%_libexecdir/%name/sss_analyze
%check
# sss_config-tests fails
@@ -454,10 +474,12 @@ ln -sfv %_sysconfdir/alternatives/%cifs_idmap_name %buildroot/%cifs_idmap_plugin
%pre
%service_add_pre sssd.service
%if "%{?_distconfdir}" != ""
# Prepare for migration to /usr/etc; save any old .rpmsave
for i in sssd/sssd.conf pam.d/sssd-shadowutils logrotate.d/sssd ; do
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i}.rpmsave.old ||:
test -f "%_sysconfdir/$i.rpmsave" && mv -v "%_sysconfdir/$i.rpmsave" "%_sysconfdir/$i.rpmsave.old" || :
done
%endif
%post
/sbin/ldconfig
@@ -467,9 +489,6 @@ if [ -f "%_sysconfdir/sssd/sssd.conf" ]; then
fi
%service_add_post sssd.service
# install SSSD cifs-idmap plugin as an alternative
update-alternatives --install %cifs_idmap_plugin %cifs_idmap_name %cifs_idmap_lib %cifs_idmap_priority
%preun
%service_del_preun sssd.service
@@ -481,9 +500,6 @@ fi
# del_postun includes a try-restart
%service_del_postun sssd.service
if [ ! -f "%cifs_idmap_lib" ]; then
update-alternatives --remove %cifs_idmap_name %cifs_idmap_lib
fi
%post -n libsss_certmap0 -p /sbin/ldconfig
%postun -n libsss_certmap0 -p /sbin/ldconfig
@@ -545,10 +561,12 @@ touch /run/systemd/rpm/sssd-was-active
fi
%posttrans
%if "%{?_distconfdir}" != ""
# Migration to /usr/etc, restore just created .rpmsave
for i in sssd/sssd.conf logrotate.d/sssd pam.d/sssd-shadowutils ; do
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i} ||:
test -f "%_sysconfdir/$i.rpmsave" && mv -v "%_sysconfdir/$i.rpmsave" "%_sysconfdir/$i" || :
done
%endif
# Migrate sssd.service from sssd-common to sssd
if [ -e /run/systemd/rpm/sssd-was-enabled ]; then
systemctl is-enabled sssd.service > /dev/null
@@ -657,6 +675,15 @@ fi
%attr(755,root,root) %dir %sssdstatedir/mc/
%attr(700,root,root) %dir %sssdstatedir/keytabs/
%attr(750,root,root) %dir %_localstatedir/log/%name/
%if "%{?_distconfdir}" != ""
%dir %_distconfdir/sssd/
%%dir %_distconfdir/sssd/conf.d
%config(noreplace) %_distconfdir/sssd/sssd.conf
%else
%dir %_sysconfdir/sssd/
%%dir %_sysconfdir/sssd/conf.d
%config(noreplace) %_sysconfdir/sssd/sssd.conf
%endif
%if 0%{?suse_version} > 1500
%_distconfdir/logrotate.d/sssd
%_pam_vendordir/sssd-shadowutils
@@ -695,12 +722,7 @@ fi
%_mandir/man8/sssd_krb5_localauth_plugin.8*
%_mandir/??/man8/sssd_krb5_localauth_plugin.8*
%_mandir/man8/sssd_krb5_locator_plugin.8*
# cifs idmap plugin
%dir %_sysconfdir/cifs-utils
%cifs_idmap_plugin
%dir %_libdir/cifs-utils
%cifs_idmap_lib
%ghost %_sysconfdir/alternatives/%cifs_idmap_name
%files ad
%dir %_libdir/%name/
@@ -802,9 +824,16 @@ fi
%python3_sitelib/sssd/
%files winbind-idmap
%_libdir/samba/
%dir %_libdir/samba/
%_libdir/samba/idmap/
%_mandir/man8/idmap_sss.8*
%files cifs-idmap-plugin
%dir %_sysconfdir/cifs-utils
%cifs_idmap_plugin
%dir %_libdir/cifs-utils
%cifs_idmap_lib
%files -n libipa_hbac0
%_libdir/libipa_hbac.so.0*