WIP: Fix dealing with LDAP credentials. PoC.