Home All Groups Group Topic Archive Search About
Author
19 May 2006 9:53 AM
luna
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

Author
19 May 2006 11:53 AM
Altaf Al-Amin Najwani
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
>
>
>
Fix windows and pc errors, click for free system scan

Author
19 May 2006 2:32 PM
luna
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
>>
>>
>>
Author
19 May 2006 6:11 PM
Brock Allen
"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
>>>
Author
22 May 2006 12:39 PM
luna
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
>>>>
>
>

Bookmark and Share