For future wanderers, this PR fixes the issue: https://github.com/SSSD/sssd/pull/5705
And this patch fixes the issue on older versions that still support NSS: https://github.com/SSSD/sssd/pull/5705#issuecomment-880421092