RoundCube Webmail Forum  

Go Back   RoundCube Webmail Forum > News and Announcements > General Discussion

For more information about the ads and why they're here, please see the FAQ
Reply
  #1  
Old 08-16-2007, 05:25 PM
jay jay is offline
Registered User
 
Join Date: Aug 2007
Posts: 6
Downloads: 0
Uploads: 0
Default ldap version?

what version of ldap is supported? LDAP v2 and/or LDAP v3?

I'm trying to integrate the scheduleworld ldap-server but till now without any success. I got following errors:
- PHP Notice: Bind failed for dn=uid=54198,dc=scheduleworld,dc=com
- PHP Warning: ldap_list() [<a href='function.ldap-list'>function.ldap-list</a>]: Search: Insufficient access

is this a problem of the ldap version? or any other ideas whats wrong?

thanks
jan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 08-20-2007, 12:06 AM
jay jay is offline
Registered User
 
Join Date: Aug 2007
Posts: 6
Downloads: 0
Uploads: 0
Default Re: ldap version?

after a while I found the solution!

first of all: roundcube supports LDAP v2 and v3!

I think it's a bug in the 0.1-RC1 release, because you have to change the follwing line in file \program\include\rcube_ldap.inc:
ldap_set_option($lc, LDAP_OPT_PROTOCOL_VERSION, $this->prop['port']);
to
ldap_set_option($lc, LDAP_OPT_PROTOCOL_VERSION, 3);

or if you add in file main.inc.php in the section of ldap configuration following attribut:
'version' => 3, // added for ldap version
you have to change the line in rcube_ldap.inc to
ldap_set_option($lc, LDAP_OPT_PROTOCOL_VERSION, $this->prop['version']);

is this a known bug in release 0.1-RC1?
jan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 11-08-2007, 12:20 PM
Registered User
 
Join Date: Nov 2007
Posts: 4
Downloads: 0
Uploads: 0
Default Re: ldap version?

It seems the new version (rc2) has ldap_version support. However it doesnt work... Are the theese settings correct? (Scope/filter)?

$rcmail_config['ldap_public']['ScheduleWorld'] = array(
'name' => 'ScheduleWorld',
'hosts' => array('ldap.scheduleworld.com'),
'port' => 389,
'base_dn' => 'uid=42671,dc=scheduleworld,dc=com',
'bind_dn' => 'uid=42671,dc=scheduleworld,dc=com',
'bind_pass' => '***',
'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
'scope' => 'sub', // search mode: sub|base|list
'filter' => 'objectClass=*', // will be &'d with search field ex: (status=act)
'ldap_version' => 3,
'fuzzy_search' => true); // server allows wildcard search

I am not sure how it is supposed to work but when I go to addressbook and select "scheduleworld" nothing appears (no error either) If I then enter something into search and press enter nothing appears. The same applies if enabling the example ldap host... How is it supposed to work?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 11-15-2007, 09:15 AM
Registered User
 
Join Date: Nov 2007
Posts: 4
Downloads: 0
Uploads: 0
Default Re: ldap version?

Apparently php is not compiled with ldap support at my provider (site5)... Does anyone know if it is possible to add LDAP support somehow?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 11-15-2007, 09:37 AM
jay jay is offline
Registered User
 
Join Date: Aug 2007
Posts: 6
Downloads: 0
Uploads: 0
Default Re: ldap version?

It was not easy to integrat scheduleworld ldap server. I had to mad some changes in the code of roundcube. I can send you these in two weeks (next week I'm on holiday). But before you have to be sure if your php installation support ldap or not (you should see this in the log files of roundcube and/or webserver). Let me know.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 11-17-2008, 09:15 AM
Registered User
 
Join Date: Nov 2008
Posts: 1
Downloads: 0
Uploads: 0
Default

Is anyone that have scheduleworld connected via ldap correctly? And can post his config?

I have tryed but without success...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

For more information about the ads and why they're here, please see the FAQ

All times are GMT. The time now is 03:22 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright © 2006-2008 RoundCube Webmail Community