Commit Graph

414 Commits

Author SHA1 Message Date
Fabiano Fidêncio cbe5286e50 Related: upstream#3742 - Change of: User may not run sudo --> a password is required
Patch 0017-sudo-ldap-do-not-store-rules-without-sudoHost-attrib.patch
has been commented out as it caused some regressions on IPA tests.

In order to unblock IPA folks, let's revert this patch from Fedora till
we have a proper fix.

Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit 29d69716ad)
(cherry picked from commit e56517d602)
(cherry picked from commit b67161cd28)
2018-05-28 10:14:54 +02:00
Fabiano Fidêncio 1c3b8ca658 Revert "Add: "ExcludeArch: armv7hl""
This reverts commit bc3790f5a0.

(cherry picked from commit 4979898a6e)
(cherry picked from commit e428c4af45)
(cherry picked from commit fb3a33a26b)
2018-05-17 17:59:57 +02:00
Fabiano Fidêncio d1e432e9b2 Add: "ExcludeArch: armv7hl"
For some reason still unclear we're *not* able to build SSSD on koji's
buildroot for armv7hl. Some tests have been done and SSSD was built
successfully using real armv7hl hardware, which indicates that we're
facing https://bugzilla.redhat.com/show_bug.cgi?id=1576593

As soon as the bug is resolved, this patch could be safely reverted.

Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit bc3790f5a0)
(cherry picked from commit 38221da669)
(cherry picked from commit af12cc5788)
2018-05-16 22:34:28 +02:00
Fabiano Fidêncio e53cd13e55 Related: upstream#3436 - Certificates used in unit tests have limited lifetime
Fix a non harmful warning shown by recent versions of OpenSSL.

Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit 0a2c83fbd0)
(cherry picked from commit b6ae123d6b)
(cherry picked from commit 8ad6fab779)
2018-05-16 22:34:28 +02:00
Fabiano Fidêncio 1eeed2907c Related: upstream#3436 - Add openssl, openssh and nss-tools as BuildRequires
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit c4f0508af1)
(cherry picked from commit 0302f3db88)
(cherry picked from commit b0a6617361)
2018-05-16 22:34:28 +02:00
Fabiano Fidêncio ef14f775ab Resolves: upstream#3595 - ID override GID from Default Trust View is not properly resolved in case domain resolution order is set
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit 5f75f7e4f2)
(cherry picked from commit b2d97e727b)
(cherry picked from commit acfa98c03a)
2018-05-16 22:33:17 +02:00
Fabiano Fidêncio 8b69e46ea6 Resolves: upstream#3731 - nss_clear_netgroup_hash_table(): only remove entries from the hash table, do not free them
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit 1511bcd8b2)
(cherry picked from commit 43d49c871d)
(cherry picked from commit feb088d91c)
2018-05-16 22:33:17 +02:00
Fabiano Fidêncio fcaaf702b0 Resolves: upstream#3728 - Request by ID outside the min_id/max_id limit of a first domain does not reach the second domain
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit 3ad9e211eb)
(cherry picked from commit b2bfd972c9)
(cherry picked from commit a1fd1c66cf)
2018-05-16 22:33:17 +02:00
Fabiano Fidêncio f3ff7117fe Resolves: upstream#3719 - The SSSD IPA provider allocates information about external groups on a long lived memory context, causing memory growth of the sssd_be process
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit ed238e28ff)
(cherry picked from commit 8530c8b24d)
(cherry picked from commit 8e3e951bf6)
2018-05-16 22:33:17 +02:00
Fabiano Fidêncio 7a496cc92e Related: upstream#2653 - Group renaming issue when "id_provider = ldap" is set.
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit 97a62b83f1)
(cherry picked from commit d212c95076)
(cherry picked from commit c99cc5221a)
2018-05-16 22:33:17 +02:00
Fabiano Fidêncio 768be08a58 Resolves: upstream#3726 - SSSD with ID provider 'ad' should give a warning in case the ldap schema is manually changed to something different than 'ad'.
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit 163543f40b)
(cherry picked from commit 681d87c2ae)
(cherry picked from commit b23bb96b5d)
2018-05-16 22:33:17 +02:00
Fabiano Fidêncio c45dd65f97 Resolves: upstream#3725 - sssd not honoring dyndns_server if the DNS update process is terminated with a signal
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit 510134aa02)
(cherry picked from commit e4e9316ad9)
(cherry picked from commit b6d54af437)
2018-05-16 22:33:17 +02:00
Fabiano Fidêncio d4c0d50bdd Related: upstream#3436 - Certificates used in unit tests have limited lifetime
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit 5e1db8fc3e)
(cherry picked from commit 7dc8777d56)
(cherry picked from commit c6eb48feab)
2018-05-16 22:33:17 +02:00
Fabiano Fidêncio c53d943117 Resolves: rhbz#1574778 - sssd fails to download known_hosts from freeipa
Patch 0018-sysdb-custom-completely-replace-old-object-instead-o.patch
caused a regression, caught by lslebodn and reported by a few users.

Let's comment out this patch for now and uncomment it when we have a fix
that do not cause a regression.

Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit 5254cdcca5)
(cherry picked from commit c715b8d660)
(cherry picked from commit 35934cf3ef)
2018-05-05 22:02:25 +02:00
Fabiano Fidêncio 8a7243b618 Resolves: upstream#3520 - Files provider supports only BE_FILTER_ENUM
Also ...
Resolves: rhbz#1540703 - FreeIPA/SSSD implicit_file sssd_nss error: The Data
                         Provider returned an error
                         [org.freedesktop.sssd.Error.DataProvider.Fatal]

Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit 90dd145c92)
(cherry picked from commit 99a84c4b16)
(cherry picked from commit ec7c43bb5d)
2018-04-27 22:31:22 +02:00
Fabiano Fidêncio fc649668b2 Resolves: upstream#3680 - GPO: SSSD fails to process GPOs If a rule is defined, but contains no SIDs
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit a305fc11b7)
(cherry picked from commit e45d803139)
(cherry picked from commit ce98ba4ba6)
2018-04-27 22:31:22 +02:00
Fabiano Fidêncio 79512b25c9 Document which principal does the AD provider use
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit b6696d97c4)
(cherry picked from commit 15af9187cf)
(cherry picked from commit 28ce4615a4)
2018-04-27 22:31:22 +02:00
Fabiano Fidêncio 3d25ab1823 Resolves: upstream#2653 - Group renaming issue when "id_provider = ldap" is set.
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit 2dd8451396)
(cherry picked from commit e9424464d1)
(cherry picked from commit b103eab96c)
2018-04-27 22:31:22 +02:00
Fabiano Fidêncio ff81ee82e5 Resolves: upstream#3715 - ipa 389-ds-base crash in krb5-libs - k5_copy_etypes list out of bound?
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit 209701ef7f)
(cherry picked from commit bf6526be6c)
(cherry picked from commit 32f84803eb)
2018-04-27 22:31:22 +02:00
Fabiano Fidêncio ccec5b8fc8 Improve docs/debug message about GC detection
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit 3115154117)
(cherry picked from commit 8ac548e27d)
(cherry picked from commit 0caad9889d)
2018-04-27 22:31:22 +02:00
Fabiano Fidêncio e57d99137e Resolves: upstream#3469 - extend sss-certmap man page regarding priority processing
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit f47c82bc8d)
(cherry picked from commit 94dacbcff1)
(cherry picked from commit 2c6ba2bf2b)
2018-04-27 22:31:22 +02:00
Fabiano Fidêncio d6e60d0953 Resolves: upstream#3634 - sssctl COMMAND --help fails if sssd is not configured
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit 64b69ec813)
(cherry picked from commit d5953555e4)
(cherry picked from commit 54dfcbfa15)
2018-04-27 22:31:22 +02:00
Fabiano Fidêncio 5b40243f61 Resolves: upstream#3679 - Make nss netgroup requests more robust
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit 8d67726a47)
(cherry picked from commit f585ce79e5)
(cherry picked from commit b242978f9f)
2018-04-27 22:31:22 +02:00
Fabiano Fidêncio dd0a6fb1b9 Resolves: upstream#3646 - SSSD's GPO code ignores ad_site option
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit 8565df471c)
(cherry picked from commit d4cc9f09a9)
(cherry picked from commit 2d8d8d1c8b)
2018-04-27 22:31:22 +02:00
Fabiano Fidêncio 9c95519f7a Resolves: upstream#3402 - Support alternative sources for the files provider
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit 9709b73a3f)
(cherry picked from commit 69dd3e36eb)
(cherry picked from commit eefe33aff1)
2018-04-27 22:31:22 +02:00
Fabiano Fidêncio bb567c5aaf Resolves: upstream#3550 - refresh_expired_interval does not work with netgrous in 1.15
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit a7d4f0b3f4)
(cherry picked from commit 1ec14767eb)
(cherry picked from commit c114eb6b3f)
2018-04-27 22:31:22 +02:00
Fabiano Fidêncio fd2fe89420 IPA: Qualify the externalUser sudo attribute
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit ab53ba849a)
(cherry picked from commit ff80480d02)
(cherry picked from commit bb5f960239)
2018-04-27 22:31:22 +02:00
Fabiano Fidêncio ae422acc48 Tone down shutdown messages for socket activated responders
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit ef1d48a0c2)
(cherry picked from commit 11342ddfab)
(cherry picked from commit 389295064e)
2018-04-27 22:31:22 +02:00
Fabiano Fidêncio a5d334e8a4 Resolves: upstream#3558 - sudo: report error when two rules share cn
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit fcff118bbf)
(cherry picked from commit b1ddb6443b)
(cherry picked from commit f338f8cb95)
2018-04-27 22:31:22 +02:00
Fabiano Fidêncio daca1aeb60 Resolves: upstream#3684 - A group is not updated if its member is removed with the cleanup task, but the group does not change
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit f3d06df50d)
(cherry picked from commit 7809e6eedd)
(cherry picked from commit b429a75bce)
2018-04-27 22:31:22 +02:00
Fabiano Fidêncio bc49fbfb56 A few KCM misc fixes
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit 32f2c81e59)
(cherry picked from commit 2540bf426d)
(cherry picked from commit 89a1543353)
2018-03-30 15:42:23 +02:00
Fabiano Fidêncio e5687b3b70 Resolves: upstream#3666 - Fix usage of str.decode() in our test
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit 99da72db23)
(cherry picked from commit 4d8a2ac870)
(cherry picked from commit 4a56bc21d2)
2018-03-30 15:42:16 +02:00
Fabiano Fidêncio 5e5e26a2be Resolves: upstream#3386 - KCM: Payload buffer is too small
Related to: rhbz#1494843 - KCM Does not work

Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit 1c7376afc5)
(cherry picked from commit 7d773ed035)
(cherry picked from commit 97df14ee0f)
2018-03-30 15:42:07 +02:00
Fabiano Fidêncio 187ee74a3f Resolves: usptream#3687 - KCM: Don't pass a non null terminated string to json_loads()
Related to: rhbz#1494843 - KCM Does not work

Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit 73735e9522)
(cherry picked from commit 0392642064)
(cherry picked from commit 26eab693bb)
2018-03-30 15:42:00 +02:00
Fabiano Fidêncio 1feb809f48 Resolves: upstream#3658 - Application domain is not interpreted correctly
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit 563dd33f72)
(cherry picked from commit 4d2103b723)
(cherry picked from commit 2a59fc635f)
2018-03-30 15:41:48 +02:00
Fabiano Fidêncio be32b69605 Resolves: upstream#3660 - confdb_expand_app_domains() always fails
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit 2c812f3cba)
(cherry picked from commit c126b3174c)
(cherry picked from commit 44d6f59b93)
2018-03-30 15:41:40 +02:00
Fabiano Fidêncio e23577fdfa Resolves: upstream#3573 - sssd won't show netgroups with blank domai
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit 40fe76feb8)
(cherry picked from commit 928c3e94ab)
(cherry picked from commit 46f52a9bd6)
2018-03-30 15:41:32 +02:00
Fabiano Fidêncio d2e63e3f19 New upstream release 1.16.1
https://docs.pagure.org/SSSD.sssd/users/relnotes/notes_1_16_1.html

Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit 62a3258629)
(cherry picked from commit d11cfce2ff)
(cherry picked from commit bfc60044d5)
2018-03-09 18:05:01 +01:00
Lukas Slebodnik 85ed6ee372 Resolves: upstream#3621 - backport bug fix found by static analyzers
(cherry picked from commit 5eba7a8f1f)
(cherry picked from commit 21443e5ebe)
2018-02-20 15:18:41 +01:00
Fabiano Fidêncio 5482e1b39f Resolves: upstream#3621: FleetCommander integration must not require capability DAC_OVERRIDE
Together with the patches backported from upstream, we're changing
the deskprofilepath permissions from 755 to 751, reflecting the
upstream spec file changes.

Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit 4b1fe8a0ab)
2018-02-14 23:04:07 +01:00
Fabiano Fidêncio 4110a2c340 Resolves: rhbz#1538643 - SSSD crashes when retrieving a Desktop Profile with no specific host/hostgroup set
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit 199a72e62a)
2018-02-14 22:27:38 +01:00
Lukas Slebodnik 9270bee8ca Resolves: upstream#3618 - selinux_child segfaults in a docker container
(cherry picked from commit 18ae44bc79)
(cherry picked from commit c90915394e)
2018-02-07 22:10:24 +01:00
Lukas Slebodnik 6f4bba5546 Backport most important bug fixes
Resolves: upstream#3523 - ABRT crash - /usr/libexec/sssd/sssd_nss in
                          setnetgrent_result_timeout
Resolves: upstream#3562 - Use-after free if more sudo requests run and one
                          of them fails, causing a fail-over to a next server
Resolves: upstream#3588 - sssd_nss consumes more memory until restarted
                          or machine swaps
Resolves: failure in glibc tests
          https://sourceware.org/bugzilla/show_bug.cgi?id=22530
Resolves: upstream#3451 - When sssd is configured with id_provider proxy and
                          auth_provider ldap, login fails if the LDAP server
                          is not allowing anonymous binds
Resolves: upstream#3285 - SSSD needs restart after incorrect clock is
                          corrected with AD
Resolves: upstream#3586 - Give a more detailed debug and system-log message
                          if krb5_init_context() failed
Resolves: rhbz#1479283 - proxy to files does not work with
                         implicit_files_domain
Resolves: rhbz#1431153 - SSSD ships a drop-in configuration snippet
                         in /etc/systemd/system
2017-12-04 22:23:49 +01:00
Lukas Slebodnik 3efadc9185 Resolves: rhbz#1494002 - sssd_nss crashed in cache_req_search_domains_next
(cherry picked from commit ce65f7d9ee)
(cherry picked from commit 8f047f7ff4)
2017-11-21 18:08:05 +01:00
Lukas Slebodnik 68e1acc3da Resolves: upstream#3529 - sssd-kcm Fix restart during/after upgrade
(cherry picked from commit 7ac8b3c4b5)
(cherry picked from commit da41c905c0)
2017-11-21 18:06:23 +01:00
Lukas Slebodnik 0982e5e83d New upstream release 1.16.0
https://docs.pagure.org/SSSD.sssd/users/relnotes/notes_1_16_0.html
(cherry picked from commit 4f58854911)
(cherry picked from commit ea632499ff)
2017-10-23 13:26:13 +02:00
Lukas Slebodnik 8fca7e629a Resolves: rhbz#1499354 - CVE-2017-12173
sssd: unsanitized input when searching in local cache database access on
the sock_file system_bus_socket

(cherry picked from commit 7069858231)
(cherry picked from commit 4a8ad4c174)
2017-10-11 17:51:02 +02:00
Lukas Slebodnik bbb90ca68c Fix few bugs/regressions
Resolves: rhbz#1488327 - SELinux is preventing selinux_child from write access
                         on the sock_file system_bus_socket
Resolves: rhbz#1490402 - SSSD does not create /var/lib/sss/deskprofile and
                         fails to download desktop profile data
Resolves: upstream#3485 - getsidbyid does not work with 1.15.3
Resolves: upstream#3488 - SUDO doesn't work for IPA users on IPA clients after
                          applying ID Views for them in IPA server
Resolves: upstream#3501 - Accessing IdM kerberos ticket fails while id mapping
                          is applied
(cherry picked from commit 8eda442b2e)
(cherry picked from commit e15fc49cbf)
2017-09-12 09:29:29 +02:00
Lukas Slebodnik 7e532024f0 Backport few upstream patches/fixes
(cherry picked from commit fa4807ec45)
(cherry picked from commit 323dbdee02)
2017-09-01 21:44:33 +02:00
Lukas Slebodnik 7109e61605 Simplify spec file a little bit
The plugin for cifs-utils can be built on all supported versions of fedora.
Conditions are required only in upstream spec file for older
distributions. Definition of constant with_cifs_utils_plugin is still
in the beginning of spec file for simpler comparison of changes
between upstream and fedora.

(cherry picked from commit 5ce8ae1166)
(cherry picked from commit 601bb9f4eb)
2017-09-01 21:42:16 +02:00