BPMS-1083: Fixed test cases for security.
WF-1702: Fixed login issue for ldap