We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
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 - 04 May 2002 - 00:03:41 - CarlCoryellMartin
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback