Added case insensetive DN comparison