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

Re: Tree structure



On Mon, 2002-10-14 at 16:55, Hallvard B Furuseth wrote:
> Yonah Russ writes:
> >   I'm wondering if there is any built-in/recommended method for
> > cross-referencing entries in the tree... for example, I would like to
> > have in the organization tree a ou (ie. campus name) with all the
> > members of that ou AND I would also like to have another ou (ie.
> > Department name) with the same entries but organized according to some
> > other shared attribute.
> 
> You could use aliases.  First create e.g.

Thank you! This is perfect!

>    cn=Yonah Russ, ou=Campus, dc=jct, dc=ac, dc=il
> 
> as a normal entry.  Then create:
> 
>    dn: cn=Yonah Russ, ou=Department Name, dc=jct, dc=ac, dc=il
>    objectclass: alias
>    aliasedObjectName: cn=Yonah Russ, ou=Campus, dc=jct, dc=ac, dc=il
> 
> and use the option for derefAliases=derefAlways in the LDAP search
> operations.  E.g. with ldapsearch you specify '-a always'.
> 
> -- 
> Hallvard