SID-02138: Wikiusername not displayed after authentication
| Status: |
Answered |
TWiki version: |
6.0.1 |
Perl version: |
|
| Category: |
CategoryAuthentication |
Server OS: |
SLES11.2 |
Last update: |
10 years ago |
Installed TWiki 6.0.1 but unable to see the wikiusername after log in. What is seen instead is the employee ID which is entered in the authentication page for log-in.
In older version of TWiki (5.0.1) we could see the wikiusername after log-in.
--
himangshu dutta - 2015-12-24
Discussion and Answer
I guess that you are using
ApacheLogin as login manager? In that case, you need to activate
{Register}{AllowLoginName} in your TWiki configuration.
--
Harald Jörg - 2015-12-24
Hi Harald Jorg,
I am sorry for the delayed response. Thanks for your suggestion.
I edited the
LocalSite.cfg file and added the line
$TWiki::cfg{Register}{AllowLoginName} = 1; after the below mentioned line
$TWiki::cfg{Register}{EnableNewUserRegistration} = 1;
Then restarted apache and it didn't work. I still get my ID and not my Username. Please suggest.
Regards
Himangshu
--
himangshu dutta - 2016-01-18
Well, this is a bit of guesswork, but let my try anyway.
Have you imported your
TWikiUsers topic and the
data/.htpasswd file from your 5.0.1 installation or do you want your users to register anew for 6.0.1?
I guess you tried with a new registration for 6.0.1. In that case, there's something you can do.
The setting
$TWiki::cfg{Register}{EnableNewUserRegistration} = 1; works during the registration process: When a user registers, then (s)he needs to provide a wiki username and a login name. Changing the setting only "works" for new registrations!
But you can fix it by hand: Have a look at your
Main.TWikiUsers topic. For every registered user, it should have an entry looking like this:
- WikiName - employeeid - 2016-01-18
I guess yours is looking like that:
- WikiName - WikiName - 2016-01-18
--
Harald Jörg - 2016-01-18
Yes You are right. I have installed the new version for a different server and have new registrations.
I found that the old site had
TWikiUsers topic entries like
WikiName - employeeid - 2016-01-18 and the new site has entries like
WikiName -
WikiName - 2016-01-18 (like you said).
Can I change anything now for the desired behavior ?
--
himangshu dutta - 2016-01-19
With
AllowLoginNames in place, new registrations should give the desired behaviour. For peolpe who already have registered with your new server, there are two ways:
- If you know the employee ids - for example from your previous installation -, then you can manually edit
TWikiUsers (as a TWiki administrator) and replace the second WikiName in every line by the corresponding employeeid.
- Or you can delete the users' topics and remove the bad lines from
TWikiUsers and ask them to register again (safe but tedious).
--
Harald Jörg - 2016-01-19
I edited the
LocalSite.cfg file and added the line $TWiki::cfg{Register}{AllowLoginName} = 1 and then I edited the
TWikiUsers file and replaced the second
WikiName by the corresponding employee ID. It works fine now.
Thank you very much for your help Harald.
--
himangshu dutta - 2016-03-15
--
himangshu dutta - 2016-03-15
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.