Enable SSON For XenApp Services Support

栏目: 服务器 · 发布时间: 8年前

内容简介:当StoreFront启用了XenApp Services Support (Legacy support)之后,那么Receiver就仍然可以通过Pnagent的方式通过config.xml方式来访问以及添加账户(Account/Store)但是如果需要对于legacy site或者说是XA Services support site开启直通登录(passthrough,single sign-on)的话,那么只能通过命令行或者直接修改配置文件的方式才可以。单单通过GUI启用authentication

当StoreFront启用了XenApp Services Support (Legacy support)之后,那么Receiver就仍然可以通过Pnagent的方式通过config.xml方式来访问以及添加账户(Account/Store)

但是如果需要对于legacy site或者说是XA Services support site开启直通登录(passthrough,single sign-on)的话,那么只能通过命令行或者直接修改配置文件的方式才可以。

单单通过GUI启用authentication method只针对Store Web生效。

命令行方式

  1. 首先打开Powershell,并切换到StoreFront默认安装路径下的Scripts目录
    cd "C:\Program Files\Citrix\Receiver StoreFront\Scripts\"
  2. 执行下面的命令来启用SSON
    .\EnablePnaForStore.ps1" –SiteId iisid
      –ResourcesVirtualPath storepath –LogonMethod {prompt | sson | smartcard_sson | smartcard_prompt
    # -SiteId: 没有多站点或者特殊修改的话,一般都为1
    # -ResourcesVirtualPath: 指向对应的Store路径即可,比如/Citrix/myStore/
    # -LogonMethod: 由于我们需要启用SSON,那么选择sson即可,如果要修改回用户名密码,那么就选择prompt
  3. 执行完命令即完成修改

修改配置文件方式

通过命令行的方式修改只能够同时启用一种验证方式,要么直通方式直接登录,要么就是提示方式,让用户手动输入用户名或者密码方式登录,无法同时存在,而通过使用手动修改配置文件的方式即可实现多种验证方式并存。

  1. 首先找到对应services support site关联的store下的配置文件,路径如下:
    #比如某个TestStore的路径为
    C:\inetpub\wwwroot\Citrix\TestStore\Views\PnaConfig\Config.aspx
  2. 使用记事本打开Config.aspx文件,然后修改如下的Logon section配置
    #默认配置如下,其中LogonMethod默认从Store目录下的Web.Config文件中读取当前的验证方式
    #而上面的命令行方式只能设置一种,这也就是命令行只能设置一种的原因
        <Logon>
            <LogonMethod><%= ViewData[PnaConfigViewConstants.LogonMethodId]%></LogonMethod>
            <EnableSavePassword>true</EnableSavePassword>
            <EnableKerberos><%= ViewData[PnaConfigViewConstants.EnableKerberosId] %></EnableKerberos>
            <SupportNDS>false</SupportNDS>
            <NDS_Settings>
                <DefaultTree></DefaultTree>
            </NDS_Settings>
        </Logon>
  3. 此时,我们就可以手动来添加我们想要的LogonMethod
    # 下面的四行LogonMethod定义了启用的验证方式,根据需要去掉不需要的验证方式即可
        <Logon>
            <LogonMethod>sson</LogonMethod>
            <LogonMethod>prompt</LogonMethod>
            <LogonMethod>smartcard_sson</LogonMethod>
            <LogonMethod>smartcard_prompt</LogonMethod>
            <EnableSavePassword>true</EnableSavePassword>
            <EnableKerberos><%= ViewData[PnaConfigViewConstants.EnableKerberosId] %></EnableKerberos>
            <SupportNDS>false</SupportNDS>
            <NDS_Settings>
                <DefaultTree></DefaultTree>
            </NDS_Settings>
        </Logon>
  4. 保存后立即生效,不需要重启IIS服务。

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。

Bulletproof Web Design

Bulletproof Web Design

Dan Cederholm / New Riders Press / 28 July, 2005 / $39.99

No matter how visually appealing or packed with content a Web site is, it isn't succeeding if it's not reaching the widest possible audience. Designers who get this guide can be assured their Web site......一起来看看 《Bulletproof Web Design》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具