[sork] Passwd didn't working

Jan Schneider jan at horde.org
Wed Aug 2 00:09:06 PDT 2006


Zitat von Andrea Durante <andrea.durante at metroitaly.it>:

> Hi,
> I've configured an Horde+IMP+Sork but the passwd didn't working. The
> error that I receive when click on Change Password was
> "Failure in changing password on Vpopmail Server: Wrong Password"
> No php error there.
> The log of mysql server:
>
> 36 Connect     vpopmail at localhost on vpopmail
> 36 Query       select pw_name, pw_passwd, pw_uid, pw_gid, pw_gecos,
> pw_dir, pw_shell from vpopmail where pw_name = "andur" and pw_domain =
> "fpsroma.cisl.it"
>
> My backend.php:
>
> $backends['vpopmail'] = array (
>     'name' => 'Vpopmail Server',
>     'preferred' => '',
>     'password policy' => array(
>         'minLength' => 3,
>         'maxLength' => 10,
>         'maxSpace' => 0,
>         'minUpper' => 1,
>         'minLower' => 0,
>         'minNumeric' => 1
>     ),
>     'driver' => 'vpopmail',
>     'params' => array(
>         'phptype'    => 'mysql',
>         'hostspec'   => 'localhost',
>         'username'   => 'vpopmail',
>         'password'   => '[__NOTSHOW__]',
>         'encryption' => 'crypt',
>         'database'   => 'vpopmail',
>         'table'      => 'vpopmail',
>         'name'    => 'pw_name',
>         'domain'  => 'pw_domain',
>         'passwd' =>  'pw_passwd',
>         //'clear_passwd' => 'pw_clear_passwd',
>         'use_clear_passwd' => false,
>         'show_encryption' => true
>     )
> );

> I've tryed to check the php function to use crypt("actual pass"); but
> everytime that i do that the result was different!!! o_O
> How passwd will check the password if ther hash was different as the
> original but the password was the same??

Because it uses a salt. How do your passwords look like that are  
stored in the db?

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/


More information about the sork mailing list