授权服务代理身份验证
使用代理处理 Qlik NPrinting 授权服务和许可证后端之间的通信时,可以添加身份验证层。在不进行身份验证的情况下设置授权服务代理,请参阅授权服务代理设置。
为代理设置基本身份验证
要为代理设置基本身份验证,请执行以下操作:
- 停止 Qlik NPrinting 许可证服务。
- 导航至 service.conf 文件,该文件默认位于:
%Program Files%\NPrintingServer\NPrinting\License\license.config
- 取消注释以下行:
<!-- <add key="proxy-uri" value="https://localhost:8888" /> -->
<!-- <add key="proxy-basic-authentication" value="true" /> -->
<!-- <add key="proxy-username" value="username-without-domain" /> -->
- 设置 proxy-uri 和 proxy-username 的值。
- 要使用明文密码,请取消注释:
<!-- <add key="proxy-password" value="clear-text-password" /> -->
- 设置 proxy-password 的值。
- 要使用加密的密码(建议),取消注释:
<!-- <add key="proxy-password" value="clear-text-password" /> -->
- 打开 powershell 并运行密码加密脚本,该脚本位于:
%Program Files%\NPrintingServer\NPrinting\License\license.config
使用以下命令:
Encrypt-Password.ps1 -password clear-text-password
- 从命令将输出设置为标签中的值属性。
- 保存文件并关闭。
- 重启 Qlik NPrinting 授权服务。
示例配置:
<appSettings>
<!--=========================================
许可证选项
=========================================-->
<!--To be enabled if proxy tunneling is required-->
<!-- <add key="proxy-uri" value="https://localhost:8888" /> -->
<!--NTLM authentication settings for proxy tunneling-->
<!--Enable Basic authentication-->
<!-- <add key="proxy-basic-authentication" value="true" /> -->
<!--Enable Basic authentication-->
<!-- <add key="proxy-basic-authentication" value="true" /> -->
<!--Domain for authentication-->
<!-- <add key="proxy-domain" value="windows-domain" /> -->
<!--Username for authentication (without domain)-->
<add key="proxy-username" value="myUser" />
<!--Encrypted password as generated by Encrypt-Password.ps1 -password [user password]-->
<add key="proxy-encrypted-password" value="ASDHJNCE243454NNJFWEJFJKFSD8U843RJKJCNDWC98RFNSDJVSKJDVR8UFVC9SJV09439FJSDJVOIHVSKV" />
<!--Clear text password, if encrypted version cannot be used-->
<!-- <add key="proxy-password" value="clear-text-password" /> -->
<appSettings>
为代理设置 NTLM 身份验证
- 停止 Qlik NPrinting 许可证服务。
- 导航至 service.conf 文件,该文件默认位于:
%Program Files%\NPrintingServer\NPrinting\License\license.config
- 取消注释以下行
<!-- <add key="proxy-uri" value="https://localhost:8888" /> -->
<!-- <add key="proxy-basic-authentication" value="true" /> -->
<!-- <add key="proxy-domain" value="windows-domain" /> -->
<!-- <add key="proxy-username" value="username-without-domain" /> -->
- 设置 proxy-uri、proxy-domain 和 proxy-username 的值。
- 要使用明文密码,请取消注释:
<!-- <add key="proxy-password" value="clear-text-password" /> -->
- 设置 proxy-password 的值。
- 要使用加密的密码(建议),取消注释:
<!-- <add key="proxy-password" value="clear-text-password" /> -->
- 打开 powershell 并运行密码加密脚本,该脚本位于:
%Program Files%\NPrintingServer\NPrinting\License\license.config
使用以下命令:
Encrypt-Password.ps1 -password clear-text-password
- 从命令将输出设置为标签中的值属性。
- 保存文件并关闭。
- 重启 Qlik NPrinting 授权服务。
示例配置:
<appSettings>
<!--=========================================
许可证选项
=========================================-->
<!--To be enabled if proxy tunneling is required-->
<!-- <add key="proxy-uri" value="https://localhost:8888" /> -->
<!--NTLM authentication settings for proxy tunneling-->
<!--Enable Basic authentication-->
<!-- <add key="proxy-basic-authentication" value="true" /> -->
<!--Enable Basic authentication-->
<!-- <add key="proxy-basic-authentication" value="true" /> -->
<!--Domain for authentication-->
<!-- <add key="proxy-domain" value="windows-domain" /> -->
<!--Username for authentication (without domain)-->
<add key="proxy-username" value="myUser" />
<!--Encrypted password as generated by Encrypt-Password.ps1 -password [user password]-->
<add key="proxy-encrypted-password" value="ASDHJNCE243454NNJFWEJFJKFSD8U843RJKJCNDWC98RFNSDJVSKJDVR8UFVC9SJV09439FJSDJVOIHVSKV" />
<!--Clear text password, if encrypted version cannot be used-->
<!-- <add key="proxy-password" value="clear-text-password" /> -->
<appSettings>