Tag ldap related functionality

(cherry picked from commit 25f05d424a991cf5a91cf781a54fb5d9b66680e3)