Add scoping to ldap lookup when only dn given

王权利请求将github/fork/bytheway/master合并到master

Created by: bytheway

Fixes #6856 (closed)

合并请求报告