<div dir="ltr">After more research I suppose I&#39;ll have to just try and use PAM instead of LDAP - that way both PGPool and PostgreSQL can use the same interface.<div><br></div><div>I&#39;m still interested in why this is the case though?</div><div><br></div><div>Cheers,</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div style="color:#b8276a;font:bold 14px Arial,Helvetica,sans-serif">
        <br>
        <span style="color:#323b62">James Sewell,</span><br>
        <span style="color:#a9a9a9"><span style="font:12px Arial,Helvetica,sans-serif">PostgreSQL Team Lead / Solutions Architect </span></span><br>
        <span style="color:#a9a9a9">______________________________________</span><br>
         </div>
<img alt="" src="http://www.lisasoft.com/sites/lisasoft/files/u1/logo1.jpg" style="margin:0px;width:153px;height:50px"><br>
<div style="font:normal 12px/20px Arial,Helvetica,sans-serif;color:#404040;margin:0">
        <span style="color:#a9a9a9">Level 2, 50 Queen St, Melbourne VIC 3000</span><br>
        <br>
        <strong>P </strong><span style="color:#a9a9a9"><span style="font-family:Arial,Verdana,sans-serif">(+61) 3 8370 8000</span></span><span style="color:rgb(169,169,169)"> </span><strong> </strong><span style="color:rgb(50,59,98)"><span style="width:15px;display:inline-block"><strong>W</strong></span></span> <a style="color:rgb(64,64,64);margin:2px 0px;text-decoration:none"><span style="color:#a9a9a9">www.lisasoft.com</span></a>  <span style="color:rgb(50,59,98)"><span style="width:15px;display:inline-block"><strong>F </strong></span></span><span style="color:#a9a9a9"><span style="font-family:Arial,Verdana,sans-serif">(+61) 3 8370 8099</span></span></div>
<div style="padding-top:8px">
         </div></div></div>
<br><div class="gmail_quote">On Thu, Sep 3, 2015 at 12:27 PM, James Sewell <span dir="ltr">&lt;<a href="mailto:james.sewell@lisasoft.com" target="_blank">james.sewell@lisasoft.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">So looking at the code it seems like this might not be possible, the criteria for throwing this error is:<div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div><font face="monospace, monospace">if (frontend-&gt;auth_method != uaMD5 </font></div></div><div><div><font face="monospace, monospace">  &amp;&amp; !RAW_MODE </font></div></div><div><div><font face="monospace, monospace">  &amp;&amp; NUM_BACKENDS &gt; 1)</font></div></div></blockquote><div><div><span style="white-space:pre-wrap"><br></span></div><div><span style="white-space:pre-wrap">But this confuses me - why couldn&#39;t direct auth be used in master/slave mode with no connection pooling?</span></div><div><span style="white-space:pre-wrap"><br></span></div><div><span style="white-space:pre-wrap">Cheers,                </span></div></div></div><div class="gmail_extra"><span class=""><br clear="all"><div><div><div style="color:#b8276a;font:bold 14px Arial,Helvetica,sans-serif">
        <br>
        <span style="color:#323b62">James Sewell,</span><br>
        <span style="color:#a9a9a9"><span style="font:12px Arial,Helvetica,sans-serif">PostgreSQL Team Lead / Solutions Architect </span></span><br>
        <span style="color:#a9a9a9">______________________________________</span><br>
         </div>
<img alt="" src="http://www.lisasoft.com/sites/lisasoft/files/u1/logo1.jpg" style="margin:0px;width:153px;min-height:50px"><br>
<div style="font:normal 12px/20px Arial,Helvetica,sans-serif;color:#404040;margin:0">
        <span style="color:#a9a9a9">Level 2, 50 Queen St, Melbourne VIC 3000</span><br>
        <br>
        <strong>P </strong><span style="color:#a9a9a9"><span style="font-family:Arial,Verdana,sans-serif"><a href="tel:%28%2B61%29%203%208370%208000" value="+61383708000" target="_blank">(+61) 3 8370 8000</a></span></span><span style="color:rgb(169,169,169)"> </span><strong> </strong><span style="color:rgb(50,59,98)"><span style="width:15px;display:inline-block"><strong>W</strong></span></span> <a style="color:rgb(64,64,64);margin:2px 0px;text-decoration:none"><span style="color:#a9a9a9">www.lisasoft.com</span></a>  <span style="color:rgb(50,59,98)"><span style="width:15px;display:inline-block"><strong>F </strong></span></span><span style="color:#a9a9a9"><span style="font-family:Arial,Verdana,sans-serif"><a href="tel:%28%2B61%29%203%208370%208099" value="+61383708099" target="_blank">(+61) 3 8370 8099</a></span></span></div>
<div style="padding-top:8px">
         </div></div></div>
<br></span><div><div class="h5"><div class="gmail_quote">On Thu, Sep 3, 2015 at 11:56 AM, James Sewell <span dir="ltr">&lt;<a href="mailto:james.sewell@lisasoft.com" target="_blank">james.sewell@lisasoft.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello All,<div><br></div><div>Is this possible?</div><div><br></div><div>I would like:</div><div><ol><li>Authentication to be pushed back to Postgres (I use LDAP, so I can&#39;t use pool_passwd)</li><li>SQL Load balancing across two Postgres servers</li></ol><div>I&#39;m happy to lose connection pooling as a consequence of this - but I still can&#39;t seem to get this to work at all.</div></div><div><br></div><div>As soon as I enable the second node I get:</div><div><br></div><div><div>2015-09-03 11:47:31 ERROR: pid 8147: pool_get_passwd: username is NULL</div><div>psql.bin: FATAL:  password authentication failed for user &quot;james&quot;</div></div><div><br></div><div>I have:</div><div><br></div><div><font face="monospace, monospace">connection_cache = false<br></font></div><div><div><font face="monospace, monospace">load_balance_mode = true</font></div></div><div><div><font face="monospace, monospace">master_slave_mode = false  # I have tried this with true and false</font></div><div><font face="monospace, monospace">master_slave_sub_mode = &#39;stream&#39;</font></div></div><div><font face="monospace, monospace"><br></font></div><div><div><font face="monospace, monospace">backend_hostname0 = &#39;192.168.3.190&#39;</font></div><div><font face="monospace, monospace">backend_port0 = 5432</font></div><div><font face="monospace, monospace">backend_weight0 = 1</font></div><div><font face="monospace, monospace">backend_data_directory0 = &#39;/pg/9.4/data/pg_data&#39;</font></div><div><font face="monospace, monospace">backend_flag0 = ALLOW_TO_FAILOVER</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">backend_hostname1 = &#39;192.168.3.191&#39;</font></div><div><font face="monospace, monospace">backend_port1 = 5432</font></div><div><font face="monospace, monospace">backend_weight1 = 1</font></div><div><font face="monospace, monospace">backend_data_directory1 = &#39;/pg/9.4/data/pg_data&#39;</font></div><div><font face="monospace, monospace">backend_flag1 = ALLOW_TO_FAILOVER</font></div></div><div><br></div><div><br></div><div><br></div><div>Cheers,</div><div><br></div><div><div><div><div style="color:rgb(184,39,106);font-weight:bold;font-style:normal;font-variant:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Arial,Helvetica,sans-serif">
        <span style="color:rgb(50,59,98)">James Sewell,</span><br>
        <span style="color:rgb(169,169,169)"><span style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Arial,Helvetica,sans-serif">PostgreSQL Team Lead / Solutions Architect </span></span><br>
        <span style="color:rgb(169,169,169)">______________________________________</span><br>
         </div>
<img alt="" src="http://www.lisasoft.com/sites/lisasoft/files/u1/logo1.jpg" style="margin:0px;width:153px;min-height:50px"><br>
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:20px;font-family:Arial,Helvetica,sans-serif;color:rgb(64,64,64);margin:0px">
        <span style="color:rgb(169,169,169)">Level 2, 50 Queen St, Melbourne VIC 3000</span><br>
        <br>
        <strong>P </strong><span style="color:rgb(169,169,169)"><span style="font-family:Arial,Verdana,sans-serif"><a href="tel:%28%2B61%29%203%208370%208000" value="+61383708000" target="_blank">(+61) 3 8370 8000</a></span></span><span style="color:rgb(169,169,169)"> </span><strong> </strong><span style="color:rgb(50,59,98)"><span style="width:15px;display:inline-block"><strong>W</strong></span></span> <a style="color:rgb(64,64,64);margin:2px 0px;text-decoration:none"><span style="color:rgb(169,169,169)">www.lisasoft.com</span></a>  <span style="color:rgb(50,59,98)"><span style="width:15px;display:inline-block"><strong>F </strong></span></span><span style="color:rgb(169,169,169)"><span style="font-family:Arial,Verdana,sans-serif"><a href="tel:%28%2B61%29%203%208370%208099" value="+61383708099" target="_blank">(+61) 3 8370 8099</a></span></span></div>
<div style="padding-top:8px">
         </div></div></div>
</div></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div>

<br>
<p><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14.545454025268555px;background-color:rgb(255,255,255)"><hr><font size="1" color="Gray" face="Arial">The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.</font></div></p>