BACKLOG-4078: Fix Ldap configuration backward compatibility