>>It could be so. I asked the customer to create an account that would have privileges (maybe) to get the username. Then I can impersonate this account. If they (customer) don't agree, I told them that the user will have to enter his/her AD username.
>>
>>>Right. I was about to make the aclaratory.
>>>If you need that info, you have to use windows authentication;
>>>there's no way for a browser to access that information unless the
>>>user send the credentials somehow.
>
>Just enable windows authentication and you'll be ok.
>
>Check:
>
https://stackoverflow.com/questions/19686933/logonuseridentity-name-vs-user-identity-name/19689343I do have the windows authentication enabled. But it does not work for my page.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham