Tags:
create new tag
view all tags

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 smile

Environment

TWiki version: TWikiRelease04Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Solaris 8
Web server: apache 1.3.27
Perl version: mod_perl 1.27 + 5.8.0
Client OS: any
Web Browser: any
Categories: Authentication, Authorisation

-- PhilippeSteindl - 26 Oct 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.

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

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2005-10-26 - 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.