RoundCube Webmail Forum  

Go Back   RoundCube Webmail Forum > Third Party Contributions > Plug-Ins

For more information about the ads and why they're here, please see the FAQ
Reply
  #1  
Old 09-22-2006, 12:29 AM
Registered User
 
Join Date: Sep 2006
Posts: 1
Downloads: 0
Uploads: 0
Default Patch to get name and e-mail from LDAP (at login time)

Hi,

I belive this patch can help other people with RoundCube and LDAP. At the logon time, RoundCube query an ldap server, getting name and e-mail from user (In my case, the users logon with an unique code). The information got from LDAP is saved in mysql database (identities table).

How to install:
1. Copy the file main.inc.patch (attach in this post - remove .txt extension) to directory program/include of roundcube;
2. execute: patch < main.inc.patch
3. In the config/main.inc.php file, insert:
Code:
$rcmail_config['virtuser_ldap'] = array('hosts' => 'your.ldap.server',
'port'     => 389,
'base_dn'    => 'ou=users,dc=domain,dc=com',
'name_field'  => 'cn',
'mail_field'  => 'mail',
'scope'     => 'sub');
4. Run tests. Rember, only new users (with no identities record) will be with correct name and e-mail.

There is a ticket (#1310442) requesting something like this...(I belive).

Enjoy!
Neto.

Attached Files
File Type: txt main.inc.patch.txt (1.5 KB, 82 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 03-18-2008, 05:29 PM
Registered User
 
Join Date: Oct 2007
Posts: 4
Downloads: 0
Uploads: 0
Default Re: Patch to get name and e-mail from LDAP (at login time)

Any chance this could be updated for 0.1? I was able to get it working in RC2 but so far 0.1 is stumping me. I'm pretty sure this code now belongs in the rcube_user.inc file, but I can't make it work. Our mail server lets people log in with either their unix login or their email address (first.last). We want to make sure that their First.Last is used as their from address, and so far it seems like my two options are to get this patch working, or to have a cron that queries ldap daily and builds a new virtuser file. I'd prefer not going the virtuser file method.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 04-10-2008, 08:40 AM
Registered User
 
Join Date: Feb 2008
Posts: 1
Downloads: 1
Uploads: 0
Default Re: Patch to get name and e-mail from LDAP (at login time)

yep, plz update for 0.1.1
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 04-17-2008, 06:36 PM
Registered User
 
Join Date: Oct 2007
Posts: 4
Downloads: 0
Uploads: 0
Default Re: Patch to get name and e-mail from LDAP (at login time)

It would be great if this were just rolled into the product, so that we don't have to patch each time a new version comes out.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 05-15-2008, 01:04 PM
Registered User
 
Join Date: May 2008
Posts: 1
Downloads: 0
Uploads: 0
Default

Hello,

i'm discovering roundcube.. to replace squirrel. Everything work fine but i need this patch lol.. when i try to patch it (latest version of roundcube), i didn't work, i've got this in the .rej :
****
***************
*** 565,570 ****
$user_email = $sql_arr[0];
}

// also create new identity records
$DB->query("INSERT INTO ".get_table_name('identities')."
(user_id, del, standard, name, email)
--- 565,604 ----
$user_email = $sql_arr[0];
}

+ // get name and e-mail from ldap
+ if (!empty($CONFIG['virtuser_ldap']))
+ {
****

Has somebody an idea ? )

thanks a lot !!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 08-04-2008, 11:56 AM
Registered User
 
Join Date: Aug 2008
Posts: 3
Downloads: 0
Uploads: 0
Default

Is there any news regarding this?
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 05:50 AM.


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