Address book setup

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Address book setup

Dmitry Katsubo
Dear all,

I am trying to setup LDAP address book in Roundcube, till now without any
success. I think I have setup the LDAP address book correctly, but the
moment I open it, it shows blank persons' cards. Unfortunately nothing is
logged into /var/log/roundcube/error.

What I did wrong?

$rcmail_config['ldap_public']['public'] = array(
    'name'          => 'Public LDAP Addressbook',
    'hosts'         => array('localhost'),
    'port'          => 389,
    'user_specific' => false,
    'base_dn'       => 'cn=persons,cn=corporate',
    'scope'         => 'one',
    'filter'        => '(objectClass=inetOrgPerson)',
    'groups'        => array(
        'base_dn'        => '',
        'filter'         => '(objectClass=groupOfNames)',
        'object_classes' => array("top", "groupOfNames"),
  ),
);


--
With best regards,
Dmitry

_______________________________________________
Roundcube Users mailing list
[hidden email]
http://lists.roundcube.net/mailman/listinfo/users

screenshot.jpg (101K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Address book setup

A.L.E.C
On 06/13/2016 11:09 PM, Dmitry Katsubo wrote:

> $rcmail_config['ldap_public']['public'] = array(
>     'name'          => 'Public LDAP Addressbook',
>     'hosts'         => array('localhost'),
>     'port'          => 389,
>     'user_specific' => false,
>     'base_dn'       => 'cn=persons,cn=corporate',
>     'scope'         => 'one',
>     'filter'        => '(objectClass=inetOrgPerson)',
>     'groups'        => array(
>         'base_dn'        => '',
>         'filter'         => '(objectClass=groupOfNames)',
>         'object_classes' => array("top", "groupOfNames"),
>   ),
> );

You need 'fieldmap' here. We could probably make it optional and provide
something for inetOrgPerson, which is most common. For now, you have to
define the mapping in config.

--
Aleksander 'A.L.E.C' Machniak
Kolab Groupware Developer        [http://kolab.org]
Roundcube Webmail Developer  [http://roundcube.net]
---------------------------------------------------
PGP: 19359DC1 @@ GG: 2275252 @@ WWW: http://alec.pl
_______________________________________________
Roundcube Users mailing list
[hidden email]
http://lists.roundcube.net/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Address book setup

Dmitry Katsubo
On 2016-06-14 08:07, A.L.E.C wrote:
> You need 'fieldmap' here. We could probably make it optional and provide
> something for inetOrgPerson, which is most common. For now, you have to
> define the mapping in config.

Thanks for the help - it worked for me. Indeed if the build-in configuration
is more verbose, it would be less space for errors.

In general it worked after I have viewed several configuration files and the
best I found is [1]. Also I tried to find more detailed description of the
properties available in Roundcube, but I found nothing (except empty
description in [2]). In particular I wonder if there is a difference (notion)
of "home postal address" and "work postal address"?

[1] http://c.vestacp.com/0.9.8/ubuntu/roundcube-main.conf
[2] https://docs.kolab.org/administrator-guide/roundcube-settings-reference.html#fieldmap

--
With best regards,
Dmitry
_______________________________________________
Roundcube Users mailing list
[hidden email]
http://lists.roundcube.net/mailman/listinfo/users