Sun Java System Directory Server Enterprise Edition 6.3 Developer's Guide

Search Attribute Properties

NameFinder lets you configure attributes that define search options, attributes to search, and labels for the values returned. The Java properties definitions for such attributes take the following form:

NameFinder.attr#=optChar|colChar|attr|label|colLabel
#

A decimal number

Do not leave any numbers in the sequence that remain commented out. NameFinder depends on having the numbers in ascending order without gaps.

optChar

An option character for use in searches

For example, P is by default the phone number option. Thus, search for the entry with phone number 1 234 567 8910 by typing -P "1 234 567 8910" in the NameFinder search field.

Do not use F as an option character. This character is reserved to allow you to enter LDAP search filters, such as -F "(telephoneNumber=1 234 567 8910)", directly.

This parameter is called arg1 in WEB-INF/classes/sample.properties.

colChar

A character for use in defining table columns as a parameter to NameFinder

For example, you can use the default configuration. You use the default by passing fields=nfeP as one of the options in the URL to NameFinder for a search that returns multiple entries. NameFinder displays results in a four-column table that has column labels Lastname, Firstname, eMail, and Phone #.

This argument is called arg2 in WEB-INF/classes/sample.properties.

attr

The LDAP attribute to search when using optChar

This argument is called arg3 in WEB-INF/classes/sample.properties.

label

The label to display for the corresponding attr value when showing results for a single LDAP entry

This argument is called arg4 in WEB-INF/classes/sample.properties.

colLabel

The column label to display in the table header for the corresponding attr value when showing results for multiple LDAP entries

This argument is called arg5 in WEB-INF/classes/sample.properties.

You can leave variables blank in search attribute properties definitions.