Справочник Пользователя для Red Hat Version4.1

Скачать
Страница из 156
Chapter 6, Search Attributes, Filters, and Results 65
Adding Search Support for a New Object
The syntax added to dsgwfilter.conf in Example 6.4 defines the search values 
for the dateOfBirth attribute. 
Example 6.4 dsgw-people entry configured to search for dateofBirth values
“[0-9][0-9]/[0-9][0-9]/[0-9]0-9]” “ “ “
(dateOfBirth=%v))”
“date of birth is”
(dateOfBirth=%v*))”
“date of birth starts with”
Creating a New Search Object
To add a new search object that differs from existing search objects:
add a new entry in dsgwsearchprefs.conf
add a new entry in dsgwfilter.conf
add a new search results template
The syntax in Example 6.5 specifies that the search definition for OrgRole 
searches the cn, l, roleOccupant, description, and telephoneNumber attributes.
Example 6.5 Creating a new dsgwsearchprefs.conf entry for OrgRole
“Org-Roles”
""
"Search For:"
"(&(objectClass=organizationalRole)
"dsgw-orgrole"
not-used-by-dsgw
not-used-by-dsgw
subtree
"name"
“cn”
111111
""
""
"location"
"l"
111111
""
""
"occupant"
"roleOccupant"
111111
""
""
"description"
“description”
111011
""
""
"phone number"
"telephoneNumber"
111011
""
""
END
"is"
“(%a=%v))"
"is not"
“(!(%a=%v)))"
"sounds like"
“(%a~=%v))"
"starts with"
“(%a=%v*))"
"ends with"
“(%a=*%v))"
"contains"
“(%a=*%v*))"
END