| URI: | http://www.xmlpipe.org/xpe/util/filter/ldap |
| Type: | filter |
| Namespace: | http://www.xmlpipe.org/xpe/ldap |
| Owner: | http://www.xmlpipe.org/xpe/util |
This filter allows XPE pipelines to communicate with a LDAP server and perform search against the LDAP server. This filter consumes elements within its namespace and leaves all other elements untouched.
| Element name | Description | ||||||||||||||
| l:context |
Main outer element. This element is mandatory and specifies how a LDAP connection is established.
Attributes
Example<l:context uri="ldap://localhost" principal="cn=Manager,dc=example,dc=com,dc=au" credentials="secret" xmlns:l="http://www.xmlpipe.org/xpe/ldap" > ... </l:context> | ||||||||||||||
| l:search |
The search element defines a query to be performed against the LDAP server.
Attributes
Example<l:context uri="ldap://localhost" principal="cn=Manager,dc=example,dc=com,dc=au" credentials="secret" xmlns:l="http://www.xmlpipe.org/xpe/ldap" > <l:search scope="subtree" context="dc=example,dc=com,dc=au" filter="(objectclass=*)" matchingAttributes="uid,description" /> </l:context> The output of the filter generates an XML fragment with the following structure : Example<l:result xmlns:l="http://www.xmlpipe.org/xpe/ldap" > <l:entry name="entry name" > <l:attribute name="attribute name" value="attribute value" /> * </l:entry> * </l:result> The root element is l:result, which contains zero or more l:entry elements. Each l:entry element has zero or more attribute elements. For example, Example<l:result xmlns:l="http://www.xmlpipe.org/xpe/ldap" > <l:entry name="" > <l:attribute name="description" value="Example Pty Ltd a sample company" /> </l:entry> <l:entry name="ou=group" > <l:attribute name="description" value="Groups in example" /> </l:entry> <l:entry name="ou=people" > <l:attribute name="description" value="People accounts" /> </l:entry> <l:entry name="uid=root,ou=people" > <l:attribute name="uid" value="root" /> </l:entry> <l:entry name="uid=oscarp,ou=people" > <l:attribute name="uid" value="oscarp" /> </l:entry> <l:entry name="uid=bobd,ou=people" > <l:attribute name="uid" value="bobd" /> </l:entry> </l:result> |