Tags:
create new tag
view all tags

Question

I am starting with TWiki here; I have set it up to require HTTP Basic authentication via a web server plugin (Kerberos) so REMOTE_USER is always set. I would like to automatically register users who sign in for the first time using information looked up from an LDAP server. From looking through the code, it looks as though I would modify userToWikiName() in TWiki.pm to call a custom routine hacked out of some of the code in the register CGI if it doesn't find an entry in %userToWikiList. Sounds gross. Is there a better way where I can keep all the code in a plugin of my own?

Environment

TWiki version: TWikiRelease04Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Solaris 2.9
Web server: SunOne
Perl version: 5.6.1
Client OS: N/A
Web Browser: N/A
Categories: Registration

-- PeterScott - 28 Dec 2005

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.

You might be able to take the SessionPlugin and modify the logon CGI to do what you want, then rename the new plugin to something like "AutoLogonPlugin" or something like that?

-- SteveRJones - 27 Jan 2006

I've done a similar thing (Kerberos, all authenticated) as described in RegistrationOnDemandHack. However, this has been done based on the upcoming DakarRelease, and I'll have to rework it after this version is released.

If you're just starting with TWiki, it might be worthwile to consider the Release Candidate TWikiRelease04x00x00rc01!

-- HaraldJoerg - 27 Jan 2006

See related HowToForceAuthorizedUsersToRegister

-- PeterThoeny - 07 Mar 2006

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2006-03-07 - 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-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.