RoundCube Webmail Forum  

Go Back   RoundCube Webmail Forum > Release Support > Release Discussion

For more information about the ads and why they're here, please see the FAQ
Reply
  #1  
Old 05-25-2007, 11:06 PM
Registered User
 
Join Date: May 2007
Posts: 5
Downloads: 0
Uploads: 0
Default LDAP & Active Directory

OK, perhaps this is so self-evident that it doesn't require documentation and I'm just dense not to have figured it out, but I'm having a heck of a time trying to get the LDAP address book feature working against our Active Directory server.

I've seen several other posts here with similar questions, but no answers, so I'm REALLY hoping that this project can must some kind of documentation / response, as I don't think I'm the only one struggling with this.

Just as a bit of background, I'm using this same LDAP address book with both Outlook, Thunderbird and Apple Mail with no problems, but for the life of me can't get it working with RoundCubeMail.

I've gone into the main.inc.php file and edited the LDAP portion to below:

$rcmail_config['ldap_public']['SD60'] = array('hosts' => array('server.address.com'),
'port' => 389,
'base_dn' => 'dc=***,dc=***,dc=bc,dc=ca',
'search_fields' => array('Email' => 'mail', 'Name' => 'cn'),
'name_field' => 'cn',
'mail_field' => 'mail',
'scope' => 'sub',
'fuzzy_search' => 1);

Now if I try to do an LDAP search it *looks* like it's doing something, but after chugging away for a time, roundcube just bumps me back to the login screen.

I've also tried installing a couple of the patches I've found to allow binding to the LDAP, but again haven't had any luck with those either, although that may be me not putting the bind dn properly.

Huge thanks and gratitude to anyone who can point me in the right direction with this.

Cheers

Jeff
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 05-26-2007, 11:48 AM
Registered User
 
Join Date: May 2007
Posts: 8
Downloads: 0
Uploads: 0
Default Re: LDAP & Active Directory

Hi Jeff,

while I do not know the exact answer to your question:

(1) Check the server logs -- I am only familiar with OpenLDAP but I presume AD should also generate some kind of logs. By checking them, you can at least see whether RoundCube does a proper login, the query itself and the number of results (depending on the server loglevel, of course). I spent a few hours debugging the OpenLDAP<->RoundCube connection and the server logs proved to be the most useful piece of information for me (or sufficient at least, though I still have some problems, so I may need to augment the PHP code to spit out some debug info).

(2) I do not see any login info in the config you sent, so you are using an anonymous service? If not, add the login parameters to the config file. Obvious, I know...

(3) I'd stick with the latest official revision of RoundCube, it has some latest LDAP patches applied. I believe most of the (older) patches on the forum will be inapplicable in this case.

(4) You may also wish to try configuring RoundCube for another LDAP/ AD server.

As you see, no solid info here, sorry. Check the server logs, though, so you can isolate the problem. I had similar problems, RoundCube looked as if it was doing something, but returning no results. Only after checking the logs and correcting some obvious mistakes of mine were I able to at least retrieve search results from the server.

Regards,
Robert
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 05-29-2007, 04:04 AM
Registered User
 
Join Date: May 2007
Posts: 5
Downloads: 0
Uploads: 0
Default Re: LDAP & Active Directory

Hey Robert,

Thanks for the ideas, did some looking but still had problems getting it to work. Did get it to work by installing the latest nightly from the SVN, and I like the product better to boot, although there are some graphical glitches with Apple's Safari browser when dealing with both the preview pane and the HTML compose window (which doesn't seem to work at all). Overall I think I'm going to go with the SVN version and see how it fares.

Thanks for the thoughts though.

Jeff
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 06-04-2007, 04:17 PM
Registered User
 
Join Date: Jun 2007
Posts: 3
Downloads: 0
Uploads: 0
Default Re: LDAP & Active Directory

Hello,
after a classic LDAP configuration in main.inc.php (you need also to fill 'bind_dn' and 'bind_pass' ) it wouldn't connect! No matter any change!
except 'port' => 3268,
In fact Micro$ doesn't use a fully LDAP compliant implementation on port 389, use this one instead.

Hope it help!

Remi.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 06-04-2007, 06:29 PM
Registered User
 
Join Date: Feb 2007
Posts: 12
Downloads: 0
Uploads: 0
Default Re: LDAP & Active Directory

Mine seems to be grayed out with the SVN. Know anything about that? Could you explain more about the ports? I have been trying to get this thing to connect for months now and have still yet to make it work.

Thanks,
Austin
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 06-04-2007, 06:40 PM
Registered User
 
Join Date: Jun 2007
Posts: 4
Downloads: 0
Uploads: 0
Default Re: LDAP & Active Directory

Most likely you will have to specify a bind dn username and password for the domain. Most AD domains won't allow anonymous query of the directory. I am booting up my server now and I'll paste in how I have mine configured and seems to work OK.

Scott
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 06-04-2007, 06:55 PM
Registered User
 
Join Date: Jun 2007
Posts: 4
Downloads: 0
Uploads: 0
Default Re: LDAP & Active Directory

Here is what I did and it seems to work. The mail fields that get queried might be different depending on if you started fresh with a 2003 domain, or migrated from NT to 2003 AD. I did a migration from NT to 2003 AD.


$rcmail_config['ldap_public']['LOGH'] = array(
'name' => 'LOGH',
'hosts' => array('ip of domain controller'),
'port' => 389,
'base_dn' => 'cn=Users,dc=domain,dc=local',
'bind_dn' => 'domain\administrator',
'bind_pass' => 'password',
'encoding' => 'utf8',
'search_fields' => array('Email', 'Name'),
'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' => '', // will be &'d with search field ex: (status=act)
'fuzzy_search' => true); // server allows wildcard search

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 06-04-2007, 08:09 PM
Registered User
 
Join Date: Feb 2007
Posts: 12
Downloads: 0
Uploads: 0
Default Re: LDAP & Active Directory

what RC release do you have installed? because you seem to have different options from the RC1 release and even the current SVN
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 06-04-2007, 08:55 PM
Registered User
 
Join Date: Jun 2007
Posts: 4
Downloads: 0
Uploads: 0
Default Re: LDAP & Active Directory

I have the latest RC1 release installed. I also used the same settings for the previous beta version and they seemed to work. I have not tried anything from SVN.

Scott
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 06-04-2007, 10:03 PM
Registered User
 
Join Date: Jun 2007
Posts: 4
Downloads: 0
Uploads: 0
Default Re: LDAP & Active Directory

I should also mention that some of those I added myself and were not options listed in the sample config file. I added bind_dn, bind_pass, encoding, I think that is it.

Scott
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 12:30 AM.


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