From f839d996949c568db6f1123b1e2001f3a2855513 Mon Sep 17 00:00:00 2001 From: "http://www.lunix.com.au/" Date: Mon, 8 Jun 2009 00:15:53 -0400 Subject: add in new openid forum question --- ...s_it_possible_to_NOT_add_openid2_meta_tags.mdwn | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn (limited to 'doc/forum') diff --git a/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn b/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn new file mode 100644 index 000000000..9b7400246 --- /dev/null +++ b/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn @@ -0,0 +1,22 @@ +### "meta openid" problems + +I have add the followning to _index.mdwn_ on my site. + + \[[!meta openid="http://certifi.ca/lunix" + server="http://certifi.ca/_serve"]] + +This resulted in the following being added to my site + + + + + --> + +Perhaps I have done something wrong but this fails to work when I try to log in to several sites using my sites url as my login. +If I edit index.html and remove the two openid2 lines all works fine. +**Is there a way to only add openid version 1 tags to my index.html ? +Or a way to make it work the way it is ?** + +Cheers +Mick +\_lunix_ -- cgit v1.2.3 From 375cf730b21b731412181fb6975b4dae0dbc7ceb Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 8 Jun 2009 19:08:06 -0400 Subject: response --- doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'doc/forum') diff --git a/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn b/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn index 9b7400246..06b4c946e 100644 --- a/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn +++ b/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn @@ -20,3 +20,14 @@ Or a way to make it work the way it is ?** Cheers Mick \_lunix_ + +> Before I think about adding a way to not add the openid 2 tags, +> I'd like to know what the problem is. Is there something +> wrong with the tags? Does your openid provider not support +> openid 2, and the site you are logging into sees the openid 2 tags +> and uses it, not falling back to openid 1? +> +> Since certifi.ca is a public openid provider (run by a +> guy I know even!), I should be +> able to reproduce your problem if you can tell me what +> site(s) you are trying to log into. --[[Joey]] -- cgit v1.2.3 From dabb60d060d897fbaae6523f8f8dc8b3de0e2624 Mon Sep 17 00:00:00 2001 From: "http://www.lunix.com.au/" Date: Mon, 8 Jun 2009 20:24:36 -0400 Subject: add my response --- doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'doc/forum') diff --git a/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn b/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn index 06b4c946e..7129563ab 100644 --- a/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn +++ b/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn @@ -31,3 +31,17 @@ Mick > guy I know even!), I should be > able to reproduce your problem if you can tell me what > site(s) you are trying to log into. --[[Joey]] + +---------- + +I was using _phpMyID_ and its not _openid2_ compliant so I switched to certifi.ca to counteract that but I really +want to go back to running my own provider. +I can't login to identi.ca.unless I comment out the openid2 lines.(this may be there problem, I get sent to certifi.ca's site and redirected back to identi.ca) +I will test all the different openid enabled sites I log into today and see what happens. +It seems that since I have moved my site to its final location and made it live over night I am able to login to most places now. +I do not have a proper understanding of the inner workings of openid so not exactly sure what part is failing but I think the problem +lays with the consumers not falling back to the openid1 tags when they are openid1 only consumers. --[Mick](http://www.lunix.com.au) + + + + -- cgit v1.2.3 From 3f9dd729b3f89c25689bb96d55d71d3eb232951f Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 8 Jun 2009 20:53:23 -0400 Subject: resp --- doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'doc/forum') diff --git a/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn b/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn index 7129563ab..1a6d01cd3 100644 --- a/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn +++ b/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn @@ -42,6 +42,8 @@ It seems that since I have moved my site to its final location and made it live I do not have a proper understanding of the inner workings of openid so not exactly sure what part is failing but I think the problem lays with the consumers not falling back to the openid1 tags when they are openid1 only consumers. --[Mick](http://www.lunix.com.au) - - - +> So, just to clarify, certifi.ca works ok (I verified this, logging into identi.ca using it). +> You had the problem running your own openid provider which did not support 2.0, in which case, +> consumers seem justified in not falling back (guess; I don't know the 2.0 spec). +> The only way this seems fixable is to add an option to meta to allow disabling openid 2. Which +> should be easy enough to do. --[[Joey]] -- cgit v1.2.3 From c2cf78dd4b70e9fa379ae0eee9034fa35db1b521 Mon Sep 17 00:00:00 2001 From: "http://www.lunix.com.au/" Date: Mon, 8 Jun 2009 21:18:36 -0400 Subject: add my response --- doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc/forum') diff --git a/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn b/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn index 1a6d01cd3..766eae450 100644 --- a/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn +++ b/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn @@ -47,3 +47,7 @@ lays with the consumers not falling back to the openid1 tags when they are openi > consumers seem justified in not falling back (guess; I don't know the 2.0 spec). > The only way this seems fixable is to add an option to meta to allow disabling openid 2. Which > should be easy enough to do. --[[Joey]] + +I can't log into identi.ca with openid2 tags. strange. I will look at that again today. +Having the option to disable openid2 tags would be perfect. +Thanks Joey. --[Mick](http://www.lunix.com.au) -- cgit v1.2.3 From 7a22ead98ebe231943a9e1a1873640c372f25077 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 8 Jun 2009 21:25:17 -0400 Subject: update --- doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc/forum') diff --git a/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn b/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn index 1a6d01cd3..a364449f9 100644 --- a/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn +++ b/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn @@ -47,3 +47,9 @@ lays with the consumers not falling back to the openid1 tags when they are openi > consumers seem justified in not falling back (guess; I don't know the 2.0 spec). > The only way this seems fixable is to add an option to meta to allow disabling openid 2. Which > should be easy enough to do. --[[Joey]] + +>> Actually, it seems that identi.ca / certifi.ca do +>> not interoperate when using openid2. It actually +>> fails half the time, and succeeds half the time; +>> seems to be picking openid1 and openid2 randomly and failing +>> on the latter. --[[Joey]] -- cgit v1.2.3 From bf55a7fbb1f27ca815ac1e2ee04867686851a134 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 8 Jun 2009 21:40:06 -0400 Subject: meta: Add openid delegate parameter to allow delegating only openid or openid2. --- IkiWiki/Plugin/meta.pm | 13 +++++++++---- debian/changelog | 4 +++- doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn | 3 +++ doc/ikiwiki/directive/meta.mdwn | 3 +++ 4 files changed, 18 insertions(+), 5 deletions(-) (limited to 'doc/forum') diff --git a/IkiWiki/Plugin/meta.pm b/IkiWiki/Plugin/meta.pm index cc5455d64..b2295923e 100644 --- a/IkiWiki/Plugin/meta.pm +++ b/IkiWiki/Plugin/meta.pm @@ -163,17 +163,22 @@ sub preprocess (@) { "\" type=\"text/css\" />"; } elsif ($key eq 'openid') { + my $delegate=0; # both by default + if (exists $params{delegate}) { + $delegate = 1 if lc $params{delegate} eq 'openid'; + $delegate = 2 if lc $params{delegate} eq 'openid2'; + } if (exists $params{server} && safeurl($params{server})) { push @{$metaheaders{$page}}, ''; + '" rel="openid.server" />' if $delegate ne 2; push @{$metaheaders{$page}}, ''; + '" rel="openid2.provider" />' if $delegate ne 1; } if (safeurl($value)) { push @{$metaheaders{$page}}, ''; + '" rel="openid.delegate" />' if $delegate ne 2; push @{$metaheaders{$page}}, ''; + '" rel="openid2.local_id" />' if $delegate ne 1; } if (exists $params{"xrds-location"} && safeurl($params{"xrds-location"})) { push @{$metaheaders{$page}}, ' Tue, 02 Jun 2009 17:03:41 -0400 diff --git a/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn b/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn index 16382a936..d926cebed 100644 --- a/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn +++ b/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn @@ -60,3 +60,6 @@ Thanks Joey. --[Mick](http://www.lunix.com.au) >> Not clear to me if identi.ca or certifi.ca is at failt, >> but luckily he runs both.. >> --[[Joey]] + +>> ikiwiki's next release will allow adding 'delegate=1' to the +>> meta directive to only delegate to openid1. --[[Joey]] diff --git a/doc/ikiwiki/directive/meta.mdwn b/doc/ikiwiki/directive/meta.mdwn index f29a118bf..7a7b0fa19 100644 --- a/doc/ikiwiki/directive/meta.mdwn +++ b/doc/ikiwiki/directive/meta.mdwn @@ -78,6 +78,9 @@ Supported fields: server="http://www.myopenid.com/server" xrds-location="http://www.myopenid.com/xrds?username=joeyh.myopenid.com""]] + By default this will delegate for both `openid` and `openid2`. To only + delegate for one, add a parameter such as `delegate=openid`. + * link Specifies a link to another page. This can be used as a way to make the -- cgit v1.2.3 From 9874a13fbfb9eef2742ae4a9a9d65972e5587db0 Mon Sep 17 00:00:00 2001 From: "http://www.lunix.com.au/" Date: Mon, 8 Jun 2009 21:40:19 -0400 Subject: add my response --- doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc/forum') diff --git a/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn b/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn index 16382a936..56b1b6830 100644 --- a/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn +++ b/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn @@ -60,3 +60,5 @@ Thanks Joey. --[Mick](http://www.lunix.com.au) >> Not clear to me if identi.ca or certifi.ca is at failt, >> but luckily he runs both.. >> --[[Joey]] +Ahh so it's not just me. +It's handy having contacts in the _right_ places. --[Mick](http://www.lunix.com.au) -- cgit v1.2.3 From 1a880b7d7bcb8da5b1b07baf0fabecac3892b219 Mon Sep 17 00:00:00 2001 From: "http://www.lunix.com.au/" Date: Mon, 8 Jun 2009 21:50:13 -0400 Subject: add my response and thanks --- doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc/forum') diff --git a/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn b/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn index bb250eb42..450785d60 100644 --- a/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn +++ b/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn @@ -66,3 +66,6 @@ It's handy having contacts in the _right_ places. --[Mick](http://www.lunix.com >> ikiwiki's next release will allow adding 'delegate=1' to the >> meta directive to only delegate to openid1. --[[Joey]] + +## awesome. +--[Mick](http://www.lunix.com.au) -- cgit v1.2.3 From df9b11968b73bba8baf6d3a92bc21c48aa9d1915 Mon Sep 17 00:00:00 2001 From: "http://www.lunix.com.au/" Date: Tue, 9 Jun 2009 22:31:42 -0400 Subject: simple format tidyup --- doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'doc/forum') diff --git a/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn b/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn index 450785d60..e952263a3 100644 --- a/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn +++ b/doc/forum/is_it_possible_to_NOT_add_openid2_meta_tags.mdwn @@ -15,11 +15,7 @@ This resulted in the following being added to my site Perhaps I have done something wrong but this fails to work when I try to log in to several sites using my sites url as my login. If I edit index.html and remove the two openid2 lines all works fine. **Is there a way to only add openid version 1 tags to my index.html ? -Or a way to make it work the way it is ?** - -Cheers -Mick -\_lunix_ +Or a way to make it work the way it is ?** --[Mick](http://www.lunix.com.au) > Before I think about adding a way to not add the openid 2 tags, > I'd like to know what the problem is. Is there something -- cgit v1.2.3 From c25371b3114137368a89b5c77c92e316f0d16475 Mon Sep 17 00:00:00 2001 From: Jon Dowland Date: Fri, 19 Jun 2009 14:19:45 +0100 Subject: speeding up ikiwiki: advice sought --- doc/forum/speeding_up_ikiwiki.mdwn | 75 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 doc/forum/speeding_up_ikiwiki.mdwn (limited to 'doc/forum') diff --git a/doc/forum/speeding_up_ikiwiki.mdwn b/doc/forum/speeding_up_ikiwiki.mdwn new file mode 100644 index 000000000..c9ccc6fb1 --- /dev/null +++ b/doc/forum/speeding_up_ikiwiki.mdwn @@ -0,0 +1,75 @@ +My website takes a fairly long time to render. It takes a long time to do +things like add pages, too. I'd like to try and understand what takes the +time and what I might be able to do to speed things up. + +I have 1,234 objects on my site (yikes!). 717 are items under "/log" which +I think might be the main culprit because there are some complex pagespecs +operating in that area (e.g. log/YYYY/MM/DD, YYYY/MM and YYYY for YYYY >= +2003, YYYY <= 2008 which include every page under log/ which was modified +in the corresponding YYYY or YYYY/MM or YYYY/MM/DD). There is very little +linking between the world outside of /log and that within it. + +I was interested in generating a graphical representation of ikiwiki's idea of +page inter-dependencies. I started by looking at the '%links' hash using the +following plugin: + + #!/usr/bin/perl + package IkiWiki::Plugin::deps; + + use warnings; + use strict; + use IkiWiki 3.00; + + + sub import { + hook(type => "format", id => "deps", call => \&fooble); + } + + my $hasrun = 0; + + sub fooble ($$) { + if(0 == $hasrun) { + $hasrun = 1; + open MYFILE, ">/home/jon/deps.dot"; + foreach my $key (keys %links) { + my $arrref = $links{$key}; + foreach my $page (@$arrref) { + print MYFILE "$key -> $page;\n"; + } + } + close MYFILE; + } + } + + 1 + +The resulting file was enormous: 2,734! This turns out to be because of the following code in scan() in Render.pm: + + if ($config{discussion}) {$ + # Discussion links are a special case since they're + # not in the text of the page, but on its template. + $links{$page}=[ $page."/".gettext("discussion") ]; + +Worst case (no existing discussion pages) this will double the number of link +relationships. Filtering out all of those, the output drops to 1,657. This +number is still too large to really visualize: the graphviz PNG and PDF output +engines segfault for me, the PS one works but I can't get any PS software to +render it without exploding. + +Now, the relations in the links hash are not the same thing as IkiWiki's notion of dependencies. Can anyone point me at that data structure / where I might be able to add some debugging foo to generate a graph of it? + +Once I've figured out that I might be able to optimize some pagespecs. I +understand pagespecs are essentially translated into sequential perl code. I +might gain some speed if I structure my complex pagespecs so that the tests +which have the best time complexity vs. "pages ruled out" ratio are performed +first. + +I might also be able to find some dependencies which shouldn't be there and +remove the dependency. + +In general any advice people could offer on profiling ikiwiki would be great. +I did wonder about invoking the magic profiling arguments to perl via the CGI +wrapper. + + +-- [[Jon]] -- cgit v1.2.3 From 9a5e3fac022dc5745eac51dd45f79b07f7e24eba Mon Sep 17 00:00:00 2001 From: "http://smcv.pseudorandom.co.uk/" Date: Sat, 20 Jun 2009 14:14:36 -0400 Subject: explain %depends and suggest [[!inline quick=yes]] --- doc/forum/speeding_up_ikiwiki.mdwn | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'doc/forum') diff --git a/doc/forum/speeding_up_ikiwiki.mdwn b/doc/forum/speeding_up_ikiwiki.mdwn index c9ccc6fb1..e390f7b71 100644 --- a/doc/forum/speeding_up_ikiwiki.mdwn +++ b/doc/forum/speeding_up_ikiwiki.mdwn @@ -73,3 +73,19 @@ wrapper. -- [[Jon]] + +> Dependencies go in the `%IkiWiki::depends` hash, which is not exported. It +> can also be dumped out as part of the wiki state - see [[tips/inside_dot_ikiwiki]]. +> +> It's a map from page name to increasingly complex pagespec, although +> the `optimize-depends` branch in my git repository changes that to a +> map from a page name to a *list* of pagespecs which are automatically +> or'd together for use (this at least means duplicates can be weeded out). +> +> See [[todo/should_optimize_pagespecs]] for more on that. +> +> I've been hoping to speed up IkiWiki too - making a lot of photo albums +> with my [[plugins/contrib/album]] plugin makes it pretty slow. +> +> One thing that I found was a big improvement was to use `quick=yes` on all +> my `archive=yes` [[ikiwiki/directive/inline]]s. --[[smcv]] -- cgit v1.2.3 From 9cd86bc2db838bb2f0191dfcec9125ba222615a5 Mon Sep 17 00:00:00 2001 From: "http://smcv.pseudorandom.co.uk/" Date: Sat, 20 Jun 2009 14:15:31 -0400 Subject: correct link spelling --- doc/forum/speeding_up_ikiwiki.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/forum') diff --git a/doc/forum/speeding_up_ikiwiki.mdwn b/doc/forum/speeding_up_ikiwiki.mdwn index e390f7b71..0b2164238 100644 --- a/doc/forum/speeding_up_ikiwiki.mdwn +++ b/doc/forum/speeding_up_ikiwiki.mdwn @@ -82,7 +82,7 @@ wrapper. > map from a page name to a *list* of pagespecs which are automatically > or'd together for use (this at least means duplicates can be weeded out). > -> See [[todo/should_optimize_pagespecs]] for more on that. +> See [[todo/should_optimise_pagespecs]] for more on that. > > I've been hoping to speed up IkiWiki too - making a lot of photo albums > with my [[plugins/contrib/album]] plugin makes it pretty slow. -- cgit v1.2.3 From 24f22973f0db9d2a5a1964264eaf7992f21af270 Mon Sep 17 00:00:00 2001 From: "http://adam.shand.net/" Date: Tue, 7 Jul 2009 07:19:22 -0400 Subject: --- .../Can_OpenID_users_be_adminusers__63__.mdwn | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 doc/forum/Can_OpenID_users_be_adminusers__63__.mdwn (limited to 'doc/forum') diff --git a/doc/forum/Can_OpenID_users_be_adminusers__63__.mdwn b/doc/forum/Can_OpenID_users_be_adminusers__63__.mdwn new file mode 100644 index 000000000..2e24b3e06 --- /dev/null +++ b/doc/forum/Can_OpenID_users_be_adminusers__63__.mdwn @@ -0,0 +1,23 @@ +I've just finished an upgrade to 3.141 and am trying to give myself admin rights to play with the new webadmin features. My login is via OpenID but from reading on the wiki I believe that OpenID users should be able to be granted admin rights. However I'm obviously doing something wrong as when I click on the "Preferences" link at the top of the page I don't see any admin features. + +My login is: http://adam.shand.net/ + +In .ikiwiki/userdb I see: + +> adam@shand.net +> email
+> password
+> locked_pages
+> banned
+> 1229722296
+> regdate
+> http://adam.shand.net/
+ +And in my config file I have: + +> adminuser => [qw{http://adam.shand.net/}], + +Any pointers to what I'm doing wrong would be much appreciated. + +Thanks, +Adam. -- cgit v1.2.3 From f35f7358e0d86e20031e74ab25f61ae03352fdc6 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 7 Jul 2009 13:35:24 -0400 Subject: response --- doc/forum/Can_OpenID_users_be_adminusers__63__.mdwn | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'doc/forum') diff --git a/doc/forum/Can_OpenID_users_be_adminusers__63__.mdwn b/doc/forum/Can_OpenID_users_be_adminusers__63__.mdwn index 2e24b3e06..83c95d65d 100644 --- a/doc/forum/Can_OpenID_users_be_adminusers__63__.mdwn +++ b/doc/forum/Can_OpenID_users_be_adminusers__63__.mdwn @@ -21,3 +21,15 @@ Any pointers to what I'm doing wrong would be much appreciated. Thanks, Adam. + +> This is certianly supposed to work. For example, the admin +> user on my ikiwikis is `http://joey.kitenet.net/` +> +> The only caveat I know of to make it work is that the +> adminuser openid url has to exactly match the openid url that +> ikiwiki sees when you log in. Including any trailing slash, +> and the `http://`. +> +> Hmm, it's possible that the new version of the openid library +> has broken it. I also no longer show up as admin. There's a related +> bug [[bugs/openid_no_longer_pretty-prints_OpenIDs]]. --[[Joey]] -- cgit v1.2.3 From 272ec592936e76eded7be390a401ac84598351fa Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 7 Jul 2009 13:40:53 -0400 Subject: I was wrong about it being broken for me. --- doc/forum/Can_OpenID_users_be_adminusers__63__.mdwn | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'doc/forum') diff --git a/doc/forum/Can_OpenID_users_be_adminusers__63__.mdwn b/doc/forum/Can_OpenID_users_be_adminusers__63__.mdwn index 83c95d65d..01137db37 100644 --- a/doc/forum/Can_OpenID_users_be_adminusers__63__.mdwn +++ b/doc/forum/Can_OpenID_users_be_adminusers__63__.mdwn @@ -28,8 +28,4 @@ Adam. > The only caveat I know of to make it work is that the > adminuser openid url has to exactly match the openid url that > ikiwiki sees when you log in. Including any trailing slash, -> and the `http://`. -> -> Hmm, it's possible that the new version of the openid library -> has broken it. I also no longer show up as admin. There's a related -> bug [[bugs/openid_no_longer_pretty-prints_OpenIDs]]. --[[Joey]] +> and the `http://`. --[[Joey]] -- cgit v1.2.3 From bdc5b9c8443e08a48cafde3d8e79c0699f2a21e9 Mon Sep 17 00:00:00 2001 From: "http://adam.shand.net/" Date: Wed, 8 Jul 2009 02:59:00 -0400 Subject: --- doc/forum/Can_OpenID_users_be_adminusers__63__.mdwn | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc/forum') diff --git a/doc/forum/Can_OpenID_users_be_adminusers__63__.mdwn b/doc/forum/Can_OpenID_users_be_adminusers__63__.mdwn index 01137db37..6f0d931df 100644 --- a/doc/forum/Can_OpenID_users_be_adminusers__63__.mdwn +++ b/doc/forum/Can_OpenID_users_be_adminusers__63__.mdwn @@ -29,3 +29,5 @@ Adam. > adminuser openid url has to exactly match the openid url that > ikiwiki sees when you log in. Including any trailing slash, > and the `http://`. --[[Joey]] + +>> Hrm, it's not working. I'm sure I've made a silly mistake somewhere but I've looked and looked and just can't find it. Any suggestions on where to look for debugging information would be much appreciated. -- [[Adam]] -- cgit v1.2.3 From 499c807ea740bb6e675b0d28bc5b603b2d4dd58e Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 8 Jul 2009 13:08:52 -0400 Subject: response --- .../Can_OpenID_users_be_adminusers__63__.mdwn | 36 +++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) (limited to 'doc/forum') diff --git a/doc/forum/Can_OpenID_users_be_adminusers__63__.mdwn b/doc/forum/Can_OpenID_users_be_adminusers__63__.mdwn index 6f0d931df..ca80c93f4 100644 --- a/doc/forum/Can_OpenID_users_be_adminusers__63__.mdwn +++ b/doc/forum/Can_OpenID_users_be_adminusers__63__.mdwn @@ -29,5 +29,39 @@ Adam. > adminuser openid url has to exactly match the openid url that > ikiwiki sees when you log in. Including any trailing slash, > and the `http://`. --[[Joey]] + +>> Hrm, it's not working. I'm sure I've made a silly mistake somewhere but +>> I've looked and looked and just can't find it. Any suggestions on where +>> to look for debugging information would be much appreciated. -- [[Adam]] ->> Hrm, it's not working. I'm sure I've made a silly mistake somewhere but I've looked and looked and just can't find it. Any suggestions on where to look for debugging information would be much appreciated. -- [[Adam]] +>>> Well, you could use this patch to add debugging info about admin +>>> username comparisons: + +
+diff --git a/IkiWiki/UserInfo.pm b/IkiWiki/UserInfo.pm
+index 0bf100a..77b467a 100644
+--- a/IkiWiki/UserInfo.pm
++++ b/IkiWiki/UserInfo.pm
+@@ -71,6 +71,8 @@ sub userinfo_setall ($$) {
+ sub is_admin ($) {
+ 	my $user_name=shift;
+ 
++	print STDERR "is_admin test @{$config{adminuser}} vs $user_name: ".(grep { $_ eq $user_name } @{$config{adminuser}})."\n";
++
+ 	return grep { $_ eq $user_name } @{$config{adminuser}};
+ }
+ 
+
+ +>>>> After applying that change to what is probably +>>>> `/usr/share/perl5/IkiWiki/UserInfo.pm` on your system, +>>>> when you go to the preferences page it should log in your web server's +>>>> error.log, something like this: + + [Wed Jul 08 12:54:35 2009] [error] [client 127.0.1.1] is_admin test http://joey.kitenet.net/ vs http://joey.kitenet.net/: 1 + +>>>> So you can see if the two usernames/openids match. If the end is "0", +>>>> they don't match. If nothing is logged, you have not enabled the websetup plugin. +>>>> If the end if "1" you should see the "Wiki Setup" button, if not the +>>>> problem is not in determining if you're an admin, but elsewhere.. +>>>> --[[Joey]] -- cgit v1.2.3 From 78b6a8cc76a6fc515d2edba4959594c765df3da0 Mon Sep 17 00:00:00 2001 From: "http://adam.shand.net/" Date: Fri, 10 Jul 2009 01:19:40 -0400 Subject: --- doc/forum/Can_OpenID_users_be_adminusers__63__.mdwn | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc/forum') diff --git a/doc/forum/Can_OpenID_users_be_adminusers__63__.mdwn b/doc/forum/Can_OpenID_users_be_adminusers__63__.mdwn index ca80c93f4..7599e71e5 100644 --- a/doc/forum/Can_OpenID_users_be_adminusers__63__.mdwn +++ b/doc/forum/Can_OpenID_users_be_adminusers__63__.mdwn @@ -65,3 +65,5 @@ index 0bf100a..77b467a 100644 >>>> If the end if "1" you should see the "Wiki Setup" button, if not the >>>> problem is not in determining if you're an admin, but elsewhere.. >>>> --[[Joey]] + +I was being incredibly stupid and missed that websetup is a **plugin** and thus needed to be enabled. Many thanks for your patient assistance, by helping me eliminate the unlikely it eventually led me to the obvious. Cheers. -- [[Adam]] -- cgit v1.2.3 From 295a9e11cd58f92b105107398e9b78081ed55253 Mon Sep 17 00:00:00 2001 From: "http://adam.shand.net/" Date: Wed, 15 Jul 2009 06:14:31 -0400 Subject: --- doc/forum/Accessing_meta_values_in_pages__63__.mdwn | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 doc/forum/Accessing_meta_values_in_pages__63__.mdwn (limited to 'doc/forum') diff --git a/doc/forum/Accessing_meta_values_in_pages__63__.mdwn b/doc/forum/Accessing_meta_values_in_pages__63__.mdwn new file mode 100644 index 000000000..78594f912 --- /dev/null +++ b/doc/forum/Accessing_meta_values_in_pages__63__.mdwn @@ -0,0 +1,8 @@ +If I set a meta value on a page (lets say \[[!meta author="Adam Shand"]] is there some way to retrieve the value of author and put it somewhere visible on the page? Eg. can I write: + +author: $author + +I know I can update the raw templates but it'd be nice to be able to do this in the pages them selves. + +Cheers, +Adam. -- cgit v1.2.3