根据 LDAP 属性填充 RDP URL

Last published : Oct 14, 2026
您可以将 NetScaler Gateway 设备配置为从 LDAP 服务器属性中检索 RDP 服务器(IP/FQDN)列表。根据检索到的列表,设备会显示用户可以访问的服务器的 RDP URL。

使用 CLI 根据 LDAP 属性填充 RDP URL

在命令提示符下,键入:
add rdpclientprofile <Name> –rdpUrlLinkAttribute <string>

add rdpclientprofile clientProfileName –rdpUrlLinkAttribute rdpServerAttribute
在前面的示例中,rdpServerAttribute 对应于 LDAP 服务器上给定用户的 RDP 服务器详细信息。
注意:要从 LDAP 服务器获取 LDAP 属性详细信息,LDAP 操作必须配置与 pUrlLinkAttribute 相同的字符串,如下所示。
add authentication ldapAction dnpg_ldap -serverIP <IP address>-ldapBase <"domain name"> -ldapBindDn <username> -ldapLoginName sAMAccountName -ldapbindDnpassword <password>

add authentication ldapAction dnpg_ldap -serverIP 10.102.39.101 -ldapBase "dc=dnpg-blr,dc=com" -ldapBindDn sqladmin@dnpg-blr.com -ldapLoginName sAMAccountName -ldapbindDnpassword xxxx

add authentication ldapPolicy dnpg_ldap_pol ns_true dnpg_ldap

bind vpn vs vserver<name> -pol dnpg_ldap_pol

set ldapaction dnpg_ldap -attributes "rdpServerAttribute"

set rdpclientprofile ldap -rdpLinkAttribute rdpServerAttribute

LDAP 服务器配置

在 LDAP 服务器上,执行以下步骤:
  1. 导航到特定的用户。
  2. 在 AD 用户和计算机中,单击查看,然后单击详细信息。
  3. 右键单击用户名,然后单击属性编辑器。
  4. 更改所需的属性 (displayName) 值,然后单击确定。

使用 GUI 根据 LDAP 属性填充 RDP URL

  1. 导航到 NetScaler Gateway > 策略 > RDP。
  2. 在RDP 配置文件和连接页面上,单击客户端配置文件选项卡,然后选择要配置 RDP 链接属性的客户端配置文件。
  3. 在“配置 RDP 客户端配置文件”页面中,在“RDP 链接属性”中,输入 LDAP 属性名称。
    注意: LDAP 属性值可以是逗号分隔列表。