<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 14pt; color: #000000'>What says pgpool log file?<br><br>Regards.<br><br>Would you try to connect to pg server from pgpool machine, but only from pgpool machine for testing is the pg service could accept connections from this machine??<br><br>Regards.<br><br><hr id="zwchr"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><span style="font-family:Verdana"><span style="font-size:12px"><div><p style="margin:0px; padding:0px; margin:0px; padding:0px;"><span style="font-family:Verdana"><span style="font-size:12px">Hi,<br><br>I'm looking for some help with MD5 authentification in pgpool.<br><br>1st :<br><br>pgpool-II version 3.2.2 (namameboshi)<br>PG 9.2.3<br><br>* On PG server : I create a toto role with encrypted password, and add this line in pg_hba.conf :<br>host&nbsp;&nbsp;&nbsp; mydb&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; toto&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; my_pgpool_ip/32&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; md5<br><br>Restarting PG.<br><br><br>* On pgpool server :<br><br>pgpool.conf :<br><br>enable_pool_hba = on&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>pool_passwd = 'pool_passwd'<br><br>Create toto md5 password in pool_passwd :<br><br>toto:md5cb926329843e9a8f3eb15e0a2a5c9851<br><br>Checking same thing in PG in pg_authid :<br><br>| toto | md5cb926329843e9a8f3eb15e0a2a5c9851 |<br><br>pool_hba.conf :<br><br>add this line : local mydb toto md5<br><br>2nd :<br><br>Starting pgpool.<br><br>Using perl script <a target="_blank" href="http://dbi.pl&amp;lang=en">dbi.pl</a> to test on pgpool server :<br><br>use DBI;<br>$DB_name&nbsp;&nbsp;&nbsp; = 'mydb';<br>$DB_user&nbsp;&nbsp;&nbsp; = 'toto';<br>$DB_pwd&nbsp;&nbsp;&nbsp;&nbsp; = 'mypassword';<br>$dbh = DBI-&gt;connect("dbi:Pg:dbname=$DB_name","$DB_user","$DB_pwd");<br>if ( !defined $dbh ) { die "Cannot connect to database!\n"; }<br>$sth&nbsp; = $dbh-&gt;prepare("SELECT * FROM pg_user");<br>$sth-&gt;execute();<br>while ( ($id,$name) = $sth-&gt;fetchrow_array() ) {&nbsp; print "$id\t\t $name \n";<br>}<br>$sth-&gt;finish();<br>$dbh-&gt;disconnect();<br><br><br>1st launch : working<br><br>2nd launch : changing md5 to reject in pool_hba.conf (restarting pgpool) : DBI connect('dbname=mydb','toto',...) failed: ERROR:&nbsp; no pool_hba.conf entry for host "[local]", user "toto", database "mydb" at <a target="_blank" href="http://dbi.pl&amp;lang=en">dbi.pl</a> line 5<br><br>3rd launch : back to md5 in pool_hba.conf and changing toto by tito in pool_passwd (restarting pgpool) : DBI connect('dbname=mydb','toto',...) failed: ERROR:&nbsp; "MD5" authentication with pgpool failed for user "toto" at <a target="_blank" href="http://dbi.pl&amp;lang=en">dbi.pl</a> line 5<br><br>4th launch : back to toto vs tito in pool_passwd&nbsp; and deleted everything after md5 (now pool_passwd is like this 'toto:md5') + restarting pgpool : working.<br><br><br>I miss something i'm sure :)&nbsp; but why it's working in&nbsp; 4th try ? It's seems only PG server do it's authentification job's.</span></span></p></div></span></span>
<br>_______________________________________________<br>pgpool-general mailing list<br>pgpool-general@pgpool.net<br>http://www.pgpool.net/mailman/listinfo/pgpool-general<br></blockquote><br></div></body></html>