This question about Authentication or Authorisation: Answered
Problem mapping wikiname to RCS
We are using TWiki with SSO-authentication, and the email address as login. For the user mapping, we use TWiki::Users::TWikiUserMapping. User mapping in the RCS comment field (tag on top of the page after save), is messed up with TWiki release 4.2.4 (and other 4.2.x releases.) Instead of "Wikiname" (E.g.
NilsHoeimyr) as user tag in the RCS checkin comments, we get a 7-bit ascii string, like: Main.nils_2ehoimyr_40cern_2ech. However, the page signature is generated correctly as "Main.Wikiname", e.g.
NilsHoeimyr.
With 4.1.2, all edited topics are saved correctly, with the wikiname (e.g.
NilsHoeimyr) in the signature and in the page annotation for RCS. The setup of filters in !
LocalSite.cfg is the same in both installations.
To me, this looks like a bug in 4.2.x, where the mapping of wikiname to RCS fails when email address used as login. (cUID to wikiname error?
It appears that this is not the case in foswiki. How Can I get 4.2 to behave correctly?
We did change this intentionally in 4.2 (and in foswiki).
WikiName is not a guaranteed unique identifier, and once we have proper UTF8 support, its useable for rcs either, so we converted the internal ID for the user to a 7bit ASCII 'CUID' which in the
TopicUserMapper is created by encoding the login.
One of the more difficult decisions (and implementations) caused by implementing support for authentication mechanisms like
OpenID (reminds me, i need to port that)
--
SvenDowideit - 07 Feb 2009
Thanks for the reply. I need to change the 4.2 code in order to get the correct behaviour. Is this easy to do? Where is the code that handles this?
--
PeterJones - 09 Feb 2009
Heya Pete,
I've been re-visiting your questing a few times, and to be honest, I really don't understand the issue. I assume something isn't working for you, but I don't know what it is :/
4.2.x and onwards use the cuid in the META data and the rcs (ie nils_2ehoimyr_40cern_2ech) - your question suggests you think this is in error, and, well, its not.
....a few minutes pass....
ooohhh.. "the RCS comment field (tag on top of the page after save)" - you mean the topic history display
gotcha.
ok, so it sounds to me like the rcs and META history is correct, its just getting confused doing the mapping from cUID to
WikiName.
odd - cos it works for me (I'm using email addresses for some of my test Foswiki's). I'll have to think about it a little - in the mean time, you might find it worth while installing a Foswiki nightly build and testing that (
http://fosiki.com/Foswiki_trunk/) because I
just fixed another user mapping issue - which may well work.
--
SvenDowideit - 11 Feb 2009
We've talked since via Email, and i fear that there are quite a number of larger scale fixes in foswiki that are not in twiki, and backporting them will be non-trivial.
--
SvenDowideit - 12 Feb 2009