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 have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list 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

 
Topic revision: r4 - 2006-03-07 - PeterThoeny
 
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.