skip ldap security check if ldap auth is disabled in config

Created by: jcockhren

This fixes issue #7213 (closed) which is a reincarnation of issue #6188 (closed)

合并请求报告