[dev] Passwd 4 in git
Rick Romero
rick at havokmon.com
Thu Jul 7 13:33:08 UTC 2011
Quoting Ralf Lang <lang at b1-systems.de>:
> Am Mittwoch, 6. Juli 2011, 23:44:24 schrieb Rick Romero:
>> Hey guys,
>>
>> Is the SQL driver for passwd considered 'done'? I'm trying to use the
>> Vpopmail driver, but it's not working correctly (and I see it says
>> it's not presumed finished') - and it should be fairly close the to
>> Sql driver, so I'd like to use that as a framework if possible..
>>
>> Rick
>
> Hi rick, can you please give more details on how the vpopmail driver reacts,
> which errors are thrown, etc?
>
> I'd have a look.
>
> The SQL driver is working as far as I tested it.
Hi Ralf,
Well, Upon password change I was getting "Password not properly
configured" So I changed the error message in index.php (line 191) to:
catch (Passwd_Exception $e) {
$notification->push(_("Password module is not properly
configured (index)" . $daemon . ":" . $e),
'horde.error');
break;
So now I get:
Password module is not properly configured (index):exception
'Passwd_Exception' with message 'Missing required Horde_Db_Adapter
object' in
/usr/local/www/sub/beta/data/horde_git/horde/passwd/lib/Driver/Vpopmail.php:54
Stack trace: #0
/usr/local/www/sub/beta/data/horde_git/horde/passwd/lib/Factory/Driver.php(96): Passwd_Driver_Vpopmail->__construct(Array) #1 /usr/local/www/sub/beta/data/horde_git/horde/passwd/index.php(189): Passwd_Factory_Driver->create('vpopmail') #2
{main}
my backends.local.php:
<?php
$backends['vpopmail'] = array (
'disabled' => false,
'name' => 'Vpopmail Server',
'preferred' => '1',
'password policy' => array(
'minLength' => 6,
'minNumeric' => 1,
),
'driver' => 'Vpopmail',
'params' => array(
'phptype' => 'mysql',
'hostspec' => 'localhost',
'username' => 'vpopmail',
'password' => 'password',
'encryption' => 'crypt',
'database' => 'vpopmail',
'table' => 'vpopmail',
'name' => 'pw_name',
'domain' => 'pw_domain',
'passwd' => 'pw_passwd',
'clear_passwd' => 'pw_clear_passwd',
'use_clear_passwd' => true,
'show_encryption' => true
)
);
$backends['hordesql'] = array (
'disabled' => true,
'name' => 'Horde Sql Authentication',
'preferred' => '',
'password policy' => array(
'minLength' => 6,
'minNumeric' => 1,
),
'driver' => 'Sql',
'params' => array_merge($GLOBALS['conf']['sql'],
array('table' => 'horde_users',
'user_col' => 'user_uid',
'pass_col' => 'user_pass',
'show_encryption' => false,
'encryption' =>
$GLOBALS['conf']['auth']['params']['encryption']
)),
);
?>
I also enabled the default_username hook (I think, I did - I just
uncommented it)
My usernames are full email addresses.
hooks.php:
public function default_username($userid)
{
// // Example: Set the username the passwd module sees when resetting
// // passwords based on userid and realm. The default is to take a
// // username of user at domain.tld and change it to user. If we want to
// // leave it untouched, enable the hook and use this function.
return $userid;
}
Hope that helps - Thanks!
Rick
More information about the dev
mailing list