|
 |
asp_web_howto thread: Retrieving Workstation/Username Information
Message #1 by "Eldin Didic" <dvine@i...> on Tue, 22 May 2001 06:25:31
|
|
Hi,
I'm still new to the asp scene, although I have a minor problem, I am
creating a fault reporting page for my companies intranet, but I'm stuck
trying to maintain user information and storing it on a page for when it
gets submitted. For example I want to grab user information such as
username (logged onto machine) and machine name to be displayed in text
boxes. I've managed to ask a few asp programmers out there, but all were
uncertain of this "feature" if it exists. Please reply if you could help
out.
Thanks.
Message #2 by "Morgan, Rob" <Rob.Morgan@o...> on Tue, 22 May 2001 07:15:15 -0400
|
|
Try looking up one of the servervariables available.
-----Original Message-----
From: Eldin Didic [mailto:dvine@i...]
Sent: Tuesday, May 22, 2001 2:26 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Retrieving Workstation/Username Information
Hi,
I'm still new to the asp scene, although I have a minor problem, I am
creating a fault reporting page for my companies intranet, but I'm
stuck
trying to maintain user information and storing it on a page for when
it
gets submitted. For example I want to grab user information such as
username (logged onto machine) and machine name to be displayed in text
boxes. I've managed to ask a few asp programmers out there, but all
were
uncertain of this "feature" if it exists. Please reply if you could
help
out.
Thanks.
Message #3 by "Craig Flannigan" <ckf@k...> on Tue, 22 May 2001 12:25:34 +0100
|
|
Had the same problem. Try these....
<% Request.ServerVariables("AUTH_USER") %> for example...
AUTH_PASSWORD - The value entered in the client's authentication dialog.
This variable is available only if Basic authentication is used.
AUTH_TYPE - The authentication method that the server uses to validate
users when they attempt to access a protected script.
AUTH_USER - Raw authenticated user name.
HTTP_USER_AGENT - Returns a string describing the browser that sent the
request.
HTTP_COOKIE - Returns the cookie string that was included with the
request.
HTTP_REFERER - Returns a string containing the URL of the page that
referred the request to the current page, but does not include redirect
requests.
LOCAL_ADDR - Returns the Server Address on which the request came in.
LOGON_USER - The Windows account that the user is logged into.
QUERY_STRING - Query information stored in the string following the
question mark (?) in the HTTP request.
REMOTE_ADDR - The IP address of the remote host making the request.
REMOTE_HOST - The name of the host making the request. If the server does
not have this information, it will set REMOTE_ADDR and leave this empty.
REMOTE_USER - Unmapped user-name string sent in by the user.
Hope this helps.
Regards,
Craig.
-----Original Message-----
From: Morgan, Rob [mailto:Rob.Morgan@o...]
Sent: Tuesday 22 May 2001 12:15
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Retrieving Workstation/Username Information
Try looking up one of the servervariables available.
-----Original Message-----
From: Eldin Didic [mailto:dvine@i...]
Sent: Tuesday, May 22, 2001 2:26 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Retrieving Workstation/Username Information
Hi,
I'm still new to the asp scene, although I have a minor problem, I am
creating a fault reporting page for my companies intranet, but I'm stuck
trying to maintain user information and storing it on a page for when it
gets submitted. For example I want to grab user information such as
username (logged onto machine) and machine name to be displayed in text
boxes. I've managed to ask a few asp programmers out there, but all were
uncertain of this "feature" if it exists. Please reply if you could help
out.
Thanks.
Message #4 by "Eldin Didic" <dvine@i...> on Wed, 23 May 2001 04:43:06
|
|
Thanks Guys,
It's solved my problem big time. :) But im faced with abother problem,
it's also grabbed the domain along with the user over nt
auth. "Domain\Username" but i need to figure out how to remove the domain
and simply leave the username only.
Once again,
Thanks for you help.
> Had the same problem. Try these....
>
> <% Request.ServerVariables("AUTH_USER") %> for example...
>
> AUTH_PASSWORD - The value entered in the client's authentication
dialog.
> This variable is available only if Basic authentication is used.
> AUTH_TYPE - The authentication method that the server uses
to validate
> users when they attempt to access a protected script.
> AUTH_USER - Raw authenticated user name.
> HTTP_USER_AGENT - Returns a string describing the browser that
sent the
> request.
> HTTP_COOKIE - Returns the cookie string that was included with
the
> request.
> HTTP_REFERER - Returns a string containing the URL of the page
that
> referred the request to the current page, but does not include redirect
> requests.
> LOCAL_ADDR - Returns the Server Address on which the request
came in.
> LOGON_USER - The Windows account that the user is logged into.
> QUERY_STRING - Query information stored in the string following
the
> question mark (?) in the HTTP request.
> REMOTE_ADDR - The IP address of the remote host making the
request.
> REMOTE_HOST - The name of the host making the request. If the
server does
> not have this information, it will set REMOTE_ADDR and leave this empty.
> REMOTE_USER - Unmapped user-name string sent in by the user.
>
>
> Hope this helps.
>
> Regards,
> Craig.
>
>
> -----Original Message-----
> From: Morgan, Rob [mailto:Rob.Morgan@o...]
> Sent: Tuesday 22 May 2001 12:15
> To: ASP Web HowTo
> Subject: [asp_web_howto] RE: Retrieving Workstation/Username Information
>
>
> Try looking up one of the servervariables available.
>
> -----Original Message-----
> From: Eldin Didic [mailto:dvine@i...]
> Sent: Tuesday, May 22, 2001 2:26 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] Retrieving Workstation/Username Information
>
>
> Hi,
>
> I'm still new to the asp scene, although I have a minor problem, I am
> creating a fault reporting page for my companies intranet, but I'm stuck
> trying to maintain user information and storing it on a page for when it
> gets submitted. For example I want to grab user information such as
> username (logged onto machine) and machine name to be displayed in text
> boxes. I've managed to ask a few asp programmers out there, but all were
> uncertain of this "feature" if it exists. Please reply if you could help
> out.
>
> Thanks.
>
Message #5 by "Craig Flannigan" <ckf@k...> on Wed, 23 May 2001 08:13:17 +0100
|
|
Could you not show only the characters after the "\" ?
If so, then you need to use the Instr and Mid commands.
eg..
strUsername = Mid(Request.ServerVariables("AUTH_USER"),
Instr(Request.ServerVariables("AUTH_USER"),"\",1,1))
-----Original Message-----
From: Eldin Didic [mailto:dvine@i...]
Sent: Wednesday 23 May 2001 04:43
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Retrieving Workstation/Username Information
Thanks Guys,
It's solved my problem big time. :) But im faced with abother problem,
it's also grabbed the domain along with the user over nt
auth. "Domain\Username" but i need to figure out how to remove the domain
and simply leave the username only.
Once again,
Thanks for you help.
> Had the same problem. Try these....
>
> <% Request.ServerVariables("AUTH_USER") %> for example...
>
> AUTH_PASSWORD - The value entered in the client's authentication
dialog.
> This variable is available only if Basic authentication is used.
> AUTH_TYPE - The authentication method that the server uses
to validate
> users when they attempt to access a protected script.
> AUTH_USER - Raw authenticated user name.
> HTTP_USER_AGENT - Returns a string describing the browser that
sent the
> request.
> HTTP_COOKIE - Returns the cookie string that was included with
the
> request.
> HTTP_REFERER - Returns a string containing the URL of the page
that
> referred the request to the current page, but does not include redirect
> requests.
> LOCAL_ADDR - Returns the Server Address on which the request
came in.
> LOGON_USER - The Windows account that the user is logged into.
> QUERY_STRING - Query information stored in the string following
the
> question mark (?) in the HTTP request.
> REMOTE_ADDR - The IP address of the remote host making the
request.
> REMOTE_HOST - The name of the host making the request. If the
server does
> not have this information, it will set REMOTE_ADDR and leave this empty.
> REMOTE_USER - Unmapped user-name string sent in by the user.
>
>
> Hope this helps.
>
> Regards,
> Craig.
>
>
> -----Original Message-----
> From: Morgan, Rob [mailto:Rob.Morgan@o...]
> Sent: Tuesday 22 May 2001 12:15
> To: ASP Web HowTo
> Subject: [asp_web_howto] RE: Retrieving Workstation/Username Information
>
>
> Try looking up one of the servervariables available.
>
> -----Original Message-----
> From: Eldin Didic [mailto:dvine@i...]
> Sent: Tuesday, May 22, 2001 2:26 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] Retrieving Workstation/Username Information
>
>
> Hi,
>
> I'm still new to the asp scene, although I have a minor problem, I am
> creating a fault reporting page for my companies intranet, but I'm stuck
> trying to maintain user information and storing it on a page for when it
> gets submitted. For example I want to grab user information such as
> username (logged onto machine) and machine name to be displayed in text
> boxes. I've managed to ask a few asp programmers out there, but all were
> uncertain of this "feature" if it exists. Please reply if you could help
> out.
>
> Thanks.
>
|
|
 |