Author Topic: Change LDAP Password for RoundCube 0.2 stable  (Read 9907 times)

Offline lacri

  • Full Member
  • ***
  • Posts: 179
    • http://www.php-lexikon.de
Change LDAP Password for RoundCube 0.2 stable
« on: February 18, 2009, 06:26:49 AM »
Hi,

I have made based on John Doh's Change Password (MySQL) PlugIn a PlugIn to change LDAP Password for RC 0.2 stable.

This plugin has Feature to modify Ldap Passwort and Show a Warning at Username and Password are Similar on Main Screen and Settings Change Password Screen.

Sorry this modifikation is only in German Language at the moment you must edit your messages.inc and your labels.inc manually.

You must add the Ldap Database Settings to your db.inc.php

// LDAP settings
$rcmail_config['ldap_server'] = '';
$rcmail_config['ldap_port'] = '';
$rcmail_config['ldap_search_base'] = '';

$rcmail_config['ldap_uid_field'] = 'uid=';
$rcmail_config['ldap_mail_field'] = 'mail=';
$rcmail_config['ldap_alternatemail_field'] = 'mailalternateaddress=';
$rcmail_config['ldap_password_field'] = 'userpassword';
$rcmail_config['ldap_dn_field'] = 'dn';


the diff is for a standard RC 0.2 stable without modifications to patch it or you can download all files and overwrite yours.

Thx John Doh for your great Change Password Plugin (MySQL).

Sorry for my bad english ;)
« Last Edit: February 18, 2009, 06:44:33 AM by lacri »

Offline sysadm

  • Jr. Member
  • **
  • Posts: 16
Chance Password LDAP
« Reply #1 on: June 16, 2009, 04:35:55 AM »
It very ex. please let me fro ver.0.3 please

Offline lacri

  • Full Member
  • ***
  • Posts: 179
    • http://www.php-lexikon.de
Chance Password LDAP
« Reply #2 on: June 16, 2009, 05:31:18 AM »
i think my old patch works with RoundCube v0.3 ...

i will make an api based plugin after vacation

see also http://www.roundcubeforum.net/old-style-plug-ins/4908-request-plugin-change-passwd-ldap.html#post19652

Offline sysadm

  • Jr. Member
  • **
  • Posts: 16
Chance Password LDAP
« Reply #3 on: June 16, 2009, 11:30:08 AM »
thaink lacri

I'm try again.

:D

Offline sysadm

  • Jr. Member
  • **
  • Posts: 16
Chance Password LDAP
« Reply #4 on: June 16, 2009, 11:30:11 PM »
Hi lacri

Your PlugIn it Ok.

But after change passwd to new success, Can not sent email
If change to old passwd Can sent email

any wrong please let me know.

Regard,
Keng

Offline lacri

  • Full Member
  • ***
  • Posts: 179
    • http://www.php-lexikon.de
Chance Password LDAP
« Reply #5 on: June 17, 2009, 03:57:20 AM »
i think thats your smtp not use the LDAP Backend by sending mail and pre authentification ?

Check this by login ...
login with old datas then change the pass and logout

then try to login with new pass when this works the ldap change passwd is ok

after this try to send mail, when this works you must after changepwd a auto logout to reauthenticate the user.

i check already if the new pass after success change is set correct.

Offline sysadm

  • Jr. Member
  • **
  • Posts: 16
Chance Password LDAP
« Reply #6 on: June 17, 2009, 09:36:18 PM »
Thank lacri and Your ex.

I know problem already . Because of, I'm config sasl postfix is wrong.


Man in the asia.
Keng

Offline fedesh03

  • Newbie
  • *
  • Posts: 1
A couple of issues
« Reply #7 on: June 19, 2009, 02:24:10 PM »
Hi Lacri. First of all, thanks por your plugin. Is just what I'm looking for.

I've got 2 problems. The first one is that the plugin doesn't work with Google Chrome. (But it doesn't matters at all)

The second is that I'm having an error message when I click "Change", and it says "passwordfailed".

My LDAP is Netscape Communicator (Windows NT4).
If I do a ldapsearch from a shell I can see the results in standard output only if I add the -x option (simple authentication).

Code: [Select]
ldapsearch -h my.ldap.server -b 'o=mybasedn,c=AR' [B]-x [/B]

Without the -x, I obtain the following error:

Code: [Select]
SASL/EXTERNAL authentication started
ldap_sasl_interactive_bind_s: Unknown authentication method (-6)


Any help will be appreciated.

Federico