Question
How can I match a user's wiki name to his login name in a
case-insensitive way?
For example, given this line in the
TWikiUsers page:
how can I get TWiki to say the user is
AndrewBanks whether he signs in as abanks, Abanks, or ABanks?
Because I use the
LdapContrib plugin and because LDAP is case-insensitive, he is allowed in however he types his username. But the topics that he edits are not signed
AndrewBanks unless he uses all lower case, as I have in the
TWikiUsers topic. If he types
ABanks then it calls him
Main.ABanks.
Please do not advise me to use the
LdapUserMapping module. It is too slow without
ModPerl, and TWiki is too flakey with
ModPerl
Environment
--
AndrewBanks - 14 Nov 2006
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.
...
I don't know what I'm breaking but this works:
--- Users.pm.bak 2006-11-20 19:03:41.000000000 -0600
+++ Users.pm 2006-11-20 19:05:20.000000000 -0600
@@ -311,6 +311,7 @@
return undef unless $loginUser;
$loginUser =~ s/$TWiki::cfg{NameFilter}//go;
+ $loginUser = lc($loginUser);
return $this->{usermappingmanager}->lookupLoginName($loginUser);
}
--
AndrewBanks - 21 Nov 2006
...
Because Andrew has found a solution for his own installation and the feature request is in consideration for TWiki 4.2, I'm closing this as a support question, and move most parts of the discussion to
Codev.CaseInsensitiveUserMapping.
--
HaraldJoerg - 22 Nov 2006
This has been added to the latest
LdapContrib release.
--
MichaelDaum - 11 Oct 2007
I tested it with the new
LdapContrib? in TWiki 4.1.2. On my system there is the problem that now the login name must be case-sensitive. I need a case-insensitive way to login. It would be greatful, if anybody could help me in this point?
--
PaulBraun - 15 Nov 2007
Closing this support question after more than 30 days of inactivity. Please feel free to open a
new support question if needed.
--
PeterThoeny - 01 Jan 2008