Previous Topic: Fields in a Search Request

Next Topic: Status Request

Example of a Search Request

The following search request queries the EXAMPLE_DOMAIN to list all objects and return the name and description attributes for all of these objects:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<searchRequest xmlns="urn:oasis:names:tc:SPML:1:0" xmlns:dsml="urn:oasis:names:tc:DSML:2:0:core">
    <searchBase type="urn:oasis:names:tc:SPML:1:0#DN">
        <id>Domain=EXAMPLE_DOMAIN,Server=Server</id>
    </searchBase>
    <filter>
        <dsml:equalityMatch name="name">
            <dsml:value>*</dsml:value>
        </dsml:equalityMatch>
    </filter>
    <attributes>
        <dsml:attribute name="name"></dsml:attribute>
        <dsml:attribute name="description"></dsml:attribute>
    </attributes>
</searchRequest>