diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-07-08 13:08:52 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-07-08 13:08:52 -0400 |
commit | 499c807ea740bb6e675b0d28bc5b603b2d4dd58e (patch) | |
tree | d1dad1996cf43d7a5e5244efcf721ec5cb861d93 | |
parent | 98ae5a15da8223f4a2952d9aad94c7dc1708e6cc (diff) | |
download | ikiwiki-499c807ea740bb6e675b0d28bc5b603b2d4dd58e.tar ikiwiki-499c807ea740bb6e675b0d28bc5b603b2d4dd58e.tar.gz |
response
-rw-r--r-- | doc/forum/Can_OpenID_users_be_adminusers__63__.mdwn | 36 |
1 files changed, 35 insertions, 1 deletions
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: + +<pre> +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}}; + } + +</pre> + +>>>> 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]] |