This post has NOT been accepted by the mailing list yet.
I am trying to enable LDAP authentication for my Http end point and getting this :
Caused by: org.springframework.context.ApplicationContextException: No BaseLdapPathContextSource instances found. Have you added an <ldap-server /> element to your application context? If you have declared an explicit bean, do not use lazy-init at org.springframework.security.config.ldap.ContextSourceSettingPostProcessor.postProcessBeanFactory(ContextSourceSettingPostProcessor.java:42) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:681) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:664) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:446) at org.mule.config.spring.SpringRegistry.doInitialise(SpringRegistry.java:89) at org.mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:109) ... 14 more My Mule config looks like below: <?xml version="1.0" encoding="UTF-8"?> <mule xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:https="http://www.mulesoft.org/schema/mule/https" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring="http://www.springframework.org/schema/beans" xmlns:core="http://www.mulesoft.org/schema/mule/core" version="CE-3.3.1" xmlns:mule-ss="http://www.mulesoft.org/schema/mule/spring-security" xmlns:ss="http://www.springframework.org/schema/security" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd http://www.mulesoft.org/schema/mule/https http://www.mulesoft.org/schema/mule/https/current/mule-https.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd http://www.mulesoft.org/schema/mule/spring-security http://www.mulesoft.org/schema/mule/spring-security/3.1/mule-spring-security.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd"> <https:connector name="httpsConnector" validateConnections="false" doc:name="HTTP\HTTPS" doc:description="This connector provides Secure HTTP connectivity on top of what is already provided with the Mule [HTTP Transport]."> <https:tls-client /> <https:tls-key-store path="/opt/mule-standalone-3.3.1/conf/mule.jks" keyPassword="momy23" storePassword="momy123" /> <https:tls-server path="/opt/mule-standalone-3.3.1/conf/mule.jks" storePassword="momy123" /> <https:tls-protocol-handler /> </https:connector> <spring:beans> <ss:ldap-server root="dc=example,dc=com" url="ldap://localhost:10389" manager-password="secret" /> <ss:authentication-manager alias="authenticationManager"> <ss:ldap-authentication-provider user-dn-pattern="uid=admin,ou=system" group-search-base="ou=Groups,dc=example,dc=com" /> </ss:authentication-manager> </spring:beans> <mule-ss:security-manager> <mule-ss:delegate-security-provider name="memory-dao" delegate-ref="authenticationManager" /> </mule-ss:security-manager> <flow name="sendMessage" doc:name="sendMessage"> <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8082" path="ac/sendMessage" doc:name="HTTP"> <mule-ss:http-security-filter realm="mule" /> </http:inbound-endpoint> <http:body-to-parameter-map-transformer doc:name="Body to Parameter Map" /> <component class="com.dell.keystone.gcm.MessageSender" doc:name="MessageSender" /> </flow> </mule> |
This post has NOT been accepted by the mailing list yet.
Did you add spring-security-ldap to your Maven deps? On Sun, Feb 17, 2013 at 1:46 PM, mqaiserm [via Mule] <[hidden email]> wrote: I am trying to enable LDAP authentication for my Http end point and getting this : |
Free forum by Nabble | Edit this page |