Improve success msg in test method of LDAPSource
Fix match in HtpasswdSource

Fixes #1714