patch for eldap.c to avoid connection errors