第 212 章 LDAP 组件

可作为 Camel 版本 1.5 提供

ldap 组件允许您使用过滤器作为消息有效负载在 LDAP 服务器中执行搜索。
此组件使用标准 JNDI (javax.naming package)来访问服务器。

Maven 用户需要将以下依赖项添加到其 pom.xml 中:

<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-ldap</artifactId>
    <version>x.x.x</version>
    <!-- use the same version as your Camel core version -->
</dependency>

212.1. URI 格式

ldap:ldapServerBean[?options]

URI 的 ldapServerBean 部分引用 registry 中的 DirContext bean。LDAP 组件仅支持制作者端点,这意味着 ldap URI 在路由开始时无法出现在 中。

您可以使用以下格式在 URI 中附加查询选项 ?option=value&option=value&…​