Roundcube Community Forum

 

Force Password Plugin

Started by wojtekson16, December 10, 2011, 09:22:06 AM

Previous topic - Next topic

wojtekson16

Hey
I' ve got the problem with this pluggin, i got instruction:

-----------------------------------------------------------------------
    Force Password Plugin for Roundcube
 -----------------------------------------------------------------------

 Plugin that forces the user to change his password.
 This plugin was meant to work with postfix.

 -----------------------------------------------------------------------

 Created by Marcelo Salgado <[email protected]>

 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License version 2
 as published by the Free Software Foundation.

 -----------------------------------------------------------------------

 To install:
    1 - edit roundcube/config/main.inc.php
    edit/add the following config:

    $rcmail_config['plugins']
    add 'force_pass' to the array. if this array does not exist, add this:
    $rcmail_config['plugins'] = array('force_pass');

    2 - copy the directory force_pass to roundcube/plugins/

    3 - configure the plugin, edit the file
    roundcube/plugins/force_pass/config.inc.php

    edit this line:
    $rcmail_config['password_db_dsn']

    and this line:
    $rcmail_config['dayslimit']

    4 - edit the file roundcube/plugins/force_pass/savepass.php
    set the variable $config.

    5 - edit your postfix database, you will need a new column in the Mailbox
    table:
ALTER TABLE mailbox ADD pass_modifed DATETIME NOT NULL AFTER second_last_password;

    Note: You need to install the pf_password plugin with support to the
    pass_modified column.

i done it to 4 point now i want to do point nummer 5 but i havent got in database table "Mailbox", note show that i have to install pf_password plugin with support to the
    pass_modified column, i tried to find it but i didn't find can anyone give me advice wha now i should do ?