Ldap and Cpanel email accounts passwords for use with Global Address book

chrisnpg

Member
Aug 30, 2006
6
0
151
Looking for a way to setup an ldap address book to be used with installed Round Cube and remote Outlook users. Would like all users to authenticate via already user name "email address" along with password created / set for each cpanel email account. How can the ldap database read only the users credentials to authenticate when connecting to the Address Book / database.

Example: When a user logs in via Round Cube, they use their full email address and password that is stored within cpanel. Once they authenticate properly they should be given access to the address book that is stored within the ldap database. Same goes for an Outlook user but they are remote, so there for once authenticated they should be able to access the address book as well.

Any help or the direction needed would be very appreciated.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Example: When a user logs in via Round Cube, they use their full email address and password that is stored within cpanel. Once they authenticate properly they should be given access to the address book that is stored within the ldap database. Same goes for an Outlook user but they are remote, so there for once authenticated they should be able to access the address book as well.
Hello :)

There's no native support for the functionality you have described at this time. I suggest opening a feature request for this via:

Submit A Feature Request

In addition, I believe this functionality is not available in Roundcube itself either per this case:

LDAP based Address Book integration · Issue #1278 · roundcube/roundcubemail · GitHub

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Were you able to open a feature request for native LDAP support with Roundcube?

Thank you.
 

chrisnpg

Member
Aug 30, 2006
6
0
151
No, I've not went that far yet.
I have went ahead and setup a test system and have a working openldap system in place. I have followed the steps found at Configuration: LDAP Address Books · roundcube/roundcubemail Wiki · GitHub
I have added the the config info to /usr/local/cpanel/base/3rdparty/roundcube/config/config.inc.php

Code:
$config['ldap_public']['private'] = array(
    'name'            => 'Private LDAP Addressbook',
    'hosts'           => array('localhost'),
    'port'            => 389,
    'user_specific'   => true,
    'base_dn'         => 'cn=%u,ou=private,ou=rcabook,dc=webhop,dc=net',
    'bind_dn'         => 'cn=%u,ou=private,ou=rcabook,dc=webhop,dc=net',
    'bind_pass'       => '',   // the user login password is used
    'filter'          => '(objectClass=inetOrgPerson)',
    'groups'          => array(
        'base_dn'        => '',     // in this Howto, the same base_dn as for the contacts is used
        'filter'         => '(objectClass=groupOfNames)',
        'object_classes' => array("top", "groupOfNames"),
    ),
);

$config['ldap_public']['private'] = array(
    'name'            => 'Private LDAP Addressbook',
    'hosts'           => array('localhost'),
    'port'            => 389,
    'user_specific'   => true,
    'base_dn'         => 'cn=%u,ou=private,ou=rcabook,dc=webhop,dc=net',
    'bind_dn'         => 'cn=%u,ou=private,ou=rcabook,dc=webhop,dc=net',
    'bind_pass'       => '',   // the user login password is used
    'filter'          => '(objectClass=inetOrgPerson)',
    'groups'          => array(
        'base_dn'        => '',     // in this Howto, the same base_dn as for the contacts is used
        'filter'         => '(objectClass=groupOfNames)',
        'object_classes' => array("top", "groupOfNames"),
    ),
);
under the //LDAP area of the file.

I'm not sure if it will work due to roundcube being installed and managed by cpanel.

I also need to know if Roundcube can be upgraded on a cpanel system and stay at that version I upgrade it to.
Does anyone know what the current version of roundcube packaged with cpanel?

Yes I'm a a point I'm not sure which route to take.

Thanks for any help.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463