Question
Hi there. We locally use a single sign method to authenticate users. So far, I have got twiki to nicely work with it: People authenticate to the webserver/browser for edit/save etc scripts, using our auth method in .htaccess, twiki sees those ID's, I can map them in the
TWikiUsers topic to twiki names etc ... all working so far.
Now users obviously have to register first to generate the entry in
TWikiUsers for the mapping to work inside TWiki and to make use of any TWiki internal auth features.
I would like to modify the TWiki registration process, so it does not ask for instance about offices. It also should automaticaly fill out the 'login name' with the ID I have from the auth I described initially and not ask the users for one as they won't necessarily know their ID the single sign on process uses etc. All I need is their real name and the autogenerated TWiki Name
How would I do this? Do I have to hack the register perl script? I'm not exactly sure what I'm allowed to delete/not use etc, so twiki doesn't break. Then again I can't find any simple elegant configuration method for the register process
Environment
--
PhilippeSteindl - 26 Oct 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.
Office location:
- Simply remove this form field from the registration form.
Pre-filled login name:
- Fix all links to the TWikiRegistration form to point to the authenticated version (using
viewauth instead of view). Link: [[%SCRIPTURL%/viewauth%SCRIPTSUFFIX%/%TWIKIWEB%/TWikiRegistration][TWiki Registration]].
- The value of the login name field is already prefilled with
%REMOTE_USER%. This should be identical to the login %USERNAME%=.
- Pre-filled real name: If you want to go fancy you could pull the real name from your directory and pre-fill the First & last name field. This can be done via a Plugin (see LdapPlugin)
Note that the upcoming
DakarRelease has some changes to the registration process, you might need to fix your setup when you upgrade.
--
PeterThoeny - 26 Oct 2005