Hi,
I'm taking my first steps in Roundcube here, and things work out pretty find mostly.
One thing I can't seem to get to work is the LDAP address book that my university runs. What I did was, I looked into main.inc.php, created a section
========================== *snip* ========================== $rcmail_config['ldap_public']['UA'] = array( 'name' => 'my university', 'hosts' => array('ldap.myuni.com'), 'port' => 389, 'use_tls' => false, 'user_specific' => false, 'base_dn' => '<my base dn>', 'bind_dn' => '<my bind dn>', 'bind_pass' => '<password>', 'writable' => false, 'ldap_version' => 3, 'search_fields' => array('mail', 'cn'), 'name_field' => 'cn', 'email_field' => 'mail', 'surname_field' => 'sn', 'firstname_field' => 'givenName', 'sort' => 'sn', 'scope' => 'list', 'filter' => '', 'fuzzy_search' => false ); ========================== *snap* ==========================
and tadaa, the Roundcubes' address book section features a new address book "my university". Unfortunately, though, no single entry appears in there, even after searching.
There are no error while binding (according to logs/error), so I guess that goes alright.
I have no idea where the mistake could be. Anyone else with a hint, maybe?
Cheers, Nico _______________________________________________ List info: http://lists.roundcube.net/users/
Nico Schlömer wrote:
'filter' => '',
and tadaa, the Roundcubes' address book section features a new address book "my university". Unfortunately, though, no single entry appears in there, even after searching.
Try current svn-trunk version or add something into 'filter', e.g. '(cn=*)'.
add something into 'filter', e.g. '(cn=*)'.
bingo, that did the trick!
unfortunately, with roundcube being much of a hydra in this scenario, this revealed *two* new problems.
no more than 5000 entries are listed. might that be a known thing?
searching the ldap address book does not work; it would always return "No
contacts found".
cheers, nico
On Monday 31 August 2009 10:43:58 A.L.E.C wrote:
Nico Schlömer wrote:
'filter' => '',
and tadaa, the Roundcubes' address book section features a new address book "my university". Unfortunately, though, no single entry appears in there, even after searching.
Try current svn-trunk version or add something into 'filter', e.g. '(cn=*)'.
List info: http://lists.roundcube.net/users/
Nico Schlömer wrote:
add something into 'filter', e.g. '(cn=*)'.
bingo, that did the trick!
unfortunately, with roundcube being much of a hydra in this scenario, this revealed *two* new problems.
- no more than 5000 entries are listed. might that be a known thing?
LDAP server "sizelimit"?
- searching the ldap address book does not work; it would always return "No
contacts found".
Did you try with current svn-trunk version?
thanks alec for the quick help.
LDAP server "sizelimit"?
i have tried a few keyword-value combinations, but rather randomly as i didn't find it documented anywhere. is there a resource for all ldap options anywhere except the provided main.php.dist file?
btw, this roundcube error message i get reads
================= *snip* ================= [31-Aug-2009 12:27:55] PHP Warning: ldap_list() [<a href='function.ldap- list'>function.ldap-list</a>]: Partial search results returned: Sizelimit exceeded in /home/wins/toegw/nschloe/www/roundcubemail-0.3- RC1/program/include/rcube_ldap.php on line 549 ================= *snap* =================
- searching the ldap address book does not work; it would always return
"No contacts found".
i got that one fixed after a bit of fiddling with the ldap options. eventually i had to set "fuzzy_search" to true, which i initially thought had nothing to do with non-asterisk queries.
cheers, nico
On Monday 31 August 2009 12:13:23 A.L.E.C wrote:
Nico Schlömer wrote:
add something into 'filter', e.g. '(cn=*)'.
bingo, that did the trick!
unfortunately, with roundcube being much of a hydra in this scenario, this revealed *two* new problems.
- no more than 5000 entries are listed. might that be a known thing?
LDAP server "sizelimit"?
- searching the ldap address book does not work; it would always return
"No contacts found".
Did you try with current svn-trunk version?
List info: http://lists.roundcube.net/users/
Nico Schlömer wrote:
LDAP server "sizelimit"?
i have tried a few keyword-value combinations, but rather randomly as i didn't find it documented anywhere. is there a resource for all ldap options anywhere except the provided main.php.dist file?
btw, this roundcube error message i get reads
================= *snip* ================= [31-Aug-2009 12:27:55] PHP Warning: ldap_list() [<a href='function.ldap- list'>function.ldap-list</a>]: Partial search results returned: Sizelimit exceeded in /home/wins/toegw/nschloe/www/roundcubemail-0.3- RC1/program/include/rcube_ldap.php on line 549 ================= *snap* =================
This is LDAP server's limit, not Roundcube's.
This is LDAP server's limit, not Roundcube's.
I see. Well, it only makes a difference in the full directory listing which is pretty useless anyway; searching works fine.
Is it actually possible to add more items to the LDAP entry, beyond "first name", "surname", and so on? I'm thinking of "deparment", "telephoneNumber" and the like.
Cheers, Nico
On Monday 31 August 2009 12:37:48 A.L.E.C wrote:
Nico Schlömer wrote:
LDAP server "sizelimit"?
i have tried a few keyword-value combinations, but rather randomly as i didn't find it documented anywhere. is there a resource for all ldap options anywhere except the provided main.php.dist file?
btw, this roundcube error message i get reads
================= *snip* ================= [31-Aug-2009 12:27:55] PHP Warning: ldap_list() [<a href='function.ldap- list'>function.ldap-list</a>]: Partial search results returned: Sizelimit exceeded in /home/wins/toegw/nschloe/www/roundcubemail-0.3- RC1/program/include/rcube_ldap.php on line 549 ================= *snap* =================
This is LDAP server's limit, not Roundcube's.
List info: http://lists.roundcube.net/users/