Mock LDAP working