add support for ldap configuration with local users

additionally providing some base test cases for ldap configuration