Full user name with WindowsAuthentication

Full user name with WindowsAuthentication

Old forum URL: forums.lhotka.net/forums/t/10133.aspx


Kirby posted on Friday, March 04, 2011

Hi,

is there a way to get the full user name (Firstname plus Lastname) from CSLA when using Windows Authentication (or better regardless which authentication method I'm using)?

Or do I have to retrieve that name (e.g. for display purposes) on my own?

Regards

Kirby

 

 

ajj3085 replied on Friday, March 04, 2011

You need to get that on your own.  Basically you have to query active directory yourself using the user's security identifer.  Look up the documentation on System.DirectoryServices.

Copyright (c) Marimer LLC