changes to make LoginLdap work with single codebase