Item11804: X509UserPlugin update to match current Foswiki core

pencil
Priority: Normal
Current State: Waiting for Feedback
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: X509UserPlugin
Branches:
Reported By: WilliamGallafent
Waiting For: WilliamGallafent
Last Change By: DanielPetersen
Here's a patch that makes X509UserPlugin work again with Foswiki 1.1.5, where it seems the readTopicRaw function of Store is no longer present:

--- X509UserMapping.pm~	2012-04-30 12:12:15.000000000 +0000
+++ X509UserMapping.pm	2012-04-30 12:27:16.000000000 +0000
@@ -666,7 +666,7 @@
           $store->topicExists( $Foswiki::cfg{UsersWebName}, $group )) {
         $expanding{$group} = 1;
         my $text =
-          $store->readTopicRaw( undef,
+          Foswiki::Func::readTopicText( undef,
                                 $Foswiki::cfg{UsersWebName}, $group,
                                 undef );

-- WilliamGallafent - 30 Apr 2012

The attached file is a version of the user mapper updated to work (apparently) with Foswiki 1.1.5. Using this version of the user mapper with the other existing files is working for me, but is not heavily tested and may not work for other use-cases!

I generated it by applying by hand the differences between TopicUserMapping.pm and X509UserMapping.pm of Foswiki 1.0 to TopicUserMapping.pm of Foswiki 1.1.

I have not tested Registration using this User Mapping; log-in and membership of groups appears to be working though.

-- WilliamGallafent - 15 May 2012

Hi William, I've gotten personal certs working on the apache level, and have inserted the X509 user registration topic, as well as replaced the usermappings file with the one below, but the x509 user registration fields are still not populating with values from my cert. Any ideas what I can look at/how to move forward from here?

-- DanielPetersen - 16 Jul 2012
 

ItemTemplate edit

Summary X509UserPlugin update to match current Foswiki core
ReportedBy WilliamGallafent
Codebase 1.1.5
SVN Range
AppliesTo Extension
Component X509UserPlugin
Priority Normal
CurrentState Waiting for Feedback
WaitingFor WilliamGallafent
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
Release01x01Checkins
I Attachment Action Size Date Who Comment
X509UserMapping-1.1.pmpm X509UserMapping-1.1.pm manage 50 K 15 May 2012 - 10:20 WilliamGallafent X509 User Mapper updated to work with Foswiki 1.1
Topic revision: r3 - 16 Jul 2012, DanielPetersen
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy