[sork] Unable to get _passwd_hook_username to work

Mike mike at soroki.com
Fri May 9 18:10:49 UTC 2008



   Hi All:

   I've enabled passwd H3 (3.0.1) application in Horde and was trying  
to get '_passwd_hook_username' hook to append @domain.com to username  
that's required for Vpopmail/SQL backend.

   After numerios troubleshooting attemps with Password App, I was  
able to nail down the configuration issue under backends.php.

   For people that are still trying to get this module to work, here  
is what I had to do:

   1.  Add a new column to vpopmail database - 'pw_domain'
2.  Populate with appropriate domains
3.  Make appropriate changes to backends.php as listed in the example below:

   $backends['vpopmail'] = array (
    'name' => 'VpopMail Server',
    'preferred' => 'host ip',
    'password policy' => array(
        'minLength' => 3,
        'maxLength' => 8,
        'maxSpace' => 0,
        'minUpper' => 0,
        'minLower' => 0,
        'minNumeric' => 0
    ),
    'driver' => 'vpopmail',
    'params' => array(
        'phptype'    => 'mysql',
        'hostspec'   => 'host ip',
        'username'   => 'mysql username',
        'password'   => 'enter mysql passwd',
        'encryption' => 'crypt-md5',  // Default encryption scheme for  
Vpopmail
        'database'   => 'vpopmail',
        'table'      => 'domain_com',
        'name'       => 'pw_name',
        'passwd'     =>  'pw_passwd',
        //'clear_passwd' => 'pw_clear_passwd',
        //'use_clear_passwd' => 'true',
        'socket'     => '/var/tmp/mysql.sock',
        'protocol'   => 'tcp',
        'domain'     => 'pw_domain'
        //'show_encryption' => 'false'
    )
);

   Disabling the 3 lines above and passing username at domain.com as  
username made it work for me:

   //'clear_passwd' => 'pw_clear_passwd',
//'use_clear_passwd' => 'true',
//'show_encryption' => 'false'

Now, I am trying to automate the @domain.com information for the user  
so was looking at enabling '_passwd_hook_username' &  
$conf['hooks']['username'] = true;

   Both of these things are enabled yet when I login with 'username'  
only to horde, the hook is not appending the set domain settings.

   Could that be a bug or a configuration issue somewhere else?

   Application                Status
Address Book (turba) H3 (2.1.7)        Application is ready.
Calendar (kronolith) H3 (2.1.7)        Application is ready.
File Manager (gollem) H3 (1.0.3)    Application is ready.
Filters (ingo) H3 (1.1.5)    Application is ready.
Horde (horde) 3.1.7         Application is ready.
Mail (imp) H3 (4.1.6)         Application is ready.
Notes (mnemo) H3 (2.1.2)    Application is ready.
Password (passwd) H3 (3.0.1)    Application is ready.
Tasks (nag) H3 (2.1.4)        Application is ready.

   Thanks,
Michael



More information about the sork mailing list