Author Topic: LDAP won't read sub-OUs  (Read 3079 times)

Offline entropicsinkhole

  • Jr. Member
  • **
  • Posts: 13
LDAP won't read sub-OUs
« on: June 05, 2013, 03:54:45 PM »
Hmailserver 5.3.4 B1913, Server 2003, MySQL (installed with Xampp), Apache
Roundcube 0.7.2

LDAP in Roundcube will not read the contents of my sub OUs.  For instance, if I set my base DN to "ou=users,ou=location,dc=domain", it will only show results from the parent OU of users.  But my OU structure is domain > location > users > various department folder ous.  So I get no results from my department folders.   It works fine if I have no sub-OUs I have to read under 'users', but any users inside the department folders are not shown.   I have the same Base DN working fine on Thunderbird, displaying the contents of the departments folders too.

Is this a bug?  Or is this normal?  Will an update to the newest version fix it?  Or is there a settings I can change?


$rcmail_config['ldap_public'] = array (
  'DOMAIN_LDAP' =>
  array (
   'name' => 'DOMAIN Global Address Book',
   'hosts' =>
    array (
      0 => 'wpshc-dc02',
   ),
    'sizelimit' => 9000,
    'port' => 389,
    'use_tls' => false,
   'user_specific' => false,
    'base_dn' => 'ou=users,ou=location,dc=domain',
    'bind_dn' => 'domain\addressbook',
    'bind_pass' => 'password',
    'writable' => false,
    'ldap_version' => 3,
    'search_fields' =>array('mail','sn','cn','gn'),
    array (
      0 => 'mail',
      1 => 'cn',
     2 => 'sn',
     //3 => 'givenName',
     3 => 'gn',
   
    ),
    'name_field' => 'cn',
   'email_field' => 'mail',
    'surname_field' => 'sn',
     'firstname_field' => 'gn',
    'sort' => 'sn',
    'scope' => 'list',
    'filter' => 'mail=*',
    'fuzzy_search' => true
  ),
 );

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
Re: LDAP won't read sub-OUs
« Reply #1 on: June 06, 2013, 02:08:11 AM »
Try with scope=sub. And you should upgrade no matter what.

Offline entropicsinkhole

  • Jr. Member
  • **
  • Posts: 13
Re: LDAP won't read sub-OUs
« Reply #2 on: June 06, 2013, 08:00:25 AM »
That did it!  Thanks!