def removed_user_deactivate(user):
    """
    Deactivate user accounts that no longer appear in the
    source LDAP server.
    """
    if user.is_active:
        user.is_active = False
        user.save()
