Tags:
create new tag
view all tags

Question

I've lost a previous installation of TWiki from 2004 which was running pretty flawlessly. User registration was turned off, and I had somehow hacked the software to recognize a Windows username and place it where the owner's name would usually appear. So, instead of this...

Topic revision: r24 - 08 Jul 2005 - 18:12:48 - TWikiContributor

I could get it to say...

Topic revision: r24 - 08 Jul 2005 - 18:12:48 - Bob_Gipperson

That was about all the document ownership I needed at the time, and in our small work environment, we weren't worried about security. Plus, it made it easy for people to contribute and that was key to getting it adopted within the organization.

So now that I have 4.2 installed (I used the Windows installer version), I'm wondering how I can do roughly the same thing? I've searched for a couple hours and found nothing that would allow me to drop the environment variable %username% into the code somewhere. Any suggestions?

-Ted

Environment

TWiki version: TWikiRelease04x02x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Windows 2000
Web server: Apache 2.2
Perl version: 5.8
Client OS: Windows XP
Web Browser: IE 6/7
Categories: Authentication

-- TedMorris - 08 Apr 2008

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

This is probably overkill, but there's a plugin that incidentally "provides access to environment variables": TWiki:Plugins.FakeBasicAuthRegPlugin

You won't want its certificate functionality, but maybe you can borrow its environment variable trick?

-- SeanCMorgan - 09 Apr 2008

Closing this question after more than 30 days of inactivity. Feel free to re-open if needed.

-- PeterThoeny - 03 Jun 2008

Change status to:
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2008-06-03 - PeterThoeny
 
  • 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-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.