i have website in (asp.net c#) and i have login page in this login page i need to use two way to login
- by check (review) current windows login name (i need to get username and domain (domain\user)) if not found this user in my DB . go to second way.
- normal login (by enter username and password).
i have problem when i get the username and domain (domain\user)
when i use (Security.Principal.WindowsIdentity.GetCurrent().Name
the output is IIS APPPOOL/DefultPool)
Note : My website work under Internet Information Services
I want To get domain\user for any user open my website
Thanks .