Fix bug 967683 - make domain id matching case-insensitive