NEWBIE CGI HELP::Can I verify a user has logged on

J

joe slash blow

I have very basic Perl knowledge and inherited a script for work.
If the user inputs a specific 4 character code in one of 3 places on a web
page, I have to verify that the user has logged onto an NT domain account
before I let them go to the next html page. If they don't use the 4
character code they can go on unchecked.
I don't want them to have to log on to the perl page, just verify that they
are logged onto the system.
Any help would be greatly appreciated.

T:I:A!
- D a r y l
 
C

Chris Mattern

joe said:
I have very basic Perl knowledge and inherited a script for work.
If the user inputs a specific 4 character code in one of 3 places on a web
page, I have to verify that the user has logged onto an NT domain account
before I let them go to the next html page. If they don't use the 4
character code they can go on unchecked.
I don't want them to have to log on to the perl page, just verify that
they are logged onto the system.
Any help would be greatly appreciated.
Er, how do you determine which NT user he's supposed to be? Does the
four character code ID him? Can you determine it from his IP address?
--
Christopher Mattern

"Which one you figure tracked us?"
"The ugly one, sir."
"...Could you be more specific?"
 
J

joe slash blow

Chris Mattern said:
Er, how do you determine which NT user he's supposed to be? Does the
four character code ID him? Can you determine it from his IP address?

All users will be logged onto a work computer connected to the domain.
 
C

Chris Mattern

joe said:
All users will be logged onto a work computer connected to the domain.

Yes, but how does that tell the *webserver* anything? The webserver
doesn't know anything other than the user's IP and any info conveyed
via http. Are you running a client-side script that snitches the
user's ID to the webserver?
--
Christopher Mattern

"Which one you figure tracked us?"
"The ugly one, sir."
"...Could you be more specific?"
 
B

Ben Morrow

Quoth Chris Mattern said:
Yes, but how does that tell the *webserver* anything? The webserver
doesn't know anything other than the user's IP

....from which you should be able to use Win32 net admin stuff to figure
out who is logged on to that machine at the moment. Alternatively, you
could ask for NTLM HTTP authentication, which will probably
automatically authenticate as whoever is currently logged on; but this
is OT and should be asked in an HTTP or a MS group.

Ben
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,436
Messages
2,571,696
Members
48,796
Latest member
Greg L.
Top