SlideShare a Scribd company logo
MULE –LDAP Provider for
Spring Security
2
Setting Up an LDAP Provider for Spring Security
This page describes how you can configure a Spring Security LDAP
provider, which can be used by Mule 2.2 or later as follows:
As its security provider via SpringProviderAdapter
To perform component authorization
3
Setup
Before proceeding, ensure that you have the following .jar files in your project classpath:
spring-security-ldap-3.1.2.RELEASE.jar
spring-security-core-3.1.2.RELEASE.jar
spring-ldap-core-1.3.1.RELEASE.jar
If you do not already have these files, you can download them here:
link:https://repo.springsource.org/libs-release-local/org/springframework/security/spring-
security/3.1.2.RELEASE/spring-security-3.1.2.RELEASE-dist.zip (this link contains spring-
security-core-3.1.2.RELEASE.jar and spring-security-ldap-3.1.2.RELEASE under the "dist"
directory)
http://s3.amazonaws.com/dist.springframework.org/release/LDAP/spring-ldap-
1.3.1.RELEASE-minimal.zip (this contains spring-ldap-1.3.1.RELEASE.jar inside the "dist"
directoy)
4
Declaring the Beans
You must set up two beans in Spring, a
DefaultSpringSecurityContextSource and an LdapAuthenticationProvider.
The DefaultSpringSecurityContextSource is the access point for obtaining
an LDAP context where the LdapAuthenticationProvider provides
integration with the LDAP server. For example:
You need to set up an LDAP context source that will be used by the spring
security authentication provider to search and authenticate your users.
Also, you need to define an authentication manager with an embedded
LDAP authentication provider as shown:
5
WS-Security and SAML
<mule
xmlns:ss="http://www.springframework.org/schema/security"
xmlns:mule-ss="http://www.mulesoft.org/schema/mule/spring-security"
xmlns:spring="http://www.springframework.org/schema/beans"
...
version="EE-3.3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
...
xsi:schemaLocation="
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/current/mule-spring-security.xsd
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security-3.0.xsd">
...
6
WS-Security Example The WS-Security example demonstrates the
different possibilities available for incorporating WS-Security into your Mule
application. This example is available in the enterprise edition of Mule as of
version 2.2.3.
Enabling WS-Security - Describes how to secure your CXF SOAP
endpoints with WS-Security.
SAML Module - Mule now supports the SAML standard for exchange of
security information between systems. This module is available in the
enterprise edition of Mule as of version 2.2.3
7
<spring:beans>
...
<spring:bean id="contextSource"
class="org.springframework.security.ldap.DefaultSpringSecurityContextSource">
<spring:constructor-arg value="${ldap.url}"/>
<spring:property name="userDn" value="${ldap.adminDn}"/>
<spring:property name="password" value="${ldap.adminPassword}"/>
</spring:bean>
<ss:authentication-manager alias="authenticationManager">
<ss:ldap-authentication-provider user-search-filter="(uid={0})" user-search-base="ou=People"
group-search-base="ou=Group"/>
</ss:authentication-manager>
</spring:beans>
8
More information about the LDAP authentication provider and the different
mechanisms to authenticate users against your LDAP server can be found
here:
http://static.springsource.org/springsecurity/site/docs/3.1.x/reference/ldap.h
tml
SEcurity   ldap for spring security
SEcurity   ldap for spring security

More Related Content

PDF
Install spark on_windows10
PPTX
mysql replication
PPTX
JCrawler
PPTX
Fx.configuration
PDF
What to consider before deploying a meteor app?
PPTX
Windows azuretomcat mysql
PPT
Krazykoder struts2 spring_hibernate
PPTX
Plugin Research Status 2009.07.14
Install spark on_windows10
mysql replication
JCrawler
Fx.configuration
What to consider before deploying a meteor app?
Windows azuretomcat mysql
Krazykoder struts2 spring_hibernate
Plugin Research Status 2009.07.14

Viewers also liked (17)

PDF
Is This Really a SAN Problem? Understanding the Performance of Your IO Subsy...
PPT
Manifest skolskog knjiznicara_2.0
DOCX
Task 5 planning
PDF
Current Tobacco advetise & legal provisions sk 190815
PDF
Appendix 14
DOCX
Resume of Caryl ODowd 09-2016a
PDF
저작권침해실태 및 경제적효과
PPT
healthcare toolkit
DOCX
Sue's Story - April 5, 1998
PDF
KC case study
PPT
Linda rising - the power of an agile mindset
PPT
Mule SAML
PPT
Ks1 adding money - qwizdom ppt.
PPT
waves
PPTX
506 edu first day of school powerpoint
Is This Really a SAN Problem? Understanding the Performance of Your IO Subsy...
Manifest skolskog knjiznicara_2.0
Task 5 planning
Current Tobacco advetise & legal provisions sk 190815
Appendix 14
Resume of Caryl ODowd 09-2016a
저작권침해실태 및 경제적효과
healthcare toolkit
Sue's Story - April 5, 1998
KC case study
Linda rising - the power of an agile mindset
Mule SAML
Ks1 adding money - qwizdom ppt.
waves
506 edu first day of school powerpoint
Ad

Similar to SEcurity ldap for spring security (20)

PPT
Mule with spring security manager
PPT
Security spring security manager
PPT
Mule security - spring security manager
PPT
Security springsecuritymanager-sathyaraj
PPT
Security spring security manager
PPT
Spring security integrate with mule
PPTX
MMC Integration with LDAP and LDAP PS(SSL)
PPTX
Mule MMC Integration with LDAP
PPT
Mule security
PPT
Mule security
PPT
Security authorization using spring security
PPT
Mule security - authorization using spring security
PPT
Security authorizationusingspringsecurity-sathyaraj
PPT
Security authorization using spring security
PPT
Mule security
PPT
Mule security
PPT
Mule security - pgp
PPTX
Integrate with ldap
PPT
Mule security - saml
PPT
Mule security - saml
Mule with spring security manager
Security spring security manager
Mule security - spring security manager
Security springsecuritymanager-sathyaraj
Security spring security manager
Spring security integrate with mule
MMC Integration with LDAP and LDAP PS(SSL)
Mule MMC Integration with LDAP
Mule security
Mule security
Security authorization using spring security
Mule security - authorization using spring security
Security authorizationusingspringsecurity-sathyaraj
Security authorization using spring security
Mule security
Mule security
Mule security - pgp
Integrate with ldap
Mule security - saml
Mule security - saml
Ad

More from himajareddys (20)

ODP
Domain in mule
ODP
Exception handling basics in mule
ODP
Mule integration patterns
ODP
Design considerations in MULE ESB
ODP
Mule esb flow processing strategies
ODP
Mule architecture styles
ODP
Integration patterns in muleesb
ODP
Security components in mule esb
PPT
Cloudhub
PPT
Anypoint platform highlights
PPT
Mule 3.4 features
PPT
Mule esb 3.8
PPT
Mule soa
PPT
Anypoint connectorfor ibm as 400
PPT
Mule addcontactsintosalesforce
PPT
Mule anypointconnector dev kit
PPT
Dataweavewithflowreflookup
PPT
Mule anypointenterprisesecurity
PPT
Connector for ibm® as400
PPT
Netsuite open air connector
Domain in mule
Exception handling basics in mule
Mule integration patterns
Design considerations in MULE ESB
Mule esb flow processing strategies
Mule architecture styles
Integration patterns in muleesb
Security components in mule esb
Cloudhub
Anypoint platform highlights
Mule 3.4 features
Mule esb 3.8
Mule soa
Anypoint connectorfor ibm as 400
Mule addcontactsintosalesforce
Mule anypointconnector dev kit
Dataweavewithflowreflookup
Mule anypointenterprisesecurity
Connector for ibm® as400
Netsuite open air connector

Recently uploaded (20)

PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
Big Data Technologies - Introduction.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Electronic commerce courselecture one. Pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
Machine Learning_overview_presentation.pptx
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Spectroscopy.pptx food analysis technology
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
1. Introduction to Computer Programming.pptx
PPT
Teaching material agriculture food technology
PDF
Approach and Philosophy of On baking technology
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Big Data Technologies - Introduction.pptx
Network Security Unit 5.pdf for BCA BBA.
Electronic commerce courselecture one. Pdf
Building Integrated photovoltaic BIPV_UPV.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Machine Learning_overview_presentation.pptx
Programs and apps: productivity, graphics, security and other tools
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
NewMind AI Weekly Chronicles - August'25-Week II
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Spectroscopy.pptx food analysis technology
Diabetes mellitus diagnosis method based random forest with bat algorithm
1. Introduction to Computer Programming.pptx
Teaching material agriculture food technology
Approach and Philosophy of On baking technology
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
MIND Revenue Release Quarter 2 2025 Press Release
Dropbox Q2 2025 Financial Results & Investor Presentation

SEcurity ldap for spring security

  • 1. MULE –LDAP Provider for Spring Security
  • 2. 2 Setting Up an LDAP Provider for Spring Security This page describes how you can configure a Spring Security LDAP provider, which can be used by Mule 2.2 or later as follows: As its security provider via SpringProviderAdapter To perform component authorization
  • 3. 3 Setup Before proceeding, ensure that you have the following .jar files in your project classpath: spring-security-ldap-3.1.2.RELEASE.jar spring-security-core-3.1.2.RELEASE.jar spring-ldap-core-1.3.1.RELEASE.jar If you do not already have these files, you can download them here: link:https://repo.springsource.org/libs-release-local/org/springframework/security/spring- security/3.1.2.RELEASE/spring-security-3.1.2.RELEASE-dist.zip (this link contains spring- security-core-3.1.2.RELEASE.jar and spring-security-ldap-3.1.2.RELEASE under the "dist" directory) http://s3.amazonaws.com/dist.springframework.org/release/LDAP/spring-ldap- 1.3.1.RELEASE-minimal.zip (this contains spring-ldap-1.3.1.RELEASE.jar inside the "dist" directoy)
  • 4. 4 Declaring the Beans You must set up two beans in Spring, a DefaultSpringSecurityContextSource and an LdapAuthenticationProvider. The DefaultSpringSecurityContextSource is the access point for obtaining an LDAP context where the LdapAuthenticationProvider provides integration with the LDAP server. For example: You need to set up an LDAP context source that will be used by the spring security authentication provider to search and authenticate your users. Also, you need to define an authentication manager with an embedded LDAP authentication provider as shown:
  • 5. 5 WS-Security and SAML <mule xmlns:ss="http://www.springframework.org/schema/security" xmlns:mule-ss="http://www.mulesoft.org/schema/mule/spring-security" xmlns:spring="http://www.springframework.org/schema/beans" ... version="EE-3.3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ... xsi:schemaLocation=" 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/current/mule-spring-security.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd"> ...
  • 6. 6 WS-Security Example The WS-Security example demonstrates the different possibilities available for incorporating WS-Security into your Mule application. This example is available in the enterprise edition of Mule as of version 2.2.3. Enabling WS-Security - Describes how to secure your CXF SOAP endpoints with WS-Security. SAML Module - Mule now supports the SAML standard for exchange of security information between systems. This module is available in the enterprise edition of Mule as of version 2.2.3
  • 7. 7 <spring:beans> ... <spring:bean id="contextSource" class="org.springframework.security.ldap.DefaultSpringSecurityContextSource"> <spring:constructor-arg value="${ldap.url}"/> <spring:property name="userDn" value="${ldap.adminDn}"/> <spring:property name="password" value="${ldap.adminPassword}"/> </spring:bean> <ss:authentication-manager alias="authenticationManager"> <ss:ldap-authentication-provider user-search-filter="(uid={0})" user-search-base="ou=People" group-search-base="ou=Group"/> </ss:authentication-manager> </spring:beans>
  • 8. 8 More information about the LDAP authentication provider and the different mechanisms to authenticate users against your LDAP server can be found here: http://static.springsource.org/springsecurity/site/docs/3.1.x/reference/ldap.h tml