Author Topic: Show additional LDAP fields - i.e. phoneNumber  (Read 6033 times)

Offline Ilya Ruprecht

  • Newbie
  • *
  • Posts: 1
Show additional LDAP fields - i.e. phoneNumber
« on: May 07, 2008, 09:09:28 AM »
Hi all!

@first: many thanks to the developers, GREAT piece of software.
I'll help if i can.

But first a: LDAP worked out of the box, i got the expected userlist and their data.

Now, i would like to show now only "cn, sn,gn,email" but also the "telephoneNumber".

Now the question: how do i accomplish it?

Simply add the

'phone_field'  => 'telephoneNumber',

in the main.inc.php and appropriate label in the Language did not worked.



How then?


Thank you in advance!

Offline drivesoslow

  • Newbie
  • *
  • Posts: 1
Show additional LDAP fields - i.e. phoneNumber
« Reply #1 on: July 01, 2008, 11:53:05 AM »
I would love to be able to display additional fields like address and phone number too

Offline Sava

  • Newbie
  • *
  • Posts: 3
Show additional ldap fields
« Reply #2 on: December 02, 2008, 10:35:11 AM »
Hi! I know how you can do it
In addition to Ilya Ruprecht actions we need to edit next files in program/steps/addressbook:
show.inc
save.inc
edit.inc
Find and edit variable
$a_show_cols = array('name', 'firstname', 'surname', 'email', 'phone', 'title', 'company');
like that.

Don't forget to add keys in main.inc.php like

'phone_field'           => 'telephoneNumber',
'title_field'   => 'title',
'company_field' => 'o',

and to labels.inc -
$labels['phone'] = 'Telephone';
$labels['title'] = 'Dolzhnost';
$labels['company'] = 'Company';

Offline yosh

  • Newbie
  • *
  • Posts: 4
Show additional LDAP fields - i.e. phoneNumber
« Reply #3 on: July 02, 2009, 01:09:16 AM »
Does this work for you guys? Because I've tried with the 0.2 alpha version and now 0.3 beta and I only get the labels, no information :(:o

I've checked that I typed in the field names right and that there is actual info in them ,)

/yosh

Offline yosh

  • Newbie
  • *
  • Posts: 4
Show additional LDAP fields - i.e. phoneNumber
« Reply #4 on: July 02, 2009, 01:20:24 AM »
nvm, I tried to substitute one of the standard fields with my ldap cell phone number field, didn't work :/ Something else is wrong here...

yessir, it's non-standard ldap attribute names. Like 'mobile' instead of 'telephoneNumber'. If I use telephoneNumber, I get the correct info. Anybody knows how to fix so that I can read all of the funky attributes? :/
« Last Edit: July 02, 2009, 01:34:56 AM by yosh »

Offline eddiechen

  • Newbie
  • *
  • Posts: 2
Show additional LDAP fields - i.e. phoneNumber
« Reply #5 on: April 14, 2010, 05:11:55 AM »
I have success does it in iRedMail ldap backend.

iredmail - Project Hosting on Google Code  I test in 0.6rc1 in ubuntu 910
program/steps/addressbook:
show.inc
save.inc
edit.inc
$a_show_cols = array('name', 'firstname', 'surname','mobile', 'email');

main.inc.php

'mobile_field' => 'mobile',

/roundcubemail/program/localization/en_US/labels.inc
$labels['mobile'] = 'Mobile';
« Last Edit: April 14, 2010, 05:17:18 AM by eddiechen »