Fix for LDAP Agent instantiation