b21128c trust upgrade: ensure that host is member of adtrust agents

Authored and Committed by frenaud 4 years ago
    trust upgrade: ensure that host is member of adtrust agents
    
    After an upgrade, the group cn=adtrust agents may be missing some members.
    Each ad trust controller must appear twice as member:
    - krbprincipalname=cifs/hostname@realm,cn=services,cn=accounts,basedn
    - fqdn=hostname,cn=computers,cn=accounts,basedn
    
    Add an upgrade plugin that builds a list of hostnames from the cifs
    principals and adds if needed fqdn=hostname...
    
    Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1778777
    Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
    Reviewed-By: Alexander Bokovoy <abbra@users.noreply.github.com>