Added ability to support multiple nss_base_passwd entries.

- Fixed issue were keys and values from ldap.conf file were converted to
  lower case, now only the keys are converted to lower case.
- Fixed reading secret from ldap.secret file.
- Refactored code to read lines from a file.