[turba] Problem getting LDAP shared addressbook to work correctly
Anders Bruun Olsen
anders at bruun-olsen.net
Fri Jun 6 04:15:41 PDT 2003
On Thu, Jun 05, 2003 at 10:11:43AM +0200, Anders Bruun Olsen wrote:
> On Wed, Jun 04, 2003 at 02:07:07PM -0700, Andrew Morgan wrote:
> > > It's when I have clicked the name the problem is. It writes the fields
> > > but the white fields where ie. telephonenumber should be are empty -
> > > only the name and the email address is shown.
> > Okay, just thought I'd eliminate the obvious stuff! :)
> Thats okay! :)
I have now found the problem, but still lack the solution!
As was mentioned earlier the problem is that the attribute names (the
names in LDAP) can't be mixed uppercase, lowercase. All the fields where
the corresponding LDAP attributename is pure lowercase works perfectly,
but the fields like homePhone doesn't work!
An extract from my sources.php to illustrate the setup:
$cfgSources['localldap'] = array(
'title' => 'Shared Directory',
'type' => 'ldap',
'params' => array(
'server' => 'ldap.dsl.dk',
'port' => 389,
'root' => 'ou=people,dc=dsl,dc=dk',
'dn' => array('cn'),
'objectclass' => 'person',
'version' => 3
),
'map' => array(
'__key' => 'dn',
'name' => 'cn',
'email' => 'mail',
'homephone' => 'homePhone',
'workphone' => 'telephoneNumber',
'cellphone' => 'mobile',
'homeaddress' => 'homeAddress'
),
'search' => array(
'name',
'email',
'homephone',
'workphone',
'cellphone',
'homeaddress'
),
'strict' => array(
'dn'
),
'public' => true,
'readonly' => true,
'admin' => array(),
'export' => true
);
>From this setup only name, email and cellphone works, because their
corresponding LDAP attribute names are all lowercase.
How can this be fixed? .. a PHP setup option or do I really have to
change all my LDAP attribute names to lowercase?
--
Anders
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/O d--@ s:+ a-- C++ $UL+++ P++ L+++ E- W+ N(+) o K? w O- M-- V
PS+ PE@ Y+ PGP+ t 5 X R+ tv+ b+ DI+++ D+ G e- h !r y?
------END GEEK CODE BLOCK------
PGPKey: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8BFECB41
More information about the turba
mailing list