Roundcube Community Forum

 

Change LDAP Password for RoundCube 0.2 stable

Started by lacri, February 18, 2009, 06:26:49 AM

Previous topic - Next topic

lacri

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 ;)

sysadm

It very ex. please let me fro ver.0.3 please

lacri

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

sysadm

thaink lacri

I'm try again.

:D

sysadm

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

lacri

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.

sysadm

Thank lacri and Your ex.

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


Man in the asia.
Keng

fedesh03

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).

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

Without the -x, I obtain the following error:

SASL/EXTERNAL authentication started
ldap_sasl_interactive_bind_s: Unknown authentication method (-6)


Any help will be appreciated.

Federico