Date: Tue, 19 Mar 2024 07:14:57 +0000 (UTC) Message-ID: <74061266.54577.1710832497732@cwiki-he-fi.apache.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_54576_1838163267.1710832497731" ------=_Part_54576_1838163267.1710832497731 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Available since Camel 2.11
The spring-ldap: component provides a Camel wrapper for= Spring LDAP.
Maven users will need to add the following dependency to their pom=
.xml
for this component:
<dependenc= y> <groupId>org.apache.camel</groupId> <artifactId>camel-spring-ldap</artifactId> <version>x.x.x</version> <!-- use the same version as your Camel core version --> </dependency>
spring-ldap:s= pringLdapTemplate[?options]
Where springLdapTemplate is the name of the Spri= ng LDAP Template bean. In this bean, you configure the URL and the cred= entials for your LDAP access.
Name |
Type |
Description |
---|---|---|
|
String |
The LDAP operation to be performed. Must be o=
ne of |
|
String |
The scope of the search operation. Must be on=
e of |
If an unsupported value is specified for some option, the component thro=
ws an UnsupportedOperationException
.
The component supports producer endpoint only. An attempt to create a co=
nsumer endpoint will result in an The body of the message remains unchanged for the The message body must have an entry with the key The message body must have an entry with the key No further entries necessary, the node with the specified Key definitions In order to avoid spelling errors, the following constants are defined i=
n UnsupportedOperationException
.
The body of the message must be a map (an instance of java.util.Map<=
/code>). This map must contain at least an entry with the key
dn
that specifies the root node for the LDAP operation to =
be performed. Other entries of the map are operation-specific (see below).<=
/p>
bind
and =
unbind
operations. For the search
operation, the =
body is set to the result of the search, see http://static.springsource.org/spring-ldap/site/apidocs/org/springf=
ramework/ldap/core/LdapTemplate.html#search%28java.lang.String,%20java.lang=
.String,%20int,%20org.springframework.ldap.core.AttributesMapper%29.Search
filter
. The value must be a String representing a valid LDAP filter,=
see http:/=
/en.wikipedia.org/wiki/Lightweight_Directory_Access_Protocol#Search_and_Com=
pare.Bind
attribute=
s
. The value must be an instance of javax.naming.directory.Attributes Th=
is entry specifies the LDAP node to be created.Unbind
=
dn
is deleted.org.apache.camel.springldap.SpringLdapProducer
: