<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://gwiki3.thatlinuxbox.com/index.php?action=history&amp;feed=atom&amp;title=Troubleshooting_Authentication_Problems</id>
		<title>Troubleshooting Authentication Problems - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://gwiki3.thatlinuxbox.com/index.php?action=history&amp;feed=atom&amp;title=Troubleshooting_Authentication_Problems"/>
		<link rel="alternate" type="text/html" href="http://gwiki3.thatlinuxbox.com/index.php?title=Troubleshooting_Authentication_Problems&amp;action=history"/>
		<updated>2026-04-04T21:35:20Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.27.5</generator>

	<entry>
		<id>http://gwiki3.thatlinuxbox.com/index.php?title=Troubleshooting_Authentication_Problems&amp;diff=5913&amp;oldid=prev</id>
		<title>Dirk: summarizing troubleshooting tips when the (re-)authentication doesn't work</title>
		<link rel="alternate" type="text/html" href="http://gwiki3.thatlinuxbox.com/index.php?title=Troubleshooting_Authentication_Problems&amp;diff=5913&amp;oldid=prev"/>
				<updated>2010-11-27T17:07:33Z</updated>
		
		<summary type="html">&lt;p&gt;summarizing troubleshooting tips when the (re-)authentication doesn&amp;#039;t work&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;To protect against so-called Cross Site Request Forgery (CSRF) attacks, Geeklog 1.5.0 introduced a [[CSRF Protection|security token]] that is attached to each request on an Admin screen. In Geeklog 1.7.0, we then added an option to [[Re-Authentication for expired Tokens|re-authenticate]] in case the token has expired.&lt;br /&gt;
&lt;br /&gt;
If you're running into the problem that either&lt;br /&gt;
* changes to a story, block, configuration option, etc. do not seem to be saved&lt;br /&gt;
* you try to save a change but get a form that asks you to re-authenticate (even though it took you less than 20 minutes to make your change)&lt;br /&gt;
then please check the following settings:&lt;br /&gt;
&lt;br /&gt;
=== Theme up to date? ===&lt;br /&gt;
The security token has to be embedded in each form. This required theme changes. So if you are using a theme that was made for an older version of Geeklog, you will be unable to save your changed.&lt;br /&gt;
&lt;br /&gt;
Try switching to the Professional theme that shipped with your Geeklog version. If that fixes your problem, you need to update your theme.&lt;br /&gt;
&lt;br /&gt;
=== Referrers not sent? ===&lt;br /&gt;
The so-called referrer (part of a standard HTTP header) is embedded in the security token. If it does not match, the token is considered to be invalid.&lt;br /&gt;
&lt;br /&gt;
Check your browser settings to make sure it's sending a referrer. Some browsers offer a &amp;quot;safe browsing mode&amp;quot; or &amp;quot;surf anonymously mode&amp;quot; that is not sending referrers. Try switching that off.&lt;br /&gt;
&lt;br /&gt;
Also, some routers and firewalls will filter referrers. Try disabling such an option.&lt;br /&gt;
&lt;br /&gt;
==== Referrer Test Script ====&lt;br /&gt;
&lt;br /&gt;
Here's a small script to test the referrer:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
&lt;br /&gt;
echo '&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;';&lt;br /&gt;
if (!empty($_SERVER['HTTP_REFERER'])) {&lt;br /&gt;
    echo '&amp;lt;p&amp;gt;Referrer: ' . $_SERVER['HTTP_REFERER'] . '&amp;lt;/p&amp;gt;';&lt;br /&gt;
}&lt;br /&gt;
echo '&amp;lt;p&amp;gt;&amp;lt;a href=&amp;quot;ref.php&amp;quot;&amp;gt;Click me!&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;';&lt;br /&gt;
echo '&amp;lt;/html&amp;gt;&amp;lt;/body&amp;gt;';&lt;br /&gt;
&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save this piece of PHP code in a file &amp;lt;tt&amp;gt;ref.php&amp;lt;/tt&amp;gt;, upload it to your site (into Geeklog's &amp;lt;tt&amp;gt;public_html&amp;lt;/tt&amp;gt; directory) and call it up in your browser. When you click on the text &amp;quot;Click me!&amp;quot;, it should display the URL that you just used to call up the script. If it doesn't then referrers are not working as expected.&lt;br /&gt;
&lt;br /&gt;
=== ServerName ===&lt;br /&gt;
&lt;br /&gt;
If you're using an Apache webserver, make sure that the &amp;lt;tt&amp;gt;ServerName&amp;lt;/tt&amp;gt; directive in Apache config is set correctly, i.e. to the name of the webserver.&lt;br /&gt;
&lt;br /&gt;
For example, if it is set to &amp;quot;localhost&amp;quot; (a common setting) but you call up your site under &amp;quot;example.com&amp;quot;, then the referrer won't match.&lt;br /&gt;
&lt;br /&gt;
=== Known Issues ===&lt;br /&gt;
&lt;br /&gt;
==== OpenID ====&lt;br /&gt;
&lt;br /&gt;
Re-authentication does '''not''' work for users that authenticate against OpenID (it does, however, work with other remote authentication modules like LDAP and LiveJournal).&lt;br /&gt;
&lt;br /&gt;
==== localhost on Mac OS X ====&lt;br /&gt;
&lt;br /&gt;
When using a server running as localhost on Mac OS X, the recreated request may fail due to the current IP address being ::1 in the session but 127.0.0.1 in the recreated request.&lt;br /&gt;
&lt;br /&gt;
'''Solution:''' Use the machine's Bonjour name (''xxx''.local) instead of localhost.&lt;br /&gt;
&lt;br /&gt;
== Also See ==&lt;br /&gt;
&lt;br /&gt;
Related discussions in the geeklog.net forums:&lt;br /&gt;
&lt;br /&gt;
* http://www.geeklog.net/forum/viewtopic.php?showtopic=83649&lt;br /&gt;
* http://www.geeklog.net/forum/viewtopic.php?showtopic=90835&lt;br /&gt;
* http://www.geeklog.net/forum/viewtopic.php?showtopic=85678&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>	</entry>

	</feed>