Closed Bug 303301 Opened 19 years ago Closed 19 years ago

LDAP only works for attributes that are specified in lower case

Categories

(MailNews Core :: LDAP Integration, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: standard8, Assigned: standard8)

Details

Attachments

(1 file)

Looks like this is spill out from bug 119291 (LDAP attributes should be
customizable) and bug 116692

When we use the default attributes for LDAP, only some of the parameters work
when displaying the address book cards, things like homePhone, nsAIMid and
others don't.

The ones that do not work, do if you override them with lower case versions of
their names.

Steps to reproduce:
1) Search for an ldap card with all properties specified.
2) Display card.
3) Only some properties (name, email and others) are displayed.
4) Change attributes in prefs to lower case versions
5) Restart, redo search and changed attributes are displayed correctly alongside
the others.

Possible patch coming up.
This patch fixes the problem by setting the attribute to lower case before we
process it. I'm not sure if it is the best place to do the lower case
conversion, but I'm hoping Dan can advise on that.
Attachment #191525 - Flags: review?(dmose)
Comment on attachment 191525 [details] [diff] [review]
Possible Patch (checked in)

r+sr=dmose
Attachment #191525 - Flags: superreview+
Attachment #191525 - Flags: review?(dmose)
Attachment #191525 - Flags: review+
Hope you're ok with me re-assigning to you, since you've already done the work.  :-)
Assignee: dmose → bugzilla
Flags: blocking1.8b4?
Hardware: PC → All
Attachment #191525 - Flags: approval1.8b4?
Flags: blocking1.8b4? → blocking1.8b4+
Attachment #191525 - Flags: approval1.8b4? → approval1.8b4+
Comment on attachment 191525 [details] [diff] [review]
Possible Patch (checked in)

I just checked this in:

/cvsroot/mozilla/mailnews/addrbook/src/nsAbLDAPAttributeMap.js,v  <-- 
nsAbLDAPAttributeMap.js
new revision: 1.2; previous revision: 1.1
Attachment #191525 - Attachment description: Possible Patch → Possible Patch (checked in)
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: