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

Re: Roles

Russell Seymour wrote:
> Good afternoon all,
> I have two containers within my OpenLDAP directory:
> ou=roles,ou=Dummy Corp,ou=clients,ou=directory,ou=base
> ou=contacts,ou=Dummy Corp,ou=clients,ou=directory,ou=base
> As you would expect I have an entries in the contact list for people in
> the company that I have an entry for, e.g.
> cn=Russell Seymour,ou=contacts,ou=Dummy
> Corp,ou=clients,ou=directory,ou=base
> this has all the attributes such as address and email etc.
> Now in the ou for Roles contains the entry
> cn=Director,ou=roles,ou=Dummy Corp,ou=clients,ou=directory,ou=base
> and in this entry I have the roleOccupant, which has the full DN for the
> person in the contacts list.
> The question is, is it possible to link the roleOccupant to the person
> within an ldapsearch so that when I query the Director of the company i
> get the details of the person that it is linked to?

Not sure if it entirely fits your needs, but you should look at aliases
(RFC4512) and make search deref them as appropriate, see RFC4511 &

Ing. Pierangelo Masarati
OpenLDAP Core Team

SysNet s.r.l.
via Dossi, 8 - 27100 Pavia - ITALIA
Office:  +39 02 23998309
Mobile:  +39 333 4963172
Email:   pierangelo.masarati@sys-net.it