Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Grabbing NT account when submitting a form

Thread Tools
 
Search this Thread
 
Old Sep 11, 2002 | 01:41 PM
  #1  
Foot_Tapper's Avatar
Foot_Tapper
Thread Starter
Scooby Regular
 
Joined: Aug 2002
Posts: 1,977
Likes: 0
Post

Christian, i know you can obtain the account name in dos.
Using nbtstat -A <ip address>
if you use f'rinstance "nbtstat -A 140.20.30.155 >> USER.HTML"
this will put the computers details plus the user who is logged in;
into an html document.

Try it m8.
ps it will dump it in root of your c drive
Reply
Old Sep 11, 2002 | 02:00 PM
  #2  
chiark's Avatar
chiark
Scooby Regular
 
Joined: Jun 2000
Posts: 13,735
Likes: 0
Post

If you're using IIS, it comes in as a field of the request object- Request.ServerVariables("LOGON_USER")

Cheers,

Nick.
Reply
Old Sep 11, 2002 | 03:32 PM
  #3  
David_Wallis's Avatar
David_Wallis
Scooby Regular
 
Joined: Nov 2001
Posts: 15,239
Likes: 1
From: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Post

anybody got a java solution for this, as I need it too, but the web server is a domino server...

David
Reply
Old Sep 11, 2002 | 04:07 PM
  #4  
ChristianR's Avatar
ChristianR
Scooby Regular
iTrader: (1)
 
Joined: May 2001
Posts: 6,329
Likes: 1
From: Europe
Post

thanks Nick - didn't know about that command, added it to the asp script (that submits the form) and works a treat!
Reply
Old Sep 12, 2002 | 12:36 PM
  #5  
ChristianR's Avatar
ChristianR
Scooby Regular
iTrader: (1)
 
Joined: May 2001
Posts: 6,329
Likes: 1
From: Europe
Post

going on from this, anyway of grabbing the computer name as well that made the request?

I have tried the Request.ServerVariables("REMOTE_HOST") - but just seems to return the ip address, like the "REMOTE_ADDR"

Any other ways??
Reply
Old Sep 12, 2002 | 12:43 PM
  #6  
ChristianR's Avatar
ChristianR
Scooby Regular
iTrader: (1)
 
Joined: May 2001
Posts: 6,329
Likes: 1
From: Europe
Post

tell a lie, it doesn't grab the users ip address but the proxy ip address.
Reply
Old Sep 12, 2002 | 12:51 PM
  #7  
AdrianFRST's Avatar
AdrianFRST
Scooby Regular
 
Joined: Oct 2000
Posts: 368
Likes: 0
Post

I don't think you can... Have a look here ASP Request.ServerVariables Collection.
Reply
Old Nov 9, 2002 | 01:13 PM
  #8  
ChristianR's Avatar
ChristianR
Scooby Regular
iTrader: (1)
 
Joined: May 2001
Posts: 6,329
Likes: 1
From: Europe
Post

Does anyone know of any code(java?) that will allow me to insert the person who is logged on (their username) into a html form automatically?

If this cannot be done, how about when the html form is submitted, can the account information be included?

This is for our internal network / w2k domain / w2k iss server, on an area of the intranet which only certain staff have members have, and is restricted via ntfs.

[Edited by ChristianR - 9/11/2002 1:22:21 PM]
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Frizzle-Dee
Essex Subaru Owners Club
13
Mar 9, 2019 07:35 PM
Frizzle-Dee
Essex Subaru Owners Club
13
Dec 1, 2015 09:37 AM
Little V
Wales
18
Oct 9, 2015 09:45 PM
Iqy7861
Insurance
5
Oct 1, 2015 07:57 PM
hawkeyescoob
ScoobyNet General
2
Sep 9, 2015 12:03 PM




All times are GMT +1. The time now is 05:15 PM.