Fix rlm_pam
Fix coverity issues in rlm_ldap