1

Topic: Force user to change password

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Debian 8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Openldap
- Web server (Apache or Nginx):Apache
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hin Zhang, hi all

I followed this tutorial to force users to change their password after a certain amount of time: https://docs.iredmail.org/force.user.to … sword.html

I installed the roundcube plugins : https://bitbucket.org/wainlake/force_password_change
and i follow the steps.
But this plugins don't work for me and I  have a php warning on mail.log :
roundcube: PHP Warning:  ldap_search(): Search: No such object in /opt/www/roundcubemail-1.3.0/plugins/force_password_change/drivers/ldap_simple.php on line 45
Mar  6 05:38:38 mail1 roundcube: PHP Warning:  ldap_get_entries() expects parameter 2 to be resource, boolean given in /opt/www/roundcubemail-1.3.0/plugins/force_password_change/drivers/ldap_simple.php on line 46

Please help .
Thank's forn all

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Force user to change password

Please contact the Roundcube plugin author to fix it.
https://bitbucket.org/wainlake/force_password_change

3

Re: Force user to change password

Can u please disable the plugin force_password_change first, then try to change your password via RC. The force_password_change plugin rely on the password plugin what come from roundcube webmail.

lesly wrote:

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Debian 8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Openldap
- Web server (Apache or Nginx):Apache
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hin Zhang, hi all

I followed this tutorial to force users to change their password after a certain amount of time: https://docs.iredmail.org/force.user.to … sword.html

I installed the roundcube plugins : https://bitbucket.org/wainlake/force_password_change
and i follow the steps.
But this plugins don't work for me and I  have a php warning on mail.log :
roundcube: PHP Warning:  ldap_search(): Search: No such object in /opt/www/roundcubemail-1.3.0/plugins/force_password_change/drivers/ldap_simple.php on line 45
Mar  6 05:38:38 mail1 roundcube: PHP Warning:  ldap_get_entries() expects parameter 2 to be resource, boolean given in /opt/www/roundcubemail-1.3.0/plugins/force_password_change/drivers/ldap_simple.php on line 46

Please help .
Thank's forn all

4

Re: Force user to change password

Hi,
The password plugins works fine but not the force change password.
Any idea plz
Thank's

michael wrote:

Can u please disable the plugin force_password_change first, then try to change your password via RC. The force_password_change plugin rely on the password plugin what come from roundcube webmail.

lesly wrote:

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Debian 8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Openldap
- Web server (Apache or Nginx):Apache
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hin Zhang, hi all

I followed this tutorial to force users to change their password after a certain amount of time: https://docs.iredmail.org/force.user.to … sword.html

I installed the roundcube plugins : https://bitbucket.org/wainlake/force_password_change
and i follow the steps.
But this plugins don't work for me and I  have a php warning on mail.log :
roundcube: PHP Warning:  ldap_search(): Search: No such object in /opt/www/roundcubemail-1.3.0/plugins/force_password_change/drivers/ldap_simple.php on line 45
Mar  6 05:38:38 mail1 roundcube: PHP Warning:  ldap_get_entries() expects parameter 2 to be resource, boolean given in /opt/www/roundcubemail-1.3.0/plugins/force_password_change/drivers/ldap_simple.php on line 46

Please help .
Thank's forn all

5

Re: Force user to change password

Hi,Lesly
    Please get the latest version file via this url (https://bitbucket.org/wainlake/force_pa … ew-default) and put it into the folder "plugins/force_password_change/drivers/" to replace ldap_simple.php. After then you can retry and check the error from mail log. Please send the error msg to mailbox michael#wainlake.com(Nobody like the spam :-(), thanks.

lesly wrote:

Hi,
The password plugins works fine but not the force change password.
Any idea plz
Thank's

michael wrote:

Can u please disable the plugin force_password_change first, then try to change your password via RC. The force_password_change plugin rely on the password plugin what come from roundcube webmail.

lesly wrote:

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Debian 8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Openldap
- Web server (Apache or Nginx):Apache
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hin Zhang, hi all

I followed this tutorial to force users to change their password after a certain amount of time: https://docs.iredmail.org/force.user.to … sword.html

I installed the roundcube plugins : https://bitbucket.org/wainlake/force_password_change
and i follow the steps.
But this plugins don't work for me and I  have a php warning on mail.log :
roundcube: PHP Warning:  ldap_search(): Search: No such object in /opt/www/roundcubemail-1.3.0/plugins/force_password_change/drivers/ldap_simple.php on line 45
Mar  6 05:38:38 mail1 roundcube: PHP Warning:  ldap_get_entries() expects parameter 2 to be resource, boolean given in /opt/www/roundcubemail-1.3.0/plugins/force_password_change/drivers/ldap_simple.php on line 46

Please help .
Thank's forn all

6

Re: Force user to change password

Hi  michael,
i have dowload the last version of ldap_simple.php still have an error:
PHP Warning:  ldap_search(): Search: No such object in /opt/www/roundcubemail-1.3.0/plugins/force_password_change/drivers/ldap_simple.php on line 45

Thank's for help

michael wrote:

Hi,Lesly
    Please get the latest version file via this url (https://bitbucket.org/wainlake/force_pa … ew-default) and put it into the folder "plugins/force_password_change/drivers/" to replace ldap_simple.php. After then you can retry and check the error from mail log. Please send the error msg to mailbox michael#wainlake.com(Nobody like the spam :-(), thanks.

lesly wrote:

Hi,
The password plugins works fine but not the force change password.
Any idea plz
Thank's

michael wrote:

Can u please disable the plugin force_password_change first, then try to change your password via RC. The force_password_change plugin rely on the password plugin what come from roundcube webmail.

7

Re: Force user to change password

Hi Zhang,
Now i have  try the iredmail plugins to force change password, but sadly i have this error in iredap.log:
INFO Plugin ldap_force_change_password_in_days (/opt/iRedAPD-2.1/libs/../plugins/ldap_force_change_password_in_days.py) does not exist.
thank's a lot for helping me


ZhangHuangbin wrote:

Please contact the Roundcube plugin author to fix it.
https://bitbucket.org/wainlake/force_password_change

8

Re: Force user to change password

lesly wrote:

INFO Plugin ldap_force_change_password_in_days (/opt/iRedAPD-2.1/libs/../plugins/ldap_force_change_password_in_days.py) does not exist.

Do a quick check and you will find the plugin name is now "ldap_force_change_password".