Last post Jun 30, 2012 09:16 AM by BrockAllen
Jun 30, 2012 12:08 AM|starnitin|LINK
I want to get cuurent active directory username on asp.net page in local intranet...please helpp me???
Jun 30, 2012 01:39 AM|urenjoy|LINK
Set windows authentication in web.config, Disable Anonymous authentication in IIS and use following code to get user name
Check following thread
Jun 30, 2012 01:50 AM|starnitin|LINK
but sir when i write
it got the username when run it locally but when i run it on the intranet from the same computer it does not display the user name .....????
when i use this
then on intranet it show 'SYSTEM' as a username..
please help me....
Jun 30, 2012 09:16 AM|BrockAllen|LINK
User.Identity.Name gives you the current authenticated user. You woul[d then have to authenticate the users with Windows authentication. Have you configured your app for windows authentication?