<div dir="ltr"><div>Awesome, I just tried it out and got pgpool working with pam_ldap.  <br><br></div>Thanks!<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 31, 2017 at 10:29 AM, Muhammad Usama <span dir="ltr">&lt;<a href="mailto:m.usama@gmail.com" target="_blank">m.usama@gmail.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">Hi<div><br></div><div>It was an issue in the Pgpool-II code that was causing this problem. I have pushed the fix for that.</div><div><br></div><div><a href="https://git.postgresql.org/gitweb/?p=pgpool2.git;a=commitdiff;h=c4f816b53b22956c60cf1a78f87d266675c15d43" target="_blank">https://git.postgresql.org/<wbr>gitweb/?p=pgpool2.git;a=<wbr>commitdiff;h=<wbr>c4f816b53b22956c60cf1a78f87d26<wbr>6675c15d43</a><br></div><div><br></div><div><br></div><div>Thanks</div><div>Best Regards</div><div>Muhammad Usama</div><div><br></div><div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, Mar 29, 2017 at 2:56 AM, Danny Im <span dir="ltr">&lt;<a href="mailto:imxxx021@umn.edu" target="_blank">imxxx021@umn.edu</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div><div><div><div>Hello,<br><br></div>I&#39;m trying to configure pgpool with ldap authentication via pam on a centos 7 system.  I&#39;m also using nss-pam-ldapd-0.8.13-8.el7.x86<wbr>_64 which provides pam_ldap.so<br><br></div>I have a rule within the pool_hba.conf file that uses the &quot;pam&quot; auth method, and within /etc/pam.d/pgpool I have the following:<br><br>#%PAM-1.0<br>auth            required        pam_ldap.so<br>account         required        pam_ldap.so<br><br></div>pgpool starts up fine but whenever I try connecting to pgpool, I get a password prompt, but when I enter the password the connecting suddenly gets terminated.  I check the logs in pgpool and get the following error:<br><br>Mar 28 21:54:14 localhost pgpool: *** Error in `pgpool: accept connection&#39;: free(): invalid size: 0x00000<br>00002725b80 ***<br>Mar 28 21:54:14 localhost pgpool: ======= Backtrace: =========<br>Mar 28 21:54:14 localhost pgpool: /lib64/libc.so.6(+0x7c503)[0x7<wbr>f3c09786503]<br>Mar 28 21:54:14 localhost pgpool: /lib64/libpam.so.0(pam_vprompt<wbr>+0x133)[0x7f3c0aca9153]<br>Mar 28 21:54:14 localhost pgpool: /lib64/libpam.so.0(pam_prompt+<wbr>0x8a)[0x7f3c0aca930a]<br>Mar 28 21:54:14 localhost pgpool: /lib64/libpam.so.0(+0x44e4)[0x<wbr>7f3c0aca54e4]<br>Mar 28 21:54:14 localhost pgpool: /usr/lib64/security/pam_ldap.s<wbr>o(pam_sm_authenticate+0xb9)[0x<wbr>7f3c05ae272<br>9]<br>Mar 28 21:54:14 localhost pgpool: /lib64/libpam.so.0(+0x2f6a)[0x<wbr>7f3c0aca3f6a]<br>Mar 28 21:54:14 localhost pgpool: /lib64/libpam.so.0(pam_authent<wbr>icate+0x30)[0x7f3c0aca3830]<br>Mar 28 21:54:14 localhost pgpool: pgpool: accept connection[0x421a04]<br>Mar 28 21:54:14 localhost pgpool: pgpool: accept connection[0x428150]<br>Mar 28 21:54:14 localhost pgpool: pgpool: accept connection[0x406dec]<br>Mar 28 21:54:14 localhost pgpool: pgpool: accept connection[0x40b165]<br>Mar 28 21:54:14 localhost pgpool: pgpool: accept connection[0x40560f]<br>Mar 28 21:54:14 localhost pgpool: /lib64/libc.so.6(__libc_start_<wbr>main+0xf5)[0x7f3c0972bb35]<br>Mar 28 21:54:14 localhost pgpool: pgpool: accept connection[0x405a2d]<br>Mar 28 21:54:14 localhost pgpool: ======= Memory map: ========<br>...<br><br></div>Any ideas on what the issue is?<br><br></div>Thanks!<span class="m_4613856073254939326gmail-HOEnZb"><font color="#888888"><br clear="all"><div><div><div><div><div><div><div><br>-- <br><div class="m_4613856073254939326gmail-m_-3014206527660842939gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><font color="#666666"><span>Danny Im</span><br>Software Developer</font></div><div dir="ltr"><font color="#666666">Polar Geospatial Center<br><span>University of Minnesota</span></font></div></div></div></div></div></div></div></div></div></div></div></div>
</div></div></div></div></div></div></div></font></span></div>
<br></div></div>______________________________<wbr>_________________<br>
pgpool-general mailing list<br>
<a href="mailto:pgpool-general@pgpool.net" target="_blank">pgpool-general@pgpool.net</a><br>
<a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" rel="noreferrer" target="_blank">http://www.pgpool.net/mailman/<wbr>listinfo/pgpool-general</a><br>
<br></blockquote></div><br></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><font color="#666666"><span>Danny Im</span><br>Software Developer</font></div><div dir="ltr"><font color="#666666">Polar Geospatial Center<br><span>University of Minnesota</span></font></div></div></div></div></div></div></div></div></div></div></div></div>
</div>