(ITS#6149) ldapsearch is not really script-friendly (patch included)