以下身份验证策略在login-config.xml
中定义<policy>
<!--- - - - -->
<application-policy name="myAuthenticationPolicy">
<authentication>
<login-module code="com.ge.trans.mp.samp.jaas.LoggingLdapExtLoginModule" flag="required">
<module-option name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</module-option>
开关站配置如下:
<switchyard xmlns="urn:switchyard-config:switchyard:1.0"
xmlns:sy="urn:switchyard-config:switchyard:1.0"
xmlns:bean="urn:switchyard-component-bean:config:1.0"
xmlns:camel="urn:switchyard-component-camel:config:1.0"
xmlns:http="urn:switchyard-component-http:config:1.0"
xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912">
<sca:composite name="http-bridge-esb" targetNamespace="urn:switchyard-quickstart:http-binding:1.0">
<sca:service name="httpPostService" promote="HttpPostBuilder/HttpPost" **sy:security="basic-auth"**>
<http:binding.http>
<operationSelector operationName="postMessage"/>
<http:contextPath>myContextPath</http:contextPath>
</http:binding.http>
</sca:service>
<sca:component name="HttpPostBuilder">
<camel:implementation.camel>
<camel:xml path="META-INF/route.xml"/>
</camel:implementation.camel>
<sca:service name="HttpPost">
<sca:interface.java interface="my.post.Class"/>
</sca:service>
</sca:component>
</sca:composite>
<domain>
<securities>
<**security name="basic-auth"** securityDomain="myAuthenticationPolicy" rolesAllowed="mesgPoster"/>
</securities>
</domain>
</switchyard>
此配置在JBoss 6.1 EAP中启动,似乎正确接收消息,但似乎无法进行身份验证。
我假设默认的用户名密码回调处理程序用于处理基本身份验证,并且我还假设安全元素中的安全域引用与login-config.xml中配置的应用程序策略名称相关。
我似乎找不到使用LDAP配置策略显示基本身份验证的示例配置。
如果有人能够指出我所遗漏的点,或某个地方存在开关站基本身份验证配置的示例,我们将不胜感激。
答案 0 :(得分:0)
您的login-config.xml不完整且无效。
看起来应该是这样的:
$scope.filteredArray = sorted.slice(0, $scope.arrayList.length);