security - IIB - BIP4761E: 消息流尝试使用“SecurityProfiles”策略
问题描述
我正在尝试在IBM App Connect v11.0.0.6中的 Pet Store REST API 上设置 LDAP Auth为了做到这一点,我遵循了本指南:
我从我的“宠物”REST API 中制作了一个 BAR 文件,将策略部署到同一个集成节点,然后在流属性中尝试选择我的 ldapPolicy 但它不存在。当我手动输入并部署时,我最终遇到了这个错误:
Begin running task [Deploying [pet.bar] to integration server [InteriorIntegration]]
The BAR file C:/WorkDir/workspace/pet/pet.bar has been deployed to InteriorIntegration but there were one or more failures which may mean the deployed resources will be unable to execute.
The following message was received:
BIP9339W: The values defined in the policy(s) 'ldapPolicy' in policy project 'ldapTest' match the values of the existing policy(s). Any deployed resources using the policy(s) will not be affected by the redeploy of the policy project.
BIP4761E: The message flow attempted to use 'SecurityProfiles' policy 'ldapPolicy', which has not been defined in the integration server.
BIP9320E: Message Flow 'gen.pet', 'gen.pet' encountered a failure and could not start.
BIP4761E: The message flow attempted to use 'SecurityProfiles' policy 'ldapPolicy', which has not been defined in the integration server.
BIP4761E: The message flow attempted to use 'SecurityProfiles' policy 'ldapPolicy', which has not been defined in the integration server.
BIP9320E: Message Flow 'gen.pet', 'gen.pet' encountered a failure and could not start.
BIP4761E: The message flow attempted to use 'SecurityProfiles' policy 'ldapPolicy', which has not been defined in the integration server.
BIP9333W: RestAPI 'pet' has been changed but contains errors which has prevented some resources from starting.
BIP1096E: The source 'pet.bar' has been deployed but there were one or more failures which may mean the deployed resources will be unable to execute.
The task did not complete successfully: The deployment was partially successful. Check error messages for explanation.
这是我的策略 XML:
<?xml version="1.0" encoding="UTF-8"?>
<policies>
<policy policyType="SecurityProfiles" policyName="ldapPolicy" policyTemplate="SecurityProfiles">
<authentication>LDAP</authentication>
<authenticationConfig>ldap://example.com:389/ou=example</authenticationConfig>
<mapping>NONE</mapping>
<mappingConfig></mappingConfig>
<authorization>LDAP</authorization>
<authorizationConfig>ldap://example.com:389/ou=example</authorizationConfig>
<propagation>false</propagation>
<idToPropagateToTransport>Message ID</idToPropagateToTransport>
<transportPropagationConfig></transportPropagationConfig>
<keyStore>Reserved for future use</keyStore>
<trustStore>Reserved for future use</trustStore>
<passwordValue>PLAIN</passwordValue>
<rejectBlankpassword>true</rejectBlankpassword>
</policy>
</policies>
我错过了什么?
笔记:
BIP9339W: The values defined in the policy(s) 'ldapPolicy' in policy project 'ldapTest' match the values of the existing policy(s). Any deployed resources using the policy(s) will not be affected by the redeploy of the policy project.
编辑: 我认为发生上述错误是因为 ldapTest 已经部署(?)。如果是这样,那么为什么我不能在安全配置文件下拉列表中选择此策略?
来自事件日志的错误:
( Int01.InteriorIntegration ) The message flow attempted to use ''SecurityProfiles'' policy ''ldapPolicy'', which has not been defined in the integration server.
Policies need to be set on the integration server. Use the administrative REST API to check that a '''SecurityProfiles'' policy called ''ldapPolicy' exists.
Use the toolkit to create the required policy and deploy it to the integration server, or adjust the message flow to avoid requiring the policy.
解决方案
经过几天尝试在文档中找到答案并经过反复试验,我发现要设置安全配置文件名称字段,您必须使用特殊语法:
{PolicyProjectName}:PolicyName
因此,例如,如果您创建和部署MyPolicies
项目并且想要使用MyPolicy
策略,则必须输入安全配置文件名称:
{MyPolicies}:MyPolicy
推荐阅读
- r - 在R中的Dataframe中将多行组合成一行
- html - 如何在 CSS 中增加超链接下的文本和下划线之间的间距?
- java - IllegalStateException - JSON 解析失败
- html - 打印 pdf 时,@page 边距框中的 CSS 内容不显示
- javascript - 如何使用 try 和 catch 像这个示例这样的函数来测试 Promise
- php - 如何将 Wordpress 中的 PHP 变量传递给 JSON 文件?
- php - 如何在 Spring 中通过 MultiValueMap 以 x-www-form-urlencoded 内容类型发送数据?
- react-native - 反应本机图像背景
- python - 将 URL 超链接添加到单击 plotly dash 时返回的文本
- javascript - React Native:强制flexbox方向