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

Re: Multiple domains searchable



I'm using OpenLDAP 2.2.6 with back-bdb.

If I create the alias as:

dn: mail=joeuser@foo.com,ou=authdomain,dc=xyz,dc=com
objectClass: alias
objectClass: extensibleObject
mail: joeuser@foo.com
aliasedObjectName: mail=joeuser@foo.com,ou=members,dc=foo,dc=com

and then I do:

ldapsearch -a never -b ou=authdomain,dc=xyz,dc=com mail=joeuser@foo.com

I get back the expected result, the original (nondereferenced) alias.

However, if I do

ldapsearch -a always -b ou=authdomain,dc=xyz,dc=com mail=joeuser@foo.com

I get back no results.  I would expect to get back the information from
the dereferenced alias.

Thanks,

Kevin

On Mon, 29 Mar 2004,
Dieter Kluenter wrote:

> Kevin Hildebrand <kevin@hq.ensoport.com> writes:
>
> > I am currently doing exactly this- managing multiple domains, with each
> > domain in its own database.
> [...]
> >
> > What I REALLY want to be able to do is to make the pointer entries into
> > LDAP aliases.  That would tremendously simplify things because as I see
> > it, the LDAP server will then dereference the alias for you, and save you
> > from having to do two lookups.  However, I haven't been able to get
> > OpenLDAP to do this, I've beat my head against it for days and I can't get
> > aliases to work.
> [...]
>
> What version are you running?
> With OpenLDAP-2.2.x you can create aliases.
> I have never tested  aliases in large quantities so I don't know to
> what extend a huge number of aliases would increase the system load.
>
> -Dieter
>
> --
> Dieter Kluenter  | Systemberatung
> Tel:040.64861967 | Fax: 040.64891521
> mailto: dkluenter(at)dkluenter.de
> http://www.avci.de
>
>