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
--
PeterScott - 28 Dec 2005
Answer
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