SID-01046: Authentication Username - Email Address to WikiWord
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
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.