Fix verify_ldap after refactoring in 5793cd2b