Sun Directory Services 3.1 User's Guide

Standard Search Parameters

To add a standard search to Deja, define it in the Standard Search section of the Deja.properties file. Each type of search is declared in the STANDARD_SEARCH_FILTERS definition. Each search is then defined on a separate line. A search definition consists of the search name (for example, STANDARD_SEARCH_FILTER_PERSON), the label that appears in the Search Type option button (for example, STANDARD_SEARCH_FILTER_PERSON_IDENTIFIER), and the search definition (for example, (&(objectclass=person)(cn=*{0}*)) ).


STANDARD_SEARCH_TABLE_LABELS

Contains a list of the attributes and header labels for the search results table. By default the cn, telephoneNumber and mail attributes are listed.


Example A-4 Standard Search Parameters

#
# Standard Search
#
STANDARD_SEARCH_FILTERS= STANDARD_SEARCH_FILTER_PERSON,
STANDARD_SEARCH_FILTER_LOCALITY, STANDARD_SEARCH_FILTER_ORGANIZATION,
STANDARD_SEARCH_FILTER_WILDCARD
STANDARD_SEARCH_FILTER_PERSON= STANDARD_SEARCH_FILTER_PERSON_IDENTIFIER,
(&(objectclass=person)(cn=*{0}*))
STANDARD_SEARCH_FILTER_LOCALITY= STANDARD_SEARCH_FILTER_LOCALITY_IDENTIFIER,
(l=*{0}*)
STANDARD_SEARCH_FILTER_ORGANIZATION=
STANDARD_SEARCH_FILTER_ORGANIZATION_IDENTIFIER, (|(o=*{0}*)(ou=*{0}*))
STANDARD_SEARCH_FILTER_WILDCARD= STANDARD_SEARCH_FILTER_WILDCARD_IDENTIFIER,
{0}
STANDARD_SEARCH_TABLE_LABELS= cn; STANDARD_SEARCH_TABLE_NAME_LABEL,
telephoneNumber; STANDARD_SEARCH_TABLE_PHONE_LABEL, mail;
STANDARD_SEARCH_TABLE_MAIL_LABEL

Adding a New Standard Search

To add a standard search for the uid attribute.

  1. Declare the search definition in the STANDARD_SEARCH_FILTERS line:


    STANDARD_SEARCH_FILTERS= STANDARD_SEARCH_FILTER_PERSON,
    STANDARD_SEARCH_FILTER_LOCALITY,
    STANDARD_SEARCH_FILTER_ORGANIZATION,
    STANDARD_SEARCH_FILTER_WILDCARD, NEW_SEARCH_FILTER_UID

    The label for the new search is NEW_SEARCH_FILTER_UID.

  2. Define the search:


    NEW_SEARCH_FILTER_UID= User ID, (&(objectclass=*)(uid=*{0}*))

    The label to appear in the Search Type option button is User ID, and Deja searches for entries containing the specified value for the attribute uid.

  3. Add additional search results table labels:


    STANDARD_SEARCH_TABLE_LABELS= cn;
    STANDARD_SEARCH_TABLE_NAME_LABEL, telephoneNumber;
    STANDARD_SEARCH_TABLE_PHONE_LABEL, mail;
    STANDARD_SEARCH_TABLE_MAIL_LABEL, uid;User ID

    User ID is added to the search results table headings.

  4. Close Deja and restart it.

    You search type is added to the Standard Search panel.