I love Free Software!

Pages

Funny Quotes to Think

When you say "I wrote a program that crashed Windows", people just stare at You blankly and say "Hey, I got those with the system, for free"

-Torvalds, Linus(1995-03-08)-

Saturday, May 29, 2010

Sync your samba password using roundcube password plugin

Why I require this patch ?

Roundcube password plugin does not sync samba password. This patch can sync your samba password using roundcube password plugin

Apply this patch at your own risk . Dont forget to use --dry-run option before running this patch

How  to apply patch ?

  • Download patch file from download link listed below.
  • Copy patch file to directory /usr/share/roundcube/plugins/password/drivers.
  • For a safer side take a backup of your original ldap.php file.

        # cp ldap.php ldap.php.org
  • Now patch your ldap.php file.  


        #  patch -p0 < rcldappasswd.patch  
 
Where can I download this patch ?

I have uploaded the patch in below location.

Download RCLdapPatch

10 comments:

  1. Thanks for sharing, but when i try to patch i get this error

    patching file ldap.php
    Hunk #1 FAILED at 21.
    patch: **** unexpected `***' at line 37: *** ldap.php 2010-05-19 15:28:39.000000000 +0530

    ReplyDelete
  2. Please share your email addres or you can send me mail to praveen.velu84@yahoo.com. I can send the patch by mail

    ReplyDelete
  3. Hi Praveen,

    I got same error that Menecio got.

    Could you help me?

    send me instructions to harryjsa (at) gmail.com

    ReplyDelete
  4. Hi again Praveen,

    Just a feedback that I get it working including on my code lines below.

    // Building user DN
    if ($userDN = $rcmail->config->get('password_ldap_userDN_mask')) {
    + $name = $_SESSION['username'];

    // All done, no error
    + echo exec(`echo -e '$passwd\n$passwd'|sudo /usr/sbin/smbldap-passwd -s $name`);
    return PASSWORD_SUCCESS;
    }

    Thanks for sharing it!

    Greetings from Brazil.

    ReplyDelete
  5. Thanks Jorge for sharing this information with us

    ReplyDelete
  6. Hi Praveen,

    I am Getting below error

    patching file ldap.php
    Hunk #1 FAILED at 21.
    patch: **** unexpected `***' at line 37: *** ldap.php 2010-05-19 15:28:39.000000000 +0530

    ReplyDelete
  7. Hi Praveen,

    Am getting the same error as above,how do i go abt it ??


    Cheers,
    Gopa

    ReplyDelete
  8. Hi Venkat/ Gopa,

    I have uploaded the patch here

    https://sites.google.com/site/pravindev84/rcldap-patch

    Please try this patch. Use dry-run before you run patch. Please let me know the feedback.

    ReplyDelete
  9. Hi Praveen

    Can we automatically purge mails in Trash folder or in any folder which is older than 5 days.

    ReplyDelete
  10. How can I make Roundcube change passwords created on the Server not in Ldap but using pam

    ReplyDelete