[RCU] Roundcube + Active directory

Nico Schlömer nico.schloemer at gmail.com
Tue Oct 13 19:30:20 CEST 2009


Hi Bely,

where do you specify the server name actually?

Here's a configuration that works for me(tm).

================ *snip* ================
$rcmail_config['ldap_public'] = array (
  'MyAdLdap' =>
  array (
    'name' => 'my fancy AD server',
    'hosts' =>
    array (
      0 => 'ldap.myserver.com',
    ),
    'sizelimit' => 6000,
    'port' => 389,
    'use_tls' => false,
    'user_specific' => false,
    'base_dn' => 'OU=foo,OU=bar,DC=com',
    'bind_dn' => 'CN=userfoo,OU=bar,DC=com',
    'bind_pass' => 'password',
    'writable' => false,
    'ldap_version' => 3,
    'search_fields' =>
    array (
      0 => 'mail',
      1 => 'cn',
    ),
    'name_field' => 'cn',
    'email_field' => 'mail',
    'surname_field' => 'sn',
    'firstname_field' => 'givenName',
    'sort' => 'sn',
    'scope' => 'list',
    'filter' => 'cn=*',
    'fuzzy_search' => true
  ),
);
================ *snap* ================

maybe that'll be of some use to you..

Cheers,
Nico



On Tuesday 13 October 2009 19:24:05 bely junior wrote:
> Hi ,
> I am trying to configure roundcube to query the address book directly in
>  AD. my conf below.
> 
> main.inc.php
> 
> $rcmail_config['ldap_public']['Intra'] = array(
>      'name'                 => 'Intra',
>      'hosts'                => array('ip domain controler'),
>      'port'                 => 3268,
>      'base_dn'              => 'DC=dominio,DC=com',
>      'bind_dn'              => 'user at dominio.com',
>      'bind_pass'            => '12345',
>      'search_fields'        => array('mail', 'cn'),
>      'name_field'           => 'cn',
>      'email_field'          => 'mail',
>      'surname_field'        => 'sn',
>      'firstname_field'      => 'givenName',
>      'scope'                => 'sub',
>      'filter'               => '(mail=*)',
>      'fuzzy_search'         => true
> 
> );
> 
> but when I try to see the address book for roundcube returns the following
> error: Internal Server Error
> 
> somebody have idea about this ?
> 
> 
> sorry my bad english.
> thanks.
> 
_______________________________________________
List info: http://lists.roundcube.net/users/



More information about the users mailing list