newLISP Wiki: How to get the user's login name

Q&A's, tips, howto's
Locked
rickyboy
Posts: 607
Joined: Fri Apr 08, 2005 7:13 pm
Location: Front Royal, Virginia

newLISP Wiki: How to get the user's login name

Post by rickyboy »

Hello everyone,

I'm trying to run newlisp wiki 4.6, behind our firewall here at work. I want for the wiki to know who is hitting it without the users having to login (to the wiki; they're already logged into the network). I thought I might see this in the context of a web request, so I dumped the environment (using Lutz's environment.cgi), but the only item related to login name is USERNAME. Unfortunately, that is the login name of the user who fired up the wiki server (namely, me), not the client's login name. I can't find anything in the environment to help.

The clients are running on Windows 7 WSes on our intranet. Has anybody fooled with this before?

Thanks for any help! --Ricky
(λx. x x) (λx. x x)

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Re: newLISP Wiki: How to get the user's login name

Post by Lutz »

The environment is enhanced and passed by the web server when starting CGI scripts. I don't think that USERNAME will contain the remote client but rather REMOTE_ADDR or REMOTE_HOST. Click here: http://www.newlisp.org/environment.cgi and you will see your IP number in REMOTE_ADDR/HOST

Locked