Item11804: X509UserPlugin update to match current Foswiki core
Priority: Normal
Current State: Waiting for Feedback
Released In: n/a
Target Release: n/a
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