added a flag to turn DN validation on/off


git-svn-id: https://svn.apache.org/repos/asf/directory/shared/trunk@1603714 13f79535-47bb-0310-9956-ffa450edef68