Fixes BZ 1024456 verify_ldap after refactoring in 5793cd2b
Merge pull request #3288 from ares/bug/1024456

Fix verify_ldap after refactoring in 5793cd2b