Revert "ldap enhance"

This reverts commit 5bfa1a31ac1f6a4fa72ccdb660c91c09696f3d50.