首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >worklight http适配器和NTLM身份验证

问worklight http适配器和NTLM身份验证
EN

Stack Overflow用户
提问于 2013-04-02 21:08:56
回答 1查看 625关注 0票数 0

我正在尝试在Worklight HTTP Adapter中实现NTLM身份验证,以便连接到M$后端服务器,例如Sharepoint Web服务。我已经用来设置我的adapter.xml文件。

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

代码语言:javascript
复制
<authentication>
  <ntlm />
  <serverIdentity>
    <username>user</username>
    <password>password</password>
  </serverIdentity>
</authentication>

我的测试是在本地使用Worklight studio完成的,我遇到了以下问题:

1)调用WL过程时出错:

代码语言:javascript
复制
Procedure invocation failed:Could not resolve placeholder 'local.hostname'

我必须把这个'local.hostname‘设置放在哪里?

2)我尝试指定文档(IBM infocenter)中给出的ntlm标记的主机名属性,WL Studio指出xml的格式不正确。

代码语言:javascript
复制
<authentication>
  <ntlm hostname="myComputer.intranet.com"/>
  <serverIdentity>
    <username>user</username>
    <password>password</password>
  </serverIdentity>
</authentication>

其中"myComputer.intranet.com“是我的计算机在公司网络中的名称。

代码语言:javascript
复制
Attribute 'hostname' is not allowed to appear in element 'ntlm'
EN

回答 1

Stack Overflow用户

发布于 2013-10-15 18:01:13

来自IBM Service Request的响应:用于向启用了NTLM的后端系统进行身份验证的用户名必须用windows域名、后跟\和用户名填充。

代码语言:javascript
复制
<serverIdentity>
  <username>domain\user</username>
  <password>password</password>
</serverIdentity>

这与硬编码的serverIdentity功能一起工作。

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

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

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/15764950

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档