Tags:
create new tag
, view all tags

Question

I am using TWiki as part of an authenticated intranet. The problem is that I can't easily set the REMOTE_USER variable, so I thought I would hack TWIKI to use the HTTP_AUTH_USER variable which I can set.

So thinking myself clever I made the following changes:

I replaced all instances of remote_user(); with http( 'AUTH_USER')

and replaced instances of REMOTE_USER with HTTP_AUTH_USER

So this looks like it works fine, I can register normally and my signature shows up fine and everything...

except

When I edit, I still make changes as guest. frown If I put the % USERNAME % variable (spaces intentionally put in so it doesn't get parsed) in a page, when I look at the page it has my login-name but when I preview the page it says: guest.

any suggestions? .

  • TWiki version: April 2002
  • Web server: AOLserver
  • Server OS: Redhat Linux 7.2
  • Web browser: Netscape 4.7.x
  • Client OS: Redhat 6.1

-- CarlCoryellMartin - 03 May 2002

Answer

OOPS, I wasn't setting this variable on HTTP POSTS. Sorry, everything is fine now. This could be deleted. .

Topic revision: r2 - 2002-05-04 - CarlCoryellMartin
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.