Installation guide

Table Of Contents
Modifying Search Attributes for Advanced Searches
72 Red Hat Directory Server Gateway Customization Guide • April 2005
Figure 6-4 Advanced Search Form: Matching Filter
Specifying Search Attributes for Person
The dsgwsearchprefs.conf syntax in the following example specifies that the cn, sn,
telephoneNumber, mail, uid, and title attributes will be used in a search for person
entries:
People
""
"Search for":
"(&(objectClass=person)"
"dsgw-people"
subtree
"full name" cn 111111 "" ""
"last name" sn 111111 "" ""
"phone number" "telephoneNumber" 111011 "" ""
"e-mail address" "mail" 111111 "" ""
"user id" "uid" 111111 "" ""
"title" title 111111 "" ""
END
"is" "(%a=%v))"
"is not" "(!(%a=%v)))"
"sounds like" "(%a~=%v))"
"starts with" "(%a=%v*))"
"ends with" "(%a=*%v))"
"contains" "(%a=*%v*))"
END
The first column in the example specifies how the LDAP attribute shown in the second
column appears in the drop-down menu on the Advanced Search form.