Hi,
I tryed to use the LDAP addressbook, I confgure main.inc.php :
$rcmail_config['ldap_public']['Laboratoire'] = array( 'name' => 'Laboratoire', 'hosts' => array('myhostname'), 'port' => 389, 'base_dn' => 'ou=Users,dc=mydomain', 'bind_dn' => '', 'bind_pass' => '', 'search_fields' => array('mail', 'cn','gecos','mailALternateAddress'), // fields to search in 'name_field' => 'cn', // this field represents the contact's name 'email_field' => 'mail', // this field represents the contact's e-mail 'scope' => 'sub', // search mode: sub|base|list #'filter' => '(accountStatus=active)', // will be &'d with search field ex: (status=act) 'fuzzy_search' => 'true'); // server allows wildcard search
When I want to display the list of email which are in the LDAP's addressbook the page is empty but when I search someone I get a result.
Do you have suggestions ?
Sincerely
Right, listing without any search terms is not implemented for LDAP sources. This is due to performance issues on big LDAP directories. This could probably be improved but I'm not enough expert in LDAP queries.
~Thomas
Hager Renaud wrote:
Hi,
I tryed to use the LDAP addressbook, I confgure main.inc.php :
$rcmail_config['ldap_public']['Laboratoire'] = array( 'name' => 'Laboratoire', 'hosts' => array('myhostname'), 'port' => 389, 'base_dn' => 'ou=Users,dc=mydomain', 'bind_dn' => '', 'bind_pass' => '', 'search_fields' => array('mail', 'cn','gecos','mailALternateAddress'), // fields to search in 'name_field' => 'cn', // this field represents the contact's name 'email_field' => 'mail', // this field represents the contact's e-mail 'scope' => 'sub', // search mode: sub|base|list #'filter' => '(accountStatus=active)', // will be &'d with search field ex: (status=act) 'fuzzy_search' => 'true'); // server allows wildcard search
When I want to display the list of email which are in the LDAP's addressbook the page is empty but when I search someone I get a result.
Do you have suggestions ?
Sincerely
Ok, I understand this fonction is not implemented or just disabled, no way to activate it ? My LDAP directories isn't too big, I think this fonction could be very useful in my case.
Renaud Hager
Thomas Bruederli a écrit :
Right, listing without any search terms is not implemented for LDAP sources. This is due to performance issues on big LDAP directories. This could probably be improved but I'm not enough expert in LDAP queries.
~Thomas
Hager Renaud wrote:
Hi,
I tryed to use the LDAP addressbook, I confgure main.inc.php :
$rcmail_config['ldap_public']['Laboratoire'] = array( 'name' => 'Laboratoire', 'hosts' => array('myhostname'), 'port' => 389, 'base_dn' => 'ou=Users,dc=mydomain', 'bind_dn' => '', 'bind_pass' => '', 'search_fields' => array('mail', 'cn','gecos','mailALternateAddress'), // fields to search in 'name_field' => 'cn', // this field represents the contact's name 'email_field' => 'mail', // this field represents the contact's e-mail 'scope' => 'sub', // search mode: sub|base|list #'filter' => '(accountStatus=active)', // will be &'d with search field ex: (status=act) 'fuzzy_search' => 'true'); // server allows wildcard search
When I want to display the list of email which are in the LDAP's addressbook the page is empty but when I search someone I get a result.
Do you have suggestions ?
Sincerely