also using an alarm for the timeout check

Net::LDAP->new doesn't always timeout.
for instance ldirectord checks would stall and fail to detect a stopped slapd
server (stopped with pkill -SIGSTOP slapd)