AW: [Web-cyradm] User's passwords

Matt Baker m at wheres.co.uk
Sun Oct 1 21:25:04 CEST 2006


the 'password' horde module can do it if you are using imp for web mail:

put this in horde/passwd/backends.php

$backends['sql'] = array (
         'name' => 'Cyrus Authentication (pop, imap, smtp)',
         'preferred' => '',
         'password policy' => array(
                 'minLength' => 8,
                 'maxLength' => 12,
                 'maxSpace' => 0,
                 'minUpper' => 1,
                 'minLower' => 0,
                 'minNumeric' => 1
         ),
         'driver' => 'sql',
         'params' => array(
                 'phptype'    => 'mysql',
                 'hostspec'   => 'localhost',
                 'protocol'   => 'tcp',
                 'username'   => 'mail',
                 'password'   => '**********',
                 'encryption' => 'crypt',
                 'database'   => 'mail',
                 'table'      => 'accountuser',
                 'user_col'   => 'username',
                 'pass_col'   => 'password'
         )
);

Matt

Marcel Hartmann wrote:
>  > How is everyone allowing normal, mail-only users, to change their
>  > passwords?
> 
> It is very simple, to change the Password in the MySQL Database.
> One little Script is enough to change it, only ask for the old Password 
> to verify the Username and Password, and then took the New Password two 
> times from the User and check them. If there where the same, you can do 
> a UPDATE on the users Table in the web-cyradm Database.
> 
> UPDATE users SET password=ENCRYPT('<new password>') WHERE 
> username=<accountname>;
> 
> If you want a Script like this, let me know, then i'll post it here on 
> the list. And a Update of the Web-cyradm Files for having a Change 
> Password Button is helpful too.
> 
> Regards,
> 
> Marcel
> 
> --
> Marcel Hartmann
> 
> Bokeler Landstraße 24a, 26215 Wiefelstede / Bokel
> Tel 044 02 - 69 55 800, Fax 044 02 - 69 55 801
> mail at marcel-hartmann.com, www.marcel-hartmann.com
> ---
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> This mailing list is hosted and supported
> by bit-heads GmbH | http://www.bit-heads.ch
> 
> _______________________________________________
> Web-cyradm mailing list
> Web-cyradm at web-cyradm.org
> http://www.web-cyradm.org/mailman/listinfo/web-cyradm


More information about the Web-cyradm mailing list