<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 mydb toto my_pgpool_ip/32 md5<br /><br />Restarting PG.<br /><br /><br />* On pgpool server :<br /><br />pgpool.conf :<br /><br />enable_pool_hba = on <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&lang=en">dbi.pl</a> to test on pgpool server :<br /><br />use DBI;<br />$DB_name = 'mydb';<br />$DB_user = 'toto';<br />$DB_pwd = 'mypassword';<br />$dbh = DBI->connect("dbi:Pg:dbname=$DB_name","$DB_user","$DB_pwd");<br />if ( !defined $dbh ) { die "Cannot connect to database!\n"; }<br />$sth = $dbh->prepare("SELECT * FROM pg_user");<br />$sth->execute();<br />while ( ($id,$name) = $sth->fetchrow_array() ) { print "$id\t\t $name \n";<br />}<br />$sth->finish();<br />$dbh->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: no pool_hba.conf entry for host "[local]", user "toto", database "mydb" at <a target="_blank" href="http://dbi.pl&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: "MD5" authentication with pgpool failed for user "toto" at <a target="_blank" href="http://dbi.pl&lang=en">dbi.pl</a> line 5<br /><br />4th launch : back to toto vs tito in pool_passwd 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 :) but why it's working in 4th try ? It's seems only PG server do it's authentification job's.</span></span></p></div></span></span>