Fix errors in LdapUsers' closures and fix test regressions.