fixing LDAP search so it actually works again, and likewise fixing search delay timer (various things I thought were already done but that I lost in an (apparently) over-enthusiastic roll-back I did yesterday)