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 11 September 2002, 01:41 PM
  #1  
Foot_Tapper
Scooby Regular
Thread Starter
 
Foot_Tapper's Avatar
 
Join Date: Aug 2002
Posts: 1,977
Likes: 0
Received 0 Likes on 0 Posts
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
Old 11 September 2002, 02:00 PM
  #2  
chiark
Scooby Regular
 
chiark's Avatar
 
Join Date: Jun 2000
Posts: 13,735
Likes: 0
Received 0 Likes on 0 Posts
Post

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

Cheers,

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

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

David
Old 11 September 2002, 04:07 PM
  #4  
ChristianR
Scooby Regular
iTrader: (1)
 
ChristianR's Avatar
 
Join Date: May 2001
Location: Europe
Posts: 6,329
Likes: 0
Received 1 Like on 1 Post
Post

thanks Nick - didn't know about that command, added it to the asp script (that submits the form) and works a treat!
Old 12 September 2002, 12:36 PM
  #5  
ChristianR
Scooby Regular
iTrader: (1)
 
ChristianR's Avatar
 
Join Date: May 2001
Location: Europe
Posts: 6,329
Likes: 0
Received 1 Like on 1 Post
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??
Old 12 September 2002, 12:43 PM
  #6  
ChristianR
Scooby Regular
iTrader: (1)
 
ChristianR's Avatar
 
Join Date: May 2001
Location: Europe
Posts: 6,329
Likes: 0
Received 1 Like on 1 Post
Post

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

I don't think you can... Have a look here ASP Request.ServerVariables Collection.
Old 09 November 2002, 01:13 PM
  #8  
ChristianR
Scooby Regular
iTrader: (1)
 
ChristianR's Avatar
 
Join Date: May 2001
Location: Europe
Posts: 6,329
Likes: 0
Received 1 Like on 1 Post
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]
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Frizzle-Dee
Essex Subaru Owners Club
13
09 March 2019 07:35 PM
Frizzle-Dee
Essex Subaru Owners Club
13
01 December 2015 09:37 AM
Little V
Wales
18
09 October 2015 09:45 PM
Iqy7861
Insurance
5
01 October 2015 07:57 PM
hawkeyescoob
ScoobyNet General
2
09 September 2015 12:03 PM



Quick Reply: Grabbing NT account when submitting a form



All times are GMT +1. The time now is 06:31 AM.