Roundcube Community Forum

Release Support => Pending Issues => Topic started by: n1ete on September 09, 2010, 04:47:23 AM

Title: ldap adress-book integration
Post by: n1ete on September 09, 2010, 04:47:23 AM
hey, we are using roundcube with cyrus and ldap authentification. it works like a charm an roundcube is for us the shooting webmailer star!

i got one problem with ldap adressbook integration and i dont know what i have to do to fix that! if i click the adressbook no entrys are visible... maybe u see something strange in my main.inc.php
there are my ldap entrys:

$rcmail_config['ldap_public']['intranet.bla.de'] = array(
'name' => 'intranet.bla.de',
'hosts' => array('localhost'),
'port' => 389, // LDAP Port
'use_tls'=> false,
'user_specific' => false,
'base_dn'=> 'ou=people,dc=intranet,dc=bla,dc=de',
'bind_dn' => 'cn=user,ou=People,dc=intranet,dc=bla,dc=de',
'bind_pass'=> '*****',
'writable'=> false, // Indicates if we can write to the LDAP directory or not.
'search_fields' => array('mail', 'cn'),
'name_field' => 'cn', // this field represents the contact's name
'firstname_field' => 'givenName', // this field represents the contact's first name
'surname_field' => 'sn', // this field represents the contact's last name
'email_field' => 'mail', // this field represents the contact's e-mail
'scope' => 'sub', // search mode: sub|base|list
'filter' => '(&(mail=*)(!(msExchHideFromAddressLists=TRUE)))' , // all mail, except the exchange hidden
'sort' => 'cn', // The field to sort the listing by.
'fuzzy_search' => true,); // server allows wildcard search


thanks for any help!
Title: ldap adress-book integration
Post by: n1ete on September 13, 2010, 03:41:39 AM
Got it! it was the "mail=*" in the filter!!
can anyone explain why?

another thing to do is: i want a surname and givenname -view in the sorting list from the ldap adressbook! how i can i do that?

sorry for my bad english here