Skip to content

Instantly share code, notes, and snippets.

@nialdarbey
Created October 16, 2012 18:29
Show Gist options
  • Save nialdarbey/3901089 to your computer and use it in GitHub Desktop.
Save nialdarbey/3901089 to your computer and use it in GitHub Desktop.
ex config
<ldap:config name="Ldap" authDn="${ldap.userDn}" authPassword="${ldap.password}" authentication="simple" url="${ldap.url}" doc:name="LDAP" />
<flow name="search" doc:name="search">
<http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081" path="ldapSearch" doc:name="HTTP" />
<ldap:search config-ref="Ldap" doc:name="search" baseDn="ou=People,dc=muleforge,dc=org" filter="(objectclass=person)" scope="SUB_TREE" pageSize="500" maxResults="200">
<ldap:attributes>
<ldap:attribute>#[message.inboundProperties['http.query.params'].cn]</ldap:attribute>
</ldap:attributes>
</ldap:search>
<collection-splitter doc:name="Split Result Set"/>
<ldap:ldap-entry-to-ldif doc:name="to LDIF"/>
<collection-aggregator failOnTimeout="true" doc:name="Aggregate entries"/>
<object-to-string-transformer doc:name="Object to String"/>
</flow>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment