Red Hat Version4.1 Instrukcja Użytkownika Strona 83

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 156
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 82
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
Przeglądanie stron 82
1 2 ... 78 79 80 81 82 83 84 85 86 87 88 ... 155 156

Komentarze do niniejszej Instrukcji

Brak uwag