fixed resource file when pam_ldap is true