|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Page.User.Identity.NameWhere does this function get the name from ?
reason i ask is, a user wanted their name changing on the domain, i fixe everything else (email,login etc etc) but this function still displays the old name cheers mark The .net uses the identity of the current login user. But It depends on the
kind of authentication you use. If you are using Windows based authentication then it will use NT Domain user id, But in some cases your application is also running under admin id, in this case you impersonate admin id to run application. you may check ur web.config for it. Show quoteHide quote "luna" wrote: > Where does this function get the name from ? > reason i ask is, a user wanted their name changing on the domain, > i fixe everything else (email,login etc etc) but this function still > displays the old name > > cheers > > mark > > > cheers,
weird, seems to be windows auth <authentication mode="Windows" /> <identity impersonate="true" /> still shows the wrong name, might just be the active directory mark Show quoteHide quote "Altaf Al-Amin Najwani" <altaf.ala***@gmail.com> wrote in message news:0D8B54BC-271C-48EB-805E-0C0DCFFC9FCF@microsoft.com... > The .net uses the identity of the current login user. But It depends on > the > kind of authentication you use. If you are using Windows based > authentication > then it will use NT Domain user id, But in some cases your application is > also running under admin id, in this case you impersonate admin id to run > application. you may check ur web.config for it. > > "luna" wrote: > >> Where does this function get the name from ? >> reason i ask is, a user wanted their name changing on the domain, >> i fixe everything else (email,login etc etc) but this function still >> displays the old name >> >> cheers >> >> mark >> >> >> "Windows" means use the username IIS determines, so you must also configure
IIS. Probabaly what you need to do in IIS is disallow anonymous access. The impersonate setting is unrelated to determining User.Identity.Name. It's used for setting a thread token on the executing thread based upon IIS' user. Chances are that you don't need or want that if you simply want to know who the user is. -Brock http://staff.develop.com/ballen Show quoteHide quote > cheers, > > weird, seems to be windows auth > > <authentication mode="Windows" /> > <identity impersonate="true" /> > still shows the wrong name, might just be the active directory > > mark > "Altaf Al-Amin Najwani" <altaf.ala***@gmail.com> wrote in message > news:0D8B54BC-271C-48EB-805E-0C0DCFFC9FCF@microsoft.com... >> The .net uses the identity of the current login user. But It depends >> on >> the >> kind of authentication you use. If you are using Windows based >> authentication >> then it will use NT Domain user id, But in some cases your >> application is >> also running under admin id, in this case you impersonate admin id to >> run >> application. you may check ur web.config for it. >> "luna" wrote: >> >>> Where does this function get the name from ? >>> reason i ask is, a user wanted their name changing on the domain, >>> i fixe everything else (email,login etc etc) but this function still >>> displays the old name >>> cheers >>> >>> mark >>> anon access is disabled, integrated windows authenticion only
havent been back to check if its ok as the woman does my head in! Show quoteHide quote "Brock Allen" <ballen@NOSPAMdevelop.com> wrote in message news:b8743b1d9008c84965428d9cfa@msnews.microsoft.com... > "Windows" means use the username IIS determines, so you must also > configure IIS. Probabaly what you need to do in IIS is disallow anonymous > access. > > The impersonate setting is unrelated to determining User.Identity.Name. > It's used for setting a thread token on the executing thread based upon > IIS' user. Chances are that you don't need or want that if you simply want > to know who the user is. > > -Brock > http://staff.develop.com/ballen > > >> cheers, >> >> weird, seems to be windows auth >> >> <authentication mode="Windows" /> >> <identity impersonate="true" /> >> still shows the wrong name, might just be the active directory >> >> mark >> "Altaf Al-Amin Najwani" <altaf.ala***@gmail.com> wrote in message >> news:0D8B54BC-271C-48EB-805E-0C0DCFFC9FCF@microsoft.com... >>> The .net uses the identity of the current login user. But It depends >>> on >>> the >>> kind of authentication you use. If you are using Windows based >>> authentication >>> then it will use NT Domain user id, But in some cases your >>> application is >>> also running under admin id, in this case you impersonate admin id to >>> run >>> application. you may check ur web.config for it. >>> "luna" wrote: >>> >>>> Where does this function get the name from ? >>>> reason i ask is, a user wanted their name changing on the domain, >>>> i fixe everything else (email,login etc etc) but this function still >>>> displays the old name >>>> cheers >>>> >>>> mark >>>> > >
Other interesting topics
ASP NET server can not response after long job
A serious bug?? Building other sln (to build references) User control accessing outside control Invalid Characters, Posting XML Data, Webrequest Textbox in User Control error -does not exist in current context determine sql decimal precision in .net Reading files in a pages directory SqlDataSource Password Validation |
|||||||||||||||||||||||