Thus spake Henning Brauer, on Fri, Sep 14, 2001 at 02:34:32PM +0200:
> On Fri, Sep 14, 2001 at 01:23:25PM +0100, Jose Celestino wrote:
> > Thus spake Henning Brauer, on Fri, Sep 14, 2001 at 01:36:15PM +0200:
> > > On Fri, Sep 14, 2001 at 03:33:41AM +0100, Jose Celestino wrote:
> > > > the ldap query returns more than one entry and that results in an error:
> > > 
> > > This MUST not happen.
> > > 
> > > > failure:
> > > > 
>_ldap_lookup:___init_successful__,_bind_successful/__ldap_lookup:_search_for_(|([EMAIL PROTECTED])([EMAIL PROTECTED]))_succeeded/_Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/
> > > > 
> > > > The query
> > > > (|([EMAIL PROTECTED])([EMAIL PROTECTED]))
> > > > 
> > > > returns all entries with [EMAIL PROTECTED] ||
> > > > [EMAIL PROTECTED] (no, I didn't mistype here),
> > > 
> > > This is correct. There MUST be zero or exactly one record matching.
> > > Everything else is an error in your directory.
> > > 
> > 
> > I know, but it returns the "mailForwardingAddress" fields (which are
> > definitly > 1) instead of the mailAlternateAddress.
> 
> Uhhh??? Looks like a serious OpenLDAP bug. 
> 

No, I got it. The attributes mailForwardingAddress and
mailAlternateAddress derive from the attribute mail and when I do a
search (mail=someone@somedomain) it returns all of the entries matching
those child attributes also (OpenLdap version 2).

I'll use the uid attribute for the searchs instead.

> -- 
> * Henning Brauer, [EMAIL PROTECTED], http://www.bsws.de *
> * Roedingsmarkt 14, 20459 Hamburg, Germany               *
> Unix is very simple, but it takes a genius to understand the simplicity.
> (Dennis Ritchie)

-- 
Jose Celestino <[EMAIL PROTECTED]>
---------------------------------
ticks = jiffies;
while (ticks == jiffies);
ticks = jiffies;
-- /usr/src/linux/init/main.c

Reply via email to