Re: Unable to get _passwd_hook_username to work
Jan Schneider <[email protected]>
| Newsgroups | gmane.comp.horde.sork |
|---|---|
| Message-ID | <[email protected]> |
Zitat von Mike <[email protected]>: > > > 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 [email protected] 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? You missed the probably most important information: how does you hook code look like? 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]