Replace hardcoded lib with variable
Merge pull request #1773 from rubenk/fixup-ldap

Replace hardcoded lib with variable