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

Started by rickyboy, December 11, 2012, 12:59:08 PM

Previous topic - Next topic

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

#1
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">http://www.newlisp.org/environment.cgi and you will see your IP number in REMOTE_ADDR/HOST