r22340: Fix another segfault in idmap_ldap.c caused by setting the iterator