ldap: Fix test failure that seemed to go unreported previously.