def METHOD_NAME(request, session_multihost, create_testdir):
    """ Setup Session """
    client = sssdTools(session_multihost.client[0])
    realm = session_multihost.ad[1].realm
    ad_host = session_multihost.ad[1].sys_hostname
    try:
        master = sssdTools(session_multihost.master[0])
    except IndexError:
        pass
    else:
        master.server_install_pkgs()
        master.update_resolv_conf(session_multihost.ad[1].ip)
    client.client_install_pkgs()
    client.update_resolv_conf(session_multihost.ad[1].ip)
    client.clear_sssd_cache()
    client.systemsssdauth(realm, ad_host)
    def teardown_session():
        """ Teardown session """
        session_multihost.client[0].service_sssd('stop')
        remove_sssd_conf = 'rm -f /etc/sssd/sssd.conf'
        session_multihost.client[0].run_command(remove_sssd_conf)
    request.addfinalizer(teardown_session)