Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: get user name

by z3d (Scribe)
on Jan 21, 2002 at 23:47 UTC ( [id://140469]=note: print w/replies, xml ) Need Help??


in reply to get user name

Not that you've probably had a chance to get back to all of these suggestion, but I agree with a previous post - it all depends on the circumstances. Can you get us more information on the environment, both where you want to place the perl application and what kind of network it will live on? I know that in the past I've used the LDAP module to get user information against the Microsoft Directory server or Netscape's LDAP server, but in both cases it was based on some combination of $ENV{YADA} variables. If this isn't coming through a web server, it does get more difficult.

That said, I notice you mentioned cgi or asp, so I guess it is coming through a web server =:) Check out the ENV variables that are available. You may not be able to get the exact username if it hasn't been authenticated, but you may be able to pull something else out that is unique. For instance, if this is a closed and limited system, you will be able to get their machine name, which in closed networks tends to be a unique identifier.

Consider anything you might see in a web server log and that will get you close to a solution.

z3d

Replies are listed 'Best First'.
Re: Re: get user name
by z3d (Scribe) on Jan 22, 2002 at 03:47 UTC
    Thought of one more thing to add (I know, it's bad when you reply to your own reply) - you mentioned ASPs, which implies an MS network. IF I remember right, and it's been a long time, ASP's at least (can't remember if this is an MS specific thing or if it was in the ENV variables) can grab the network logon name from the incoming user - assuming your application is on an MS network, MS server, etc. ***************************************************************
    Zed? Zed's dead, baby, Zed's dead.
Re: Re: get user name
by z3d (Scribe) on Jan 22, 2002 at 03:46 UTC
    Thought of one more thing to add (I know, it's bad when you reply to your own reply) - you mentioned ASPs, which implies an MS network. IF I remember right, and it's been a long time, ASP's at least (can't remember if this is an MS specific thing or if it was in the ENV variables) can grab the network logon name from the incoming user - assuming your application is on an MS network, MS server, etc. ***************************************************************<br< Zed? Zed's dead, baby, Zed's dead.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://140469]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-03-28 17:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found