When looking for a local username on Windows, if we can get hold of the
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Wed, 24 Mar 2010 20:12:25 +0000 (20:12 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Wed, 24 Mar 2010 20:12:25 +0000 (20:12 +0000)
commit4c26bb506b3c12443171551b103a81b038d25334
tree5b855eb5d65dae21c82ca71b258d739eaa08ee56
parenta285f830b66416a81f4c612345db46663509e7e8
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
config.c
settings.c
windows/winmisc.c