我正在尝试在Worklight HTTP Adapter中实现NTLM身份验证,以便连接到M$后端服务器,例如Sharepoint Web服务。我已经用来设置我的adapter.xml文件。
adapter.xml结构的第一个版本是:
<authentication>
<ntlm />
<serverIdentity>
<username>user</username>
<password>password</password>
</serverIdentity>
</authentication>我的测试是在本地使用Worklight studio完成的,我遇到了以下问题:
1)调用WL过程时出错:
Procedure invocation failed:Could not resolve placeholder 'local.hostname'我必须把这个'local.hostname‘设置放在哪里?
2)我尝试指定文档(IBM infocenter)中给出的ntlm标记的主机名属性,WL Studio指出xml的格式不正确。
<authentication>
<ntlm hostname="myComputer.intranet.com"/>
<serverIdentity>
<username>user</username>
<password>password</password>
</serverIdentity>
</authentication>其中"myComputer.intranet.com“是我的计算机在公司网络中的名称。
Attribute 'hostname' is not allowed to appear in element 'ntlm'发布于 2013-10-15 18:01:13
来自IBM Service Request的响应:用于向启用了NTLM的后端系统进行身份验证的用户名必须用windows域名、后跟\和用户名填充。
<serverIdentity>
<username>domain\user</username>
<password>password</password>
</serverIdentity>这与硬编码的serverIdentity功能一起工作。
由于我的公司的安全治理,不能有“通用”服务器身份。因此,我必须将最终用户的凭据转发到后端系统进行身份验证。
如何使用Worklight身份验证机制(例如基于适配器)完成此操作,在哪里可以为我的用户名设置域?我可以根据适配器混合几种安全领域吗?
https://stackoverflow.com/questions/15764950
复制相似问题