Advanced Customization > Info*Engine User’s Guide > Info*Engine Custom Tag Reference > Info*Engine Tags > Directory Library Tags > queryObjects
  
queryObjects
The queryObjects tag creates an Info*Engine group containing elements that are the LDAP directory entries matching the search criteria specified. Each element in the group consists of the attributes found in each entry. The names and values of the attributes in each element correspond to the names and values of the LDAP directory entry attributes. At a minimum, every element has the following attributes:
Attribute
Description
dn
The distinguished name of the entry.
objectClass
The object class to associate with the entry.
If there are no entries found using the specified search criteria, the group returned is empty.
You name the Info*Engine group that is created using the GROUP_OUT parameter on a nested param tag. For more information, see the param tag.
Syntax
<iedir:queryObjects uri="query_URL">
<iedir:param name="GROUP_OUT" data="group_name"/>
</iedir:queryObjects>
Attribute Descriptions
Required Attributes: uri
uri
Specifies an LDAP URL that identifies the search criteria to use in locating LDAP directory entries.
For the general format of this LDAP URL and examples, see Specifying URIs and URLs.
This attribute is required.
Example
The following example declares that the page uses tags from the Info*Engine directory tag library and that the tags have the iedir prefix. The queryObjects tag block creates the “ldap_query” group that contains all LDAP entries that reside in the directory service located at “myCompany.com” under the “dc=myHost,dc=myCompany,dc=com” base entry and that have an objectClass attribute:
<%@ taglib uri="http://www.ptc.com/infoengine/taglib/directory"
prefix="iedir" %>

<iedir:queryObjects
uri="ldap://myCompany.com/dc=myHost,dc=myCompany,dc=com??sub?objectClass=*">
<iedir:param name="GROUP_OUT" data="ldap_query"/>
</iedir:queryObjects>