Re: passwd ignores hostspec parameter in backends.php
Joris Benschop <[email protected]>
| Newsgroups | gmane.comp.horde.sork |
|---|---|
| Message-ID | <[email protected]> |
Quoting Chuck Hagenbuch <[email protected]>: > Look for these lines in your version of the passwd sql driver: > > /* Use defaults from Horde, but allow overriding in backends.php. */ > $this->_params = array_merge(Horde::getDriverConfig('', 'sql'), $params); > > Before that line, put: > echo '<pre>'; > var_dump($params); > > After that line, put: > var_dump($this->_params); > echo '</pre>'; > > See what that shows. Shown below: I think I found the problem: it is reading the hostspec parameter, but it connects via the socket instead (which is the horde pref). Is there a way to tell it not to use the socket for this particular connection? array(10) { ["phptype"]=> string(5) "mysql" ["hostspec"]=> string(16) "mysql.ideeel.net" ["username"]=> string(11) "PASSWD_ONLY" ["password"]=> string(11) "PASSWD_ONLY" ["encryption"]=> string(9) "plaintext" ["database"]=> string(6) "LOLOLO" ["table"]=> string(5) "users" ["user_col"]=> string(8) "user_uid" ["pass_col"]=> string(9) "user_pass" ["show_encryption"]=> bool(false) } array(14) { ["persistent"]=> bool(false) ["hostspec"]=> string(16) "mysql.ideeel.net" ["username"]=> string(11) "PASSWD_ONLY" ["password"]=> string(11) "PASSWD_ONLY" ["socket"]=> string(25) "/var/lib/mysql/mysql.sock" ["protocol"]=> string(4) "unix" ["database"]=> string(6) "LOLOLO" ["charset"]=> string(10) "iso-8859-1" ["phptype"]=> string(5) "mysql" ["encryption"]=> string(9) "plaintext" ["table"]=> string(5) "users" ["user_col"]=> string(8) "user_uid" ["pass_col"]=> string(9) "user_pass" ["show_encryption"]=> bool(false) } ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. -- Sork mailing list - Join the hunt: http://horde.org/bounties/#sork Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: [email protected]