Search Filters For User Data Patterns; Specifying A Search Filter For A New Object - Red Hat DIRECTORY SERVER 7.1 - GATEWAY CUSTOMIZATION Manual

Gateway customization guide
Table of Contents

Advertisement

Search Filters for User Data Patterns

Specifying a Search Filter for a New Object

Search Filters for User Data Patterns
This example shows typical search filter syntax for any search string containing the @
symbol. In this example, the gateway will respond to search strings containing the @
symbol (the pattern) by searching the
the supplied value (the filter). The gateway will then return a message on the search results
form indicating the number of entries where the
address starts with"
"@"
" ""(mail=%v))"
"(mail=%v*))"
NOTE
Standard searches use only the filters associated with the first matching
pattern. Advanced searches use all filters defined for the entry.
Specifying a Search Filter for a New Object
The syntax in the following example allows users to search person entries by birthday or
birth month:
[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"
As a result of adding the line
entry in
dsgw-people
attribute for values that start with the supplied value (the filter). The gateway will return a
message on the search results form indicating the number of entries where the
or
birth is"
"date of birth starts" with
description).
NOTE
Make sure to place new patterns near the top of the pattern definitions for a
given object. For example, in the
patterns before the pattern that begins with the @ symbol. Patterns near
the end of the entry are more general and will match many different
strings.
attribute for values that are equal to or start with
mail
the user-supplied value (the description).
"email address is"
"email address starts with"
dateOfBirth=%v*))date of birth starts with
, the gateway will also filter the
dsgwfilter.conf
Modifying Default Search Filters
"email address is"
the user-supplied value (the
entry, place customized
dsgw-people
Chapter 6
Search Attributes, Filters, and Results
or
"email
to the
dateofBirth
"date of
77

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 7.1

Table of Contents