[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: entryDN attribute / index (from iPlanet)

> The first problem I've met is that iPlanet seems to define a magic
> attribute "entryDN" for each directory entry.  The iPlanet docs list
> this as a "System index" that indexes the dns of each entry quickly.

> Our application does searches like :
>   "entryDn=cn=mygroup,ou=groups,o=mycustomer"

The search operation can use a scope of base, one, or subtree, and
position the root of this search at any point in the DIT.  Since you
have the DN of the object in question, why search the entire database
for it?  The common methodology would be to search like:

ldapsearch -x \
        -b cn=mygroup,ou=groups,o=mycustomer \
        -s base \

This method has the advantage of working unmodified on any
standards-compliant directory server.  (And most of the non-compliant

If you can use base and scope to eliminate your need for an attribute
with the dn, you will likely also find it easier to port to other
directory servers.

Matthew Backes