I am developing an intranet site that needs to get access to the active directory username of the user browsing the site. I don't want people to login, I just want to be able to extract their username.
I have made this XSLT-extension to get the username, but it just gives me the the user: NT AUTHORITY\NETWORK_SERVICE
I have tried several attempts configuring the web.config to use <authentication mode="Windows"> and <identity impersonate="true"/> but nothing seems to work.
Has anyone got an idea of how to acheive my needs?
Getting Active Directory User without logging in
Hi,
I am developing an intranet site that needs to get access to the active directory username of the user browsing the site. I don't want people to login, I just want to be able to extract their username.
I have made this XSLT-extension to get the username, but it just gives me the the user: NT AUTHORITY\NETWORK_SERVICE
I have tried several attempts configuring the web.config to use <authentication mode="Windows"> and <identity impersonate="true"/> but nothing seems to work.
Has anyone got an idea of how to acheive my needs?
Rasmus
Rasmus
http://our.umbraco.org/search?q=ldap&content=wiki,forumTopics,forumCategory,project,
couple of good posts there
Ismail
Of course I have searched the forum for answers, and I have read all these threads.
But my Request.ServerVariables["HTTP_USER"] does not contain anything.
I have tried disabling anonymous authentication in IIS, but then I get an access denied page.
I have googled a lot about the configuration of IIS to allow this impersonation, but nothing have worked.
Well, I finally got something working. It was an IIS module for managing Windows Authentication that wasn't installed :)
Hi,
I'll be doing something similar shortly - what was the module just in case I get the same issue?
Si
Hi,
The module is just called "Windows Authentication" and must be installed from "Windows Features".
Control Panel\Programs\Turn Windows Features on or off
Go to Internet Information Services\World Wide Web Services\Security\Windows Authentication
is working on a reply...