From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Daniel P. Berrange" Subject: Re: ioemu: empty vnc passwd Date: Wed, 23 Jan 2008 17:33:41 +0000 Message-ID: <20080123173341.GD17258@redhat.com> References: <20080123161130.GD5188@implementation.uk.xensource.com> <20080123163555.GF24352@redhat.com> <20080123172614.GD18326@totally.trollied.org.uk> Reply-To: "Daniel P. Berrange" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20080123172614.GD18326@totally.trollied.org.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: John Levon Cc: xen-devel@lists.xensource.com, Samuel Thibault List-Id: xen-devel@lists.xenproject.org On Wed, Jan 23, 2008 at 05:26:14PM +0000, John Levon wrote: > On Wed, Jan 23, 2008 at 04:35:55PM +0000, Daniel P. Berrange wrote: > > > > However, that means we can't use an empty passwd any more, while that > > > may be quite useful e.g. in testing environments, so that we would need > > > the following patch: > > > > This is handled in XenD. > > > > - If a non-empty passwd is found in the guest config, or in the > > global XenD config,, then qemu has -vnc :1,passwd on its CLI > > to turn on password auth. > > - If there is no guest password and no global XenD password, > > then qemu has -vnc :1 and no password auth is enabled > > at all. > > I'm confused: if there's no config or xend password at all, then the > domain won't start: > > if vncpasswd is None: > raise VmError('vncpasswd is not setup in vmconfig or ' > 'xend-config.sxp') Sorry, my bad description - by no xend password, i meant the default xend-config.sxp which is in fact ''. Frankly this check above is a waste of time - it should just treat None as "" Dan. -- |=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/~danberr/ -=| |=- Projects: http://freshmeat.net/~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|