[PATCH 1/2] Check was expecting pam_ldap.so to exist at least once with no options at the end of the line. It's better to see if it exists in the middle of a line. Also, fixed an unescaped period.