Home All Groups Group Topic Archive Search About

Get Current Windows User



Author
8 Mar 2005 3:23 PM
Shahid Juma
Hi,

Is it possible to get the current user that is logged on to the computer? I
want to use this as the basis of my validation on the site instead of asking
them to login in again. I know it could be a security issue if they keep the
computer unattended.

Thanks for the help,
Shahid

Author
8 Mar 2005 4:08 PM
Ray Costanzo [MVP]
If you turn off anonymous access in IIS, visitors will have to authenticate.
If you use integrated authentication in an intranet environment and your
users are using IE with default settings, IE will automatically pass the
login credentials to IIS without any user intervention.  Yuu can then use
Request.ServerVariables("AUTH_USER") to get the username.

Ray at work

Show quote
"Shahid Juma" <shahid319REMOVET***@hotmail.com> wrote in message
news:ekQsfG$IFHA.3916@TK2MSFTNGP14.phx.gbl...
> Hi,
>
> Is it possible to get the current user that is logged on to the computer?
I
> want to use this as the basis of my validation on the site instead of
asking
> them to login in again. I know it could be a security issue if they keep
the
> computer unattended.
>
> Thanks for the help,
> Shahid
>
>
Author
10 Mar 2005 5:24 PM
Shahid Juma
Thanks,

One more question. How do I get all the users on the domain?

Thanks,
Shahid

Show quote
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:%23WENQk$IFHA.1396@TK2MSFTNGP10.phx.gbl...
> If you turn off anonymous access in IIS, visitors will have to
authenticate.
> If you use integrated authentication in an intranet environment and your
> users are using IE with default settings, IE will automatically pass the
> login credentials to IIS without any user intervention.  Yuu can then use
> Request.ServerVariables("AUTH_USER") to get the username.
>
> Ray at work
>
> "Shahid Juma" <shahid319REMOVET***@hotmail.com> wrote in message
> news:ekQsfG$IFHA.3916@TK2MSFTNGP14.phx.gbl...
> > Hi,
> >
> > Is it possible to get the current user that is logged on to the
computer?
> I
> > want to use this as the basis of my validation on the site instead of
> asking
> > them to login in again. I know it could be a security issue if they keep
> the
> > computer unattended.
> >
> > Thanks for the help,
> > Shahid
> >
> >
>
>
Author
11 Mar 2005 7:17 PM
Ray Costanzo [MVP]
What do you mean?  Just list all the usernames?  Or all the users who have
sessions on your site?

Ray at work

Show quote
"Shahid Juma" <shahid319REMOVET***@hotmail.com> wrote in message
news:OIu0sYZJFHA.2648@TK2MSFTNGP14.phx.gbl...
> Thanks,
>
> One more question. How do I get all the users on the domain?
>
> Thanks,
> Shahid
>
> "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
> message news:%23WENQk$IFHA.1396@TK2MSFTNGP10.phx.gbl...
> > If you turn off anonymous access in IIS, visitors will have to
> authenticate.
> > If you use integrated authentication in an intranet environment and your
> > users are using IE with default settings, IE will automatically pass the
> > login credentials to IIS without any user intervention.  Yuu can then
use
> > Request.ServerVariables("AUTH_USER") to get the username.
> >
> > Ray at work
> >
> > "Shahid Juma" <shahid319REMOVET***@hotmail.com> wrote in message
> > news:ekQsfG$IFHA.3916@TK2MSFTNGP14.phx.gbl...
> > > Hi,
> > >
> > > Is it possible to get the current user that is logged on to the
> computer?
> > I
> > > want to use this as the basis of my validation on the site instead of
> > asking
> > > them to login in again. I know it could be a security issue if they
keep
> > the
> > > computer unattended.
> > >
> > > Thanks for the help,
> > > Shahid
> > >
> > >
> >
> >
>
>

AddThis Social Bookmark Button