Fixes BZ 1024456 verify_ldap after refactoring in 5793cd2b