Sun Java System Web Server 6.1 SP12 Administrator's Guide

Building Custom Search Queries

For LDAP services, the “Find all users whose” field allows you to build a custom search filter. Use this field to narrow down the search results returned by a “Find user” search.

The “Find all users whose” field provides the following search criteria:

The available search attribute options are described in the following table:

Table 3–3 Search Attribute Options

Option Name  

Description  

full name 

Search each entry’s full name for a match. 

last name 

Search each entry’s last name, or surname for a match. 

user id 

Search each entry’s user id for a match. 

phone number 

Search each entry’s phone number for a match. 

email address 

Search each entry’s email address for a match. 

unit name 

Search each entry’s unit name for a match. 

description 

Search each organizational unit entry’s description for a match. 

The available search type options are described in the following table:

Table 3–4 Search Type Options

Option Name  

Description  

contains

Causes a substring search to be performed. Entries with attribute values containing the specified search string are returned. For example, if you know an user’s name probably contains the word “Dylan,” use this option with the search string “Dylan” to find the user’s entry. 

is

Causes an exact match to be found. That is, this option specifies an equality search. Use this option when you know the exact value of an user’s attribute. For example, if you know the exact spelling of the user’s name, use this option. 

isn’t

Returns all the entries whose attribute value does not exactly match the search string. That is, if you want to find all the users in the directory whose name is not “John Smith,” use this option. Be aware, however, that use of this option can cause an extremely large number of entries to be returned to you. 

sounds like

Causes an approximate, or phonetic, search to be performed. Use this option if you know an attribute’s value, but you are unsure of the spelling. For example, if you are not sure if a user’s name is spelled “Sarret,” “Sarette,” or “Sarett,” use this option. 

starts with

Causes a substring search to be performed. Returns all the entries whose attribute value starts with the specified search string. For example, if you know a user’s name starts with “Miles,” but you do not know the rest of the name, use this option. 

ends with

Causes a substring search to be performed. Returns all the entries whose attribute value ends with the specified search string. For example, if you know a user’s name ends with “Dimaggio,” but you do not know the rest of the name, use this option. 

To display all of the users entries contained in the Look within directory, enter either an asterisk (*) or simply leave this text field blank.