The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Database Discussions' started by chrisnpg, Mar 24, 2016.

  1. chrisnpg

    chrisnpg Member

    Joined:
    Aug 30, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,767
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  3. chrisnpg

    chrisnpg Member

    Joined:
    Aug 30, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,767
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  5. chrisnpg

    chrisnpg Member

    Joined:
    Aug 30, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,767
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page