On 11/23/05, <b class="gmail_sendername">Patrick R. Michaud</b> &lt;<a href="mailto:pmichaud@pobox.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">pmichaud@pobox.com</a>&gt; wrote:<div><span class="gmail_quote">
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, Nov 23, 2005 at 06:18:07PM -0500, Bronwyn Boltwood wrote:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;The authtest site definitely works better than my test sites have --<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;logging in and out seems to work. (Yes, this is impressive after what I've
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;been seeing.)&nbsp;&nbsp;But it's not a representative test yet, since only editing<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;is passworded.<br><br>OOPS!&nbsp;&nbsp;I commented those out when troubleshooting the &quot;id:*&quot; bug<br>and forgot to uncomment them.&nbsp;&nbsp;It's fixed now.
</blockquote><div><br>
It's okay; we all do that from time to time. :)<br>
<br>
Here's what happened when I played with our test installation some more.<br>
1. edited Site.Login to have text of:<br>
<br>
(:if auth edit:)<br>
%green%Welcome, '''{$Author}'''<br>
(:ifend:)<br>
<br>
(:if auth admin:)<br>
%blue%You have admin rights.<br>
(:ifend:)<br>
<br>
2. set attributes on Site.Login to have read password of id:* and was logged out by system.<br>
3. logged in as bronwyn successfully; logged out.<br>
4. tried to log in as gerry.&nbsp; no welcome message or logout stuff
in sidebar.&nbsp; reload page -- same.&nbsp; went to homepage, and now
I can see that I'm logged in as gerry.&nbsp; <br>
5. went back to login page.&nbsp; no welcome message as there should
be, but not asked for password.&nbsp; logout block in sidebar is gone
again.<br>
6. hit edit.&nbsp; was asked for name and password.&nbsp; gave gerry's
credentials, submitted, page reloads still wanting credentials.&nbsp;
tried bronwyn account just in case.&nbsp; same thing.&nbsp; tried
webmaster and pat accounts; same.<br>
7. went back to homepage; logged out.&nbsp; logged in as pat with same
oddities as described earlier for gerry.&nbsp; edited a few pages
successfully.&nbsp; went back to login page; same behaviour as for
gerry. <br>
8. tried to edit login page; got in with webmaster password.&nbsp; all
seemed well so got out of edit, and page text was displayed as it
should be.<br>
9. logged out and logged in again as bronwyn.&nbsp; login page behaves as expected.<br>
<br>
Contrary to points 4, 5, and 7, I should be getting the welcome message
and other sections wrapped in (:if auth edit:) even as a lowly user,
but I'm not.&nbsp; This is one of the problems I was having with my own
installs.&nbsp; Points 6 and 8 are aggravatingly familiar too..<br>
</div><br>
I wonder how hard it is to have error messages for &quot;bad password and
username combination&quot; and &quot;insufficient rights&quot;.&nbsp; They'd be
helpful.<br>
<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&gt;&nbsp;&nbsp;&nbsp;&nbsp;- The login mechanism can be either:<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- The login script from the cookbook.&nbsp;&nbsp;Its best point is that it<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;redirects to the page the user was at.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- A read-protected Site.Login
, for id:* or whatever the sitewide edit<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;password is.&nbsp;&nbsp;Right now, since the attr and admin passwords in your test<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;site are locked, I can't try making one to see how this works.<br><br>PmWiki 2.1 will have ?action=login available, which will display
<br>Site.AuthForm under the current url.&nbsp;&nbsp;I think I'll do this for<br>2.1.beta4.</blockquote><div><br>
Cool.&nbsp; Not too far away then.&nbsp; Hopefully before I need to give my &quot;how to edit&quot; tutorial?&nbsp; :)<br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Is there some url redirection taking place in the Apache<br>configuration somewhere...?&nbsp;&nbsp;Redirects tend to play havoc
<br>with posted form values, and that might be why you're never<br>getting past the login form.&nbsp;&nbsp;It might be nothing -- but<br>I'm not sure why Apache is setting REDIRECT values for<br>a url that seems to be already pointing to the correct target.
<br></blockquote></div><br>
I'm not certain, but I have a guess.&nbsp; I have a regular account
with add-on domains (rather than a proper reseller's account), and
grinningfrog is an add-on domain.&nbsp; So that might be causing the
redirects.&nbsp; However, that can't be the only source of my difficulties, because I
had the same problems on localhost, where AFAIK there isn't any
redirection.<br>
<br>
Bronwyn<br>