Addressbook doesn't pay attention to multiple mail: attributes in an LDAP directory

NEW
Unassigned

Status

--
major
14 years ago
6 years ago

People

(Reporter: george, Unassigned)

Tracking

Trunk
x86
Windows 2000

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

14 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7.3) Gecko/20040913 Firefox/0.10
Build Identifier: Thunderbird 0.8 20040913

Say I have the entry:

dn: cn=Doug Test,ou=addressbook,dc=alink,dc=co,dc=za
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
givenName: Doug
sn: Test
cn: Doug
mail: doug@wang.com
mail: doug@foobar.com

The address book as supplied with Thunderbird wont see the second email address.

I've found I'm able to see both addresses by creating another ou and putting a
second object in there, eg:

dn: cn=Doug Test,ou=secondarymail,ou=addressbook,dc=alink,dc=co,dc=za
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
givenName: Doug
sn: Test
cn: Doug
mail: doug@foobar.com

One I do this, it finds both, but that's a bit kludgy - 2 entries for anyone
with a second mail address. 

This isn't the correct behaviour.  I believe Evolution behaves nicely, but since
I'm on Windows, I have no idea :)

Reproducible: Always
Steps to Reproduce:
1.  Create an Object in your LDAP dircetory with 2 mail: attributes
2.  Compose New mail and type the first few characters of the name
3.  Only 1 email address will come up



Expected Results:  
Software should list all mail attributes as at the moment, it's limited to 1
email address per person.

Comment 1

14 years ago
Same problem on Linux version 1.0 (20041230). Linux version is "Gentoo Base
System version 1.4.16", IMAP server is Courier-imap 3.0.8.

Comment 2

14 years ago
-> Core:MailNews:LDAP Integration
Assignee: mscott → sspitzer
Component: Address Book → MailNews: LDAP Integration
Product: Thunderbird → Core
QA Contact: grylchan
Version: unspecified → Trunk

Comment 3

14 years ago
I have a similar problem (in both Thunderbird and Moz. Mail). I've understood
that this is due to The mail component looking for an attribute like
mozillaSecondEmail or nsSecondEmail instead of supporting multivalued attributes
like it should.

What is even stranger is that Moz. Mail _does sometimes_ work as it should by
showing a choise for _each_ value of mail instead of just the first value.
This is an automated message, with ID "auto-resolve01".

This bug has had no comments for a long time. Statistically, we have found that
bug reports that have not been confirmed by a second user after three months are
highly unlikely to be the source of a fix to the code.

While your input is very important to us, our resources are limited and so we
are asking for your help in focussing our efforts. If you can still reproduce
this problem in the latest version of the product (see below for how to obtain a
copy) or, for feature requests, if it's not present in the latest version and
you still believe we should implement it, please visit the URL of this bug
(given at the top of this mail) and add a comment to that effect, giving more
reproduction information if you have it.

If it is not a problem any longer, you need take no action. If this bug is not
changed in any way in the next two weeks, it will be automatically resolved.
Thank you for your help in this matter.

The latest beta releases can be obtained from:
Firefox:     http://www.mozilla.org/projects/firefox/
Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html
Seamonkey:   http://www.mozilla.org/projects/seamonkey/

Comment 5

13 years ago
The problem remains. When people have multiple "mail" attributes, only the first
one is shown in the autocompletion.

Thunderbird version: 1.0.6
OpenLDAP: 2.2.28

Comment 6

13 years ago
Additional check:

thunderbird-1.5b1 also still has the bug.

Comment 7

13 years ago
Environment:  Windows XP, Thunderbird 1.0.7
Server: Linux Suse 9.1, Openldap 2.2.x
Schema: mozillaAddressBookEntry

Not sure if this is the applicable place but the problem I have is similar problem.

Using his example.

dn: cn=Doug Test,ou=addressbook,dc=alink,dc=co,dc=za
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
givenName: Doug
sn: Test
cn: Doug
mail: doug@wang.com
mozillasecondemail: doug@foobar.com

You can search for the "mozillasecondemail" from the Advanced Search in
Thunderbird and it will return the correct "cn" users, but it will not show the
"mozillasecondemail" either in the properties in the search result list.

The log looks like this.

Oct 18 22:42:39 nature slapd[15109]: conn=38 op=1 SRCH
base="dc=alink,dc=co,dc=za" scope=2 deref=0
filter="(|(mozillaSecondEmail=*foobar*))"
Oct 18 22:42:39 nature slapd[15109]: conn=38 op=1 SRCH attr=modifytimestamp
xmozillausehtmlmail description notes custom4 custom3 custom2 custom1 birthyear
homeurl workurl nscpaimscreenname countryname company o departmentnumber
department orgunit ou title countryname zip postalcode region st locality l
streetaddress postofficebox carphone cellphone mobile pagerphone pager
facsimiletelephonenumber fax homephone telephonenumber xmozillasecondemail mail
xmozillanickname displayname commonname cn surname sn givenname
Oct 18 22:42:39 nature slapd[15109]: <= bdb_substring_candidates:
(mozillaSecondEmail) index_param failed (18)
Oct 18 22:42:39 nature slapd[15109]: conn=38 op=1 SEARCH RESULT tag=101 err=0
nentries=3 text=
Oct 18 22:44:10 nature slapd[15109]: conn=38 fd=10 closed

I can also reproduce this for the "mozillanickname" as well.  It can be searched
but not viewed as part of the record.  It also doesn't see "mozillacustom1".

I know data is in the database because on can go on the server and run a
"ldapsearch" and all the information is there.

Comment 8

13 years ago
This may be the same problem as in bug 314047, for which I just supplied a patch.
*** Bug 359843 has been marked as a duplicate of this bug. ***

Comment 10

12 years ago
I can confirm this bug is still present in Linux build 1.5.0.10 (20070221). 
when there are multiple mail: attributes only the first one is displayed.

I can test any patches if they are available.
sorry for the spam.  making bugzilla reflect reality as I'm not working on these bugs.  filter on FOOBARCHEESE to remove these in bulk.
Assignee: sspitzer → nobody

Updated

10 years ago
QA Contact: grylchan → ldap-integration
(Assignee)

Updated

10 years ago
Product: Core → MailNews Core

Comment 12

10 years ago
Does this seem to be the same issue as bug 261497?
(In reply to comment #12)
> Does this seem to be the same issue as bug 261497?
> 
No. multiple mail: attributes is a different issue to not picking up on xmozillaSecondEmail:
Duplicate of this bug: 677763

Comment 15

7 years ago
This is a problem with the search filter which currently only searches the primary email. You need to add the attributes "smtpemail2" and "smtpemail3" to your search filter.
(In reply to donrhummy from comment #15)
> This is a problem with the search filter which currently only searches the
> primary email. You need to add the attributes "smtpemail2" and "smtpemail3"
> to your search filter.

No you don't. The LDAP standard is to have multiple attributes for "mail" listed as shown in comment 0. I don't know how your server is configured, but I've never seen "smtpemail2" or "smtpemail3" as fields before.

Comment 17

7 years ago
(In reply to Mark Banner (:standard8) from comment #16)
> (In reply to donrhummy from comment #15)
> > This is a problem with the search filter which currently only searches the
> > primary email. You need to add the attributes "smtpemail2" and "smtpemail3"
> > to your search filter.
> 
> No you don't. The LDAP standard is to have multiple attributes for "mail"
> listed as shown in comment 0. I don't know how your server is configured,
> but I've never seen "smtpemail2" or "smtpemail3" as fields before.

Weird. If I only use "mail" it never searches the second or third email on my exchange server. Any idea how I can change this functionality on an exchange server?

Comment 18

7 years ago
You can configure TB to search whatever you like; but it will only ever select the first entry for mail.  There does not appear to be a method for it to display multiple entries, nor an alternative field such as mozillaSecondEmail.

Comment 19

7 years ago
I confirm that this bug is still remaining.
i have this entry on my ldap : 

dn: cn=LOFFREDA,ou=Informatique,ou=Professeurs,dc=aubanel
objectClass: person
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: top
postalCode: 30200
givenName:: U3TDqXBoYW5l
cn: LOFFREDA
sn: LOFFREDA
street:: MjAgY2hlbWluIGR1IFZhbCBkZSBDw6h6ZQ==
mail: sloffreda@ac-aix-marseille.fr
mail: loffreda@free.fr

under thunderbird i can't see the second email.

Thank you for the future correction.
Stef
I wondered if any application makes use of multiple email values. I just tried
Evolution. Its addressbook does. And it allows editing LDAP-entries. I counldn't 
get KAddressbook working so I don't know if it does.
You need to log in before you can comment on or make changes to this bug.