[sork] passwd ignores hostspec parameter in backends.php

Joris Benschop joris at ideeel.nl
Mon Apr 24 10:05:54 PDT 2006


Quoting Chuck Hagenbuch <chuck at horde.org>:

> 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.



More information about the sork mailing list