From: jacob Date: Wed, 24 Mar 2010 20:12:25 +0000 (+0000) Subject: When looking for a local username on Windows, if we can get hold of the X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/4c26bb506b3c12443171551b103a81b038d25334?hp=4c26bb506b3c12443171551b103a81b038d25334 When looking for a local username on Windows, if we can get hold of the NameUserPrincipal, use that; this avoids an issue with SSPI/GSSAPI where the user logged in to the local machine with a different case of username to the (case-sensitive) Kerberos username. Falls back to GetUserName as before if that doesn't work (for machines not on a domain, and Win9x). Based on a patch by SebastianUnger. git-svn-id: svn://svn.tartarus.org/sgt/putty@8909 cda61777-01e9-0310-a592-d414129be87e ---