[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Question on slapd.conf indexes and attribute properties in schemas
- To: OpenLdap-Software@OpenLDAP.org
- Subject: Question on slapd.conf indexes and attribute properties in schemas
- From: Tak Fujiwara <tak.fujiwara.linux@gmail.com>
- Date: Wed, 30 Mar 2005 16:19:23 +0800
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=TptbBuuJNBZ1c6IvN+oygmjR6faUi4wA5nQ5R9BuU8HFP24xVHZfKMmhS2788aKJ2Z40Hwv43PTSuE5kchLCljJpIubW0GK+lu52AY3qTzpheWJaAIrvHD/HlY2c/zafOHc9oy854qlSjj2Ei+CsYtD3HYtC6xUCT+wdOe6FCOU=
First Question:
What is the purpose of the "pres" index? How can I use it when I
search for particular entries?
This is taken from the LDAP Admin manual to cite an example:
index default pres,eq
index uid
index cn,sn pres,eq,sub
index objectClass eq
The first line sets the default set of indexes to maintain to present
and equality. The second line causes the default (pres,eq) set of
indices to be maintained for the uid attribute type. The third line
causes present, equality and substring indices to be maintained for cn
and sn attribute types. The fourth line causes an equality index for
the objectClass attribute type.
Second Question:
How do these indexes work? Like for instance, in the schema, you can
use substrings for mail. I can use ldapsearch to search for an email
and find the entry successfully using substrings without having to
create a "mail sub" entry for mail in slapd.conf. However, searching
for a specfic given name using ldapsearch and setting a "gn eq" in
slapd.conf would yield no results.
Tak