![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: get user nameby z3d (Scribe) |
on Jan 21, 2002 at 23:47 UTC ( #140469=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|