2013-04-02 55 views
0

我试图在Worklight HTTP适配器中实现NTLM身份验证,以便连接到M $后端服务器,如Sharepoint Web服务。 我用<ntlm>设置我的adapter.xml文件。worklight http适配器和NTLM身份验证

的adapter.xml结构第一个版本是:

<authentication> 
    <ntlm /> 
    <serverIdentity> 
    <username>user</username> 
    <password>password</password> 
    </serverIdentity> 
</authentication> 

我的测试是在工作灯工作室在本地完成的,我得到了以下问题:

1)错误时invocating WL过程:

Procedure invocation failed:Could not resolve placeholder 'local.hostname' 

我必须在哪里放置'local.hostname'设置?

2)我试图指定在文档(IBM信息中心)中给出的ntlm标签的主机名属性,WL Studio说xml格式不正确。

<authentication> 
    <ntlm hostname="myComputer.intranet.com"/> 
    <serverIdentity> 
    <username>user</username> 
    <password>password</password> 
    </serverIdentity> 
</authentication> 

“myComputer.intranet.com”是我公司网络中的计算机名称。从IBM服务请求

Attribute 'hostname' is not allowed to appear in element 'ntlm' 

回答

-1

响应: 使用NTLM启用,后端系统进行身份验证的用户名必须保持补齐Windows域名后跟一个\以及用户名。

<serverIdentity> 
    <username>domain\user</username> 
    <password>password</password> 
</serverIdentity> 

这适用于硬编码的serverIdentity功能。

由于我公司的安全管理,不能有“通用”的服务器标识。所以我必须将最终用户的凭证转发到后端系统进行身份验证。

如何使用Worklight身份验证mecanisms(例如基于适配器)执行此操作,我可以在哪里为我的用户名设置域? 根据适配器,我可以混合使用几种安全领域吗?