我正在使用 Softerra Adaxes 来管理我的 Active Directory (AD)。它提供了增强的基于 Web 的管理环境,为您提供了基于角色的访问控制模型来委派权限,通过基于批准的工作流程增加了安全性,允许执行公司数据标准等等。所有这些都是通过 SPML Web 服务实现的。
现在,问题是我想使用 SPML 请求从 TalenD 作业中获取所有 AD 用户的详细列表,但我不知道如何编写请求。即使在 Adaxes SMPL 请求运行程序中,我也没有得到正确的运行程序。我在网上查过,但 SPML 框架的文档似乎很少。
那么,获取所有 AD 用户的正确 SMPL 请求代码和参数是什么?
这是用户查找的 SPML 请求和响应:
要求:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header/>
<soap:Body>
<spml:lookupRequest xmlns:spml="urn:oasis:names:tc:SPML:2:0">
<spml:psoId ID="CN=John Doe,OU=accounting,DC=acme.com" targetID="acme.com "/>
</spml:lookupRequest>
</soap:Body>
</soap:Envelope>
回复:
<spml:lookupResponse status="spml:success" xmlns:spml="urn:oasis:names:tc:SPML:2:0">
<spml:psoId ID="CN=John Doe,OU=accounting,DC=acme.com" targetID="acme.com "/>
<spml:data>
<attr name="CN" xmlns="urn:oasis:names:tc:DSML:2:0:core">
<value> John Doe </value>
</attr>
<attr name="uid" xmlns="urn:oasis:names:tc:DSML:2:0:core">
<value>jdoe</value>
</attr>
<attr name="email" xmlns="urn:oasis:names:tc:DSML:2:0:core">
<value>jdoe@acme.com</value>
</attr>
<attr name="objectclass" xmlns="urn:oasis:names:tc:DSML:2:0:core">
<value>user</value>
</attr>
</spml:data>
</spml:lookupResponse>
这是 Adaxes SMPL 提供程序 Adaxes SPML 提供程序示例的屏幕