Roundcube Community Forum
Release Support => Release Discussion => Topic started by: Backi on May 07, 2008, 10:24:43 AM
-
hi all,
i need help to get roundcube working with http://freeldap.org/
i tried to set up all in main.inc.php, but anyhow nothing is working
Freeldap.org:
"Need a centralized address book that doesn't require installing additional software? You've come to the right place! You can use the LDAP protocol thats built into almost all the mail clients and computers out there to store and access your contacts.
This website brings you this LDAP service, for free, for life. Use it from the browser, from a Mac, Windows, Unix and more. "
-
I tried to make it work as well. No chance so far. I'm not really deep into that topic so for now I'm running out of ideas for the configuration.
I do not have any logged error messages but one: problem with instant access in rcube_ldap.inc on line 411. No idea what to do. Help anyone? I'd like to use LDAP to synchronize with my Mac OS X Address Book.
If LDAP is not the right way: any other idea to do that?
Thanks
-
What settings are you using? It works fine for me, but it needs some special configuration.
-
Well, meanwhile I got it working as well. But it does not show all my contacts, I can only search and especially autocomplete in the composing window does not work. A developer told me this is because of freeldap.org not supporting fuzzy search. Did you make that work?
-
could you post here what you did to get it working?
-
Of course:
$rcmail_config['ldap_public']['freeldap'] = array(
'name' => 'freeldap',
'hosts' => array('ds1.us.freeldap.org'),
'port' => 389,
'base_dn' => 'o=entic.net',
'bind_dn' => 'uid=Vicelow, ou=People, o=entic.net',
'bind_pass' => 'mypassword',
'ldap_version' => 3, // using LDAPv3
'search_fields' => array('mail', 'cn'), // 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
'surname_field' => 'sn', // this field represents the contact's last name
'firstname_field' => 'gn', // this field represents the contact's first name
'scope' => 'sub', // search mode: sub|base|list
'filter' => '', // used for basic listing (if not empty) and will be &'d with search queries. example: status=act
'fuzzy_search' => true); // server allows wildcard search
Keep in mind that you need to search in order to see contacts in your address book and autocomplete when composing emails won't work...
-
thanks, but if autocompletion isnt working, than its not interesting anymore.
btw.: what other clients do you sync with freeldap?
-
Well I tried to do so with the Mac OS X Address Book, because I already was looking around for a syncing solution for a while. Roundcube's AB is still quite basic and I'd love to have it synchronized with my main AB but LDAP seems not the right way for that. I'm a bit idealess now...
-
Set your base_dn to be the same as your bind_dn, and then see. That should work. Let me know if it doesn't, we can look at it.
-
Looks like its a bug in round cube actually. Created a bug id for it: http://trac.roundcube.net/ticket/1485132
The reason it doesn't work when you have base dn of "o=entic.net" is because the search filter is getting evaluated to something like mail=* instead of mail=*asdf*.
To get it working until this bug is fixed, you can set the base_dn to be the same as your bind_dn. This limits the wildcard search to just *your* entries, which won't be blocked by the LDAP server.
Hope this helps!
-
I tried it with your hint, but it still does not work:
$rcmail_config['ldap_public']['freeldap'] = array(
'name' => 'freeldap',
'hosts' => array('ds1.us.freeldap.org'),
'port' => 389,
'base_dn' => 'uid=Vicelow, ou=People, o=entic.net',
'bind_dn' => 'uid=Vicelow, ou=People, o=entic.net',
'bind_pass' => 'mypassword',
'ldap_version' => 3, // using LDAPv3
'search_fields' => array('mail', 'cn'), // 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
'surname_field' => 'sn', // this field represents the contact's last name
'firstname_field' => 'gn', // this field represents the contact's first name
'scope' => 'sub', // search mode: sub|base|list
'filter' => '', // used for basic listing (if not empty) and will be &'d with search queries. example: status=act
'fuzzy_search' => true); // server allows wildcard search
Still it does not match any freelap entries though it finds them in the addressbook.
Any idea?
-
Oh, one more thing, 'firstname_field' should be "givenName". Set your filter to be: objectClass=top, and then let me know if it works. Private message me exactly what you are searching for and then I can have a look.
-
It worked! Nice! It was two things: I used old preferences (just copied them on upgrade) and then your hint above. Perfect! If only ABxLDAP worked now, than its the perfect syncing service. Nice nice nice
-
Anybody help me with this, as I can't get it to work. Cheers
-
Without any information on what you did, you can't expect anybody to give you help.
-
Without any information on what you did, you can't expect anybody to give you help.
$rcmail_config['ldap_public']['freeldap'] = array(
'name' => 'freeldap',
'hosts' => array('ds1.us.freeldap.org'),
'port' => 389,
'base_dn' => 'uid=dhs, ou=People, o=entic.net',
'bind_dn' => 'uid=dhs, ou=People, o=entic.net',
'bind_pass' => 'mypassword',
'ldap_version' => 3, // using LDAPv3
'search_fields' => array('mail', 'cn'), // 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
'surname_field' => 'sn', // this field represents the contact's last name
'firstname_field' => 'givenName', // this field represents the contact's first name
'scope' => 'sub', // search mode: sub|base|list
'filter' => 'objectClass=top', // used for basic listing (if not empty) and will be &'d with search queries. example: status=act
'fuzzy_search' => true); // server allows wildcard search
That is my config. Any help would be appreciated, as it just won't work for me. Cheers.
-
Ok, so what is not working for you? Autocomplete on composing an email? Any LDAP contact loading? Did you try to search a contact in the addressbook?
I would suggest you to download the actual SVN an fill all that in the main.inc.php.
If that won't work, have a look into your webserver's and roundcube's log!
If there is any entry, just copy it in here...
-
This is the error I get in roundcube logs -
[20-Jun-2008 15:15:11] PHP Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Can't contact LDAP server in \program\include\rcube_ldap.inc on line 126
[20-Jun-2008 15:15:11 +0100] LDAP Error: Bind failed for dn=uid=dhs, ou=People, o=entic.net: Can't contact LDAP server in on line 0
[20-Jun-2008 15:15:12] PHP Warning: ldap_search() [function.ldap-search]: Search: Can't contact LDAP server in \program\include\rcube_ldap.inc on line 411
[20-Jun-2008 15:15:13] PHP Warning: ldap_search() [function.ldap-search]: Search: Can't contact LDAP server in \program\include\rcube_ldap.inc on line 411
Any Help guys?
-
Maybe its a connectivity issue? Can you see if you can telnet from that server (where roundcube is running on) to port 389?