I have MSDE2000 using integrated authentication. How can I determine the
username of the logged on user from my asp.net app?

Re: how to determine logged on user? by Miha

Miha
Fri Nov 12 12:31:29 CST 2004

Hi,

Aspnet application is running on server under local windows aspnet account
by default (only on w2k3 is different account used).

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
SLODUG - Slovene Developer Users Group
www.rthand.com

"djc" <noone@nowhere.com> wrote in message
news:OiNh6UOyEHA.1452@TK2MSFTNGP11.phx.gbl...
>I have MSDE2000 using integrated authentication. How can I determine the
> username of the logged on user from my asp.net app?
>
>



Re: how to determine logged on user? by Paul

Paul
Fri Nov 12 13:44:38 CST 2004

On Fri, 12 Nov 2004 13:27:07 -0500, "djc" <noone@nowhere.com> wrote:

¤ I have MSDE2000 using integrated authentication. How can I determine the
¤ username of the logged on user from my asp.net app?
¤

Several methods. Here is one:

System.Security.Principal.WindowsIdentity.GetCurrent.Name


Paul ~~~ pclement@ameritech.net
Microsoft MVP (Visual Basic)

Re: how to determine logged on user? by djc

djc
Fri Nov 12 13:56:37 CST 2004

thanks.

"Paul Clement" <UseAdddressAtEndofMessage@swspectrum.com> wrote in message
news:ri4ap0tok3t9mrvu0fb50kt9bme4g1o62h@4ax.com...
> On Fri, 12 Nov 2004 13:27:07 -0500, "djc" <noone@nowhere.com> wrote:
>
> ¤ I have MSDE2000 using integrated authentication. How can I determine the
> ¤ username of the logged on user from my asp.net app?
> ¤
>
> Several methods. Here is one:
>
> System.Security.Principal.WindowsIdentity.GetCurrent.Name
>
>
> Paul ~~~ pclement@ameritech.net
> Microsoft MVP (Visual Basic)



Re: how to determine logged on user? by jeff

jeff
Fri Nov 12 15:01:45 CST 2004

In SQL, select suser_sname()


"Miha Markic [MVP C#]" <miha at rthand com> wrote in message
news:ONNnVXOyEHA.1196@TK2MSFTNGP15.phx.gbl...
> Hi,
>
> Aspnet application is running on server under local windows aspnet account
> by default (only on w2k3 is different account used).
>
> --
> Miha Markic [MVP C#] - RightHand .NET consulting & development
> SLODUG - Slovene Developer Users Group
> www.rthand.com
>
> "djc" <noone@nowhere.com> wrote in message
> news:OiNh6UOyEHA.1452@TK2MSFTNGP11.phx.gbl...
> >I have MSDE2000 using integrated authentication. How can I determine the
> > username of the logged on user from my asp.net app?
> >
> >
>
>



re:how to determine logged on user? by PIEBALDconsult

PIEBALDconsult
Sat Nov 13 23:56:38 CST 2004

With SQL server, it's:

SELECT System_user

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*

Re: re:how to determine logged on user? by djc

djc
Mon Nov 15 08:19:01 CST 2004

thanks

"PIEBALD" <PIEBALDconsult@aol-dot-com.no-spam.invalid> wrote in message
news:4196f396_2@Usenet.com...
> With SQL server, it's:
>
> SELECT System_user
>
> *-----------------------*
> Posted at:
> www.GroupSrv.com
> *-----------------------*



Re: how to determine logged on user? by djc

djc
Mon Nov 15 08:19:36 CST 2004

thanks

<jeff@removeemergencyreporting.com> wrote in message
news:OmHGcrPyEHA.1452@TK2MSFTNGP11.phx.gbl...
> In SQL, select suser_sname()
>
>
> "Miha Markic [MVP C#]" <miha at rthand com> wrote in message
> news:ONNnVXOyEHA.1196@TK2MSFTNGP15.phx.gbl...
> > Hi,
> >
> > Aspnet application is running on server under local windows aspnet
account
> > by default (only on w2k3 is different account used).
> >
> > --
> > Miha Markic [MVP C#] - RightHand .NET consulting & development
> > SLODUG - Slovene Developer Users Group
> > www.rthand.com
> >
> > "djc" <noone@nowhere.com> wrote in message
> > news:OiNh6UOyEHA.1452@TK2MSFTNGP11.phx.gbl...
> > >I have MSDE2000 using integrated authentication. How can I determine
the
> > > username of the logged on user from my asp.net app?
> > >
> > >
> >
> >
>
>