Re: Passwd didn't working

Jan Schneider <[email protected]>
Newsgroups gmane.comp.horde.sork
Message-ID <[email protected]>
Zitat von Andrea Durante <[email protected]>:

> 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@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/
-- 
Sork mailing list - Join the hunt: http://horde.org/bounties/#sork
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.