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. .

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2002-05-04 - CarlCoryellMartin
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.