From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUX6h-0005Xd-QT for qemu-devel@nongnu.org; Wed, 26 Aug 2015 05:35:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUX6e-0008OC-2c for qemu-devel@nongnu.org; Wed, 26 Aug 2015 05:34:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39791) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUX6d-0008O0-TB for qemu-devel@nongnu.org; Wed, 26 Aug 2015 05:34:55 -0400 Date: Wed, 26 Aug 2015 10:34:51 +0100 From: "Daniel P. Berrange" Message-ID: <20150826093451.GA24452@redhat.com> References: <1435675033-9926-1-git-send-email-marcandre.lureau@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1435675033-9926-1-git-send-email-marcandre.lureau@gmail.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] qemu-ga: implement win32 guest-set-user-password Reply-To: "Daniel P. Berrange" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?utf-8?Q?Marc-Andr=C3=A9?= Lureau Cc: qemu-devel@nongnu.org, mdroth@linux.vnet.ibm.com On Tue, Jun 30, 2015 at 04:37:13PM +0200, Marc-Andr=C3=A9 Lureau wrote: > Use NetUserSetInfo() to set the user password. >=20 > This function is notoriously known to be problematic for users with EFS > encrypted files. But the alternative, NetUserChangePassword() requires > the old password. Nevertheless, The EFS file should be recovered by > changing back to the old password. >=20 > Signed-off-by: Marc-Andr=C3=A9 Lureau > --- > configure | 2 +- > qga/commands-win32.c | 77 ++++++++++++++++++++++++++++++++++++++++++++= ++++++-- > 2 files changed, 76 insertions(+), 3 deletions(-) Reviewed-by: Daniel P. Berrange For reference, I compared with MS recommendations here https://support.microsoft.com/en-us/kb/151546 and this looks correct for way to administratively change passwords without knowing the original password. Regards, Daniel --=20 |: http://berrange.com -o- http://www.flickr.com/photos/dberrange= / :| |: http://libvirt.org -o- http://virt-manager.or= g :| |: http://autobuild.org -o- http://search.cpan.org/~danberr= / :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vn= c :|