Opened 4 years ago

Closed 4 years ago

#1485783 closed Bugs (fixed)

AddressBook rendering problem when using displayName as...Display Name.

Reported by: Numbski Owned by:
Priority: 5 Milestone: 0.3-stable
Component: LDAP connection Version: 0.2.1
Severity: normal Keywords:
Cc: yolkov@…

Description

This issue was discussed in this thread in the forums for further background:

http://www.roundcubeforum.net/general-discussion/4435-strange-rendering-issue-ldap-active-directory.html

When I configure LDAP as below:

'search_fields' => array('mail', 'cn', 'displayName', 'mailNickname'),
'name_field' => 'displayName',
'email_field' => 'mail',
'surname_field' => 'sn',
'firstname_field' => 'givenName',
'sort' => 'sn',
'scope' => 'sub', search mode: sub|base|list
'filter' => '(&(mailNickname=*)(sn=*)(!(msExchHideFromAddressL ists=TRUE))),

I'd like the Display Names that appear by default to be literally the user's displayName attribute, and for those to be ordered by last name (sn). It appears that the above works, HOWEVER there's a problem. All of the fields in the Display Name column in RoundCube are blank! The bottom of the screen reads: "Contacts 1 to 40 of 2000". If I click on one of those blanks, a user appears - and as such, those blanks are ordered by last name. Very strange!

Now, if I change name_field from displayName to cn, those fields are populated with the cn - but here that isn't useful, because those cn's are numeric. (I didn't do it, HONEST!) If I change it to company, the companies get listed. I can change it to anything basically but displayName. If I do that, the fields render blank.

Attached is an image of the problem.

Attachments (1)

Address Book - Mozilla Firefox.png (92.0 KB) - added by Numbski 4 years ago.
Screenshot

Download all attachments as: .zip

Change History (8)

Changed 4 years ago by Numbski

Screenshot

comment:1 Changed 4 years ago by Numbski

Sorry about that. Here's my config, un-garbled.

'search_fields' => array('mail', 'cn', 'displayName', 'mailNickname'),
'name_field' => 'displayName',
'email_field' => 'mail',
'surname_field' => 'sn',
'firstname_field' => 'givenName',
'sort' => 'sn',
'scope' => 'sub', // search mode: sub|base|list
'filter' => '(&(mailNickname=*)(sn=*)(!(msExchHideFromAddressL ists=TRUE))),

comment:2 Changed 4 years ago by alec

  • Milestone changed from later to 0.2.2

comment:3 Changed 4 years ago by yolkov

  • Cc yolkov@… added
  • Priority changed from 5 to 4

comment:4 Changed 4 years ago by yolkov

  • Priority changed from 4 to 5

comment:5 Changed 4 years ago by yolkov

'name_field' => 'displayName'
if "displayName" is changed to "displayname", then it works.

comment:7 Changed 4 years ago by alec

  • Component changed from Addressbook to LDAP connection
  • Resolution set to fixed
  • Status changed from new to closed

Fixed in [0131ec97].

Note: See TracTickets for help on using tickets.