![]() |
|
|
|||||||
| For more information about the ads and why they're here, please see the FAQ |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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. |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
|||
|
|||
|
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 |
|
#7
|
|||
|
|||
|
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 |
|
#8
|
|||
|
|||
|
what RC release do you have installed? because you seem to have different options from the RC1 release and even the current SVN
|
|
#9
|
|||
|
|||
|
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 |
|
#10
|
|||
|
|||
|
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 |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
| For more information about the ads and why they're here, please see the FAQ |