IPA: Remove sshPublicKey attribute when it's not set
Similary to what has been for the SSSD's server, we have to explicitly
remove the 'sshPublicKey' attribute from an override in case it's not
set, otherwise we may end up in a situation where a ssh key is removed
from IPA but it'll still be present in the SSSD's client cache, allowing
then users to ssh to a machine even having a key that has already been
removed from IPA.
Related: https://pagure.io/SSSD/sssd/issue/3602
Signed-off-by: Fabiano FidĂȘncio <fidencio@redhat.com>
Reviewed-by: Sumit Bose <sbose@redhat.com>
(cherry picked from commit 56f015ef6a161e01681f79e4ea0d1b642f9737b4)