Author Topic: Active Directory 2012 Support  (Read 2370 times)

Offline glieberwirth

  • Newbie
  • *
  • Posts: 6
Active Directory 2012 Support
« on: June 03, 2014, 10:56:38 AM »
I know RoundCube support Active Directory, but for one reason or another I can't seem to make it to work.  Am i missing something?  Here is what I have:

main.inc.php:

$rcmail_config['ldap_debug'] = true;

$rcmail_config['address_book_type'] = 'ldap';

$rcmail_config['ldap_public'] = array(
     'pacificspecialty' => array (
            'name' => 'Pacific Specialty',
            'hosts' => array ('172.16.4.11'),
            'sizelimit' => 6000,
            'port' => 389,
            'use_tls' => false,
            'user_specific' => false,
            'base_dn' => 'CN=users,DC=pacificspecialty,DC=local',
            'bind_dn' => 'glieberwirth@pacificspecialty.local',
            'bind_pass' => 'SuperDude2',
            'writable' => false,
            'ldap_version' => 3,
            'search_fields' => array ('mail', 'cn', 'sn'),
            'search_bind_dn' => 'glieberwirth@pacificspecialty.local',
            'search_bind_pw' => 'mypassword',
            'fieldmap' => array(
                'name'        => 'cn',
                'surname'     => 'sn',
                'firstname'   => 'givenName',
                'jobtitle'    => 'title',
                'email'       => 'mail:*',
                'phone:home'  => 'home',
                'phone:work'  => '',
                'phone:mobile' => 'mobile',
                'phone:pager' => 'pager',
                'street'      => 'street',
                'zipcode'     => 'zip',
                'region'      => 'st',
                'locality'    => 'l',
            ),
            'name_field' => 'cn',
            'email_field' => 'mail',
            'surname_field' => 'sn',
            'firstname_field' => 'givenName',
            'sort' => 'sn',
            'scope' => 'list',
            'filter' => '(objectClass=inetOrgPerson)',      // used for basic listing (if not empty) and will
            'global_search' => true,
            'fuzzy_search' => true,
      ),
);

$rcmail_config['autocomplete_addressbooks'] = array('sql', 'pacificspecialty');

When I check the logs I don't see any ldap log???   

I am running Zend Server on a IBMi with LDAP support.  When I connect with the above info to the AD, it works.  Is there something alse I need??? 

Offline glieberwirth

  • Newbie
  • *
  • Posts: 6
Re: Active Directory 2012 Support
« Reply #1 on: June 05, 2014, 09:30:28 AM »
I found out that for some reason, I cannot use the configurations (at least the don't work) in the main.inc.php.  Instead I had to use the default/inc.php file with the following!

$config['ldap_public']['Anaheim'] = array (
    'name' => 'Pacific Specialty/Anaheim',
    'hosts' => array ('172.16.4.11'),
    'sizelimit' => 6000,
    'port' => 389,
    'use_tls' => false,
    'user_specific' => false,
    'base_dn' => 'OU=Users, OU=Anaheim, OU=Sites, DC=pacificspecialty, DC=local',
    'bind_dn' => 'glieberwirth@pacificspecialty.local',
    'bind_pass' => 'password',
    'writable' => false,
    'ldap_version' => 3,
    'search_fields' => array ('mail', 'cn'),
    'search_bind_dn' => 'CN=glieberwirth, CN=users,DC=pacificspecialty,DC=local',
    'search_bind_pw' => 'password',
    'fieldmap' => array(
        'name'        => 'cn',
        'surname'     => 'sn',
        'firstname'   => 'givenName',
        'jobtitle'    => 'title',
        'email'       => 'mail:*',
        'phone:home'  => 'home',
        'phone:work'  => '',
        'phone:mobile' => 'mobile',
        'phone:pager' => 'pager',
        'street'      => 'street',
        'zipcode'     => 'zip',
        'region'      => 'st',
        'locality'    => 'l'
    ),
    'name_field' => 'cn',
    'email_field' => 'mail',
    'surname_field' => 'sn',
    'firstname_field' => 'givenName',
    'sort' => 'cn',
    'scope' => 'sub',
//    'filter' => '(objectClass=inetOrgPerson)',      // used for basic listing (if not empty) and will
    'global_search' => true,
    'fuzzy_search' => true
);

$config['autocomplete_addressbooks'] = array('sql', 'Anaheim');


This is different than anywhere else I can find.   Is there anyone else that ever ran in to this?  My issues is resolved but it is kind-a weird that all the documented info did not work.