Better waiting for the LDAP server