On http://www.padl.com/download/pam_ldap-184.tar.gz, there's a new version of pam_ldap available. 184. In portage, there's 183. The new version compiles just fine after renaming the ebuild from 183 to 184 (ie. no changes necessary).
The new version still isn't in portage, has it bugs?
184 Luke Howard <lukeh@padl.com> * fix for BUG#312: pam_ldap does not try to reconnect when LDAP server closed the connection
in CVS.