Tags:
create new tag
view all tags

SID-01046: Authentication Username - Email Address to WikiWord

Status: Answered Answered TWiki version: 5.0.1 Perl version:
Category: CategoryAuthentication Server OS: RedHat Linux Last update: 15 years ago

We are authenticating via LDAP, and thus the username (REMOTE_USER) is an email address in the form of john.doe@domainPLEASENOSPAM.com. We would like the usernames to be in the wikiword format - JohnDoe. Is there any way to use the LocalSite.cfg to change the username automatically? Or do we have to modify the TWikiUserMapping.pm?

-- GavinRehkemper - 2010-12-02

Discussion and Answer

Install the RequireRegistrationPlugin that forces users to register the first time they hit edit on a TWiki page. Set the {Register}{AllowLoginName} configure flag to allow mapping of login name to WikiName. With these two, you can delegate the mapping to the default TWikiUserMapping manager, e.g. the registration page can ask for login name (which you can pre-fill based on REMOTE_USER) and WikiName, and the mapping is stored in the Main.TWikiUsers topic. You might need to set {PasswordManager} to TWiki::Users::LdapUser.

-- PeterThoeny - 2010-12-03

Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the TWiki consultants if you need timely help. We invite you to get involved with the community, it is more likely you get community support if you support the open source project!

-- PeterThoeny - 2011-02-21

      Change status to:
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.
SupportForm
Status Answered
Title Authentication Username - Email Address to WikiWord
SupportCategory CategoryAuthentication
TWiki version 5.0.1
Server OS RedHat Linux
Web server Apache
Perl version

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2011-02-21 - 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.