<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 31, 2014 at 5:27 AM, Steve Fletcher <span dir="ltr"><<a href="mailto:fletch.au@outlook.com" target="_blank">fletch.au@outlook.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div bgcolor="white" background="cid:image001.jpg@01CFACC2.D27D65A0" lang="EN-AU" link="#6666CC" vlink="#336633">

<img src="cid:image001.jpg@01CFACC2.D27D65A0" width="0" height="0" style="width: 0px; min-height: 0px;"><div><p class="MsoNormal"><span style="font-size:11pt;font-family:Arial,sans-serif;color:windowtext">Hi,<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11pt;font-family:Arial,sans-serif;color:windowtext">Another newbie question.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Arial,sans-serif;color:windowtext"><u></u> <u></u></span></p>

<p class="MsoNormal"><span style="font-size:11pt;font-family:Arial,sans-serif;color:windowtext">I have read lots, but am still grappling to work out how to get it to work.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Arial,sans-serif;color:windowtext"><u></u> <u></u></span></p>

<p class="MsoNormal"><span style="font-size:11pt;font-family:Arial,sans-serif;color:windowtext">I can create users<u></u><u></u></span></p><div style="border:1pt solid rgb(223,243,249);padding:5pt;background:rgb(251,253,251)">

<p class="MsoNormal" style="line-height:14.4pt;border:none;padding:0cm;background:rgb(251,253,251)"><span style="font-size:13pt;font-family:'Lucida Console';color:rgb(17,17,17)"># alice: (:encrypt wonderland:) within the config.php file<u></u><u></u></span></p>

</div><p class="MsoNormal"></p></div></div></blockquote><div><br></div><div>No, you're confusing your config.php with your *page* SiteAdmin.AuthUser.</div><div><br></div><div>There are 2 (primary) ways to organize users (without getting into other schema via recipes): plain vanilla passwords and usernames/groups via AuthUser.</div>

<div><br></div><div>It appears that you want users and groups, so you will need to use the latter.</div><div><br></div><div>Read carefully through this page: <a href="http://www.pmwiki.org/wiki/PmWiki/AuthUser">http://www.pmwiki.org/wiki/PmWiki/AuthUser</a></div>

<div><br></div><div>This page (referenced in the above) is also very helpful: <a href="http://www.pmwiki.org/wiki/Cookbook/QuickStartForAuthUser">http://www.pmwiki.org/wiki/Cookbook/QuickStartForAuthUser</a></div><div><br>

</div><div>Do note that AuthUser is a slightly more complicated approach to authorization/authentication and the simpler approach is the default one.  Thus you cannot skip any steps in actually activating AuthUser - it is NOT activated "out of the box."</div>

<div><br></div><div>Note particularly that the line you have above ("alice: (:encrypt wonderland:)") must appear in the SiteAdmin.AuthUser page, not the config.php script, and lines like that must NOT be preceded by the hash symbol (#).</div>

<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div bgcolor="white" background="cid:image001.jpg@01CFACC2.D27D65A0" lang="EN-AU" link="#6666CC" vlink="#336633">

<div><p class="MsoNormal"> </p><p class="MsoNormal"><span style="font-size:11pt;font-family:Arial,sans-serif;color:windowtext">Do I create groups in theconfig.php file also?<u></u><u></u></span></p><div style="border:1pt solid rgb(223,243,249);padding:5pt;background:rgb(251,253,251)">

<pre style="line-height:14.4pt;border:none;padding:0cm;background:rgb(251,253,251)"><span style="font-size:13pt;font-family:'Lucida Console';color:rgb(17,17,17)">@designer: alice, bob<u></u><u></u></span></pre><pre style="line-height:14.4pt;border:none;padding:0cm;background:rgb(251,253,251)">

<span style="font-size:13pt;font-family:'Lucida Console';color:rgb(17,17,17)"><u></u></span></pre></div></div></div></blockquote><div>This that you have referred to above ("@designer: alice, bob") also goes in SiteAdmin.AuthUser and NOT in config.php.</div>

<div><br></div><div>You can do your user/group setup in your config.php script (thus bypassing the SiteAdmin.AuthUser page) by modifying the <code class="" style="text-decoration:none;font-family:'Lucida Console','Andale Mono','Courier New',Courier,monospace;font-size:0.9em;line-height:19.50666618347168px"><a class="" href="http://www.pmwiki.org/wiki/PmWiki/SecurityVariables#DefaultPasswords" style="text-decoration:none;font-family:Arial,Helvetica,sans-serif;font-size:15px;line-height:19.50666618347168px">$DefaultPasswords</a> </code>variable.  Personally I would recommend that you not do that but rather stick with the SiteAdmin.AuthUser method unless you already have experience in PHP scripting.  The syntax for SiteAdmin.AuthUser is pretty simple while PHP is obviously quite a bit more complex.</div>

<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div bgcolor="white" background="cid:image001.jpg@01CFACC2.D27D65A0" lang="EN-AU" link="#6666CC" vlink="#336633">

<div><div style="border:1pt solid rgb(223,243,249);padding:5pt;background:rgb(251,253,251)"><pre style="line-height:14.4pt;border:none;padding:0cm;background:rgb(251,253,251)"><span style="font-size:13pt;font-family:'Lucida Console';color:rgb(17,17,17)"> <u></u></span></pre>

<pre style="line-height:14.4pt;border:none;padding:0cm;background:rgb(251,253,251)"><span style="font-size:13pt;font-family:'Lucida Console';color:rgb(17,17,17)">How do I then make only the “designer” group able to update pages within the menu item<u></u><u></u></span></pre>

</div><p class="MsoNormal"><span style="font-size:11pt;font-family:Arial,sans-serif;color:windowtext"><u></u> </span></p></div></div></blockquote><div><br></div><div>Once you have authentication working (via the documentation in the URLs I referred to above) then you are ready to start working on authorization, as your question indicates.  <br>

</div><div><br></div><div>Read and understand this page well: <a href="http://www.pmwiki.org/wiki/PmWiki/Passwords">http://www.pmwiki.org/wiki/PmWiki/Passwords</a></div><div><br></div><div>Then in this page <a href="http://www.pmwiki.org/wiki/PmWiki/PasswordsAdmin">http://www.pmwiki.org/wiki/PmWiki/PasswordsAdmin</a> you need to read carefully, particularly under the heading for </div>

<h2 style="margin-top:1em;margin-bottom:0.6em;font-weight:normal;font-size:1.44em;color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;line-height:19.50666618347168px">Identity-based authorization (username/password logins, <a class="" href="http://www.pmwiki.org/wiki/PmWiki/AuthUser">AuthUser</a>)</h2>

<div>In short, you append the ?action=attr (or &action=attr if you are not using short URLs) to the URL of the page whose authorization you are administering.  Then fill in the relevant password field(s) with something like @designer.  If you want to affect authorization for an entire GROUP (as you indicated) then you will use that ?action=attr on the "magic" page Mygroup.GroupAttributes.  (The name of the page "GroupAttributes" must be exactly like that - if you spell it wrong or have a different upper/lower case then it will have no effect on the group.)</div>

<div><br></div><div>Thus if you access a page using the URL <a href="http://www.example.com/Mygroup/Mypage">http://www.example.com/Mygroup/Mypage</a> then you would edit PAGE attributes (to limit access to that individual page) by changing that URL to <a href="http://www.example.com/Mygroup/Mypage?action=attr">http://www.example.com/Mygroup/Mypage?action=attr</a> and you would edit GROUP attributes (to limit access to any page within that group) by changing that URL to <a href="http://www.example.com/Mygroup/GroupAttributes?action=attr">http://www.example.com/Mygroup/GroupAttributes?action=attr</a>.</div>

<div><br></div><div>If you are not using short URLs then your original URL might look like this: <a href="http://www.example.com/pmwiki/pmwiki.php?n=MyGroup.MyPage">http://www.example.com/pmwiki/pmwiki.php?n=MyGroup.MyPage</a> and your URL to edit page authorizations would be <a href="http://www.example.com/pmwiki/pmwiki.php?n=MyGroup.MyPage&action=attr">http://www.example.com/pmwiki/pmwiki.php?n=MyGroup.MyPage&action=attr</a> and your URL to edit group authorizations would be <a href="http://www.example.com/pmwiki/pmwiki.php?n=MyGroup.GroupAttributes&action=attr">http://www.example.com/pmwiki/pmwiki.php?n=MyGroup.GroupAttributes&action=attr</a></div>

<div><br></div><div>(This may be obvious, but every once in a while I come across someone who doesn't understand what I mean by "edit the URL" - by that I simply mean clicking in the address bar of your browser and changing that text that you find there.)</div>

<div><br></div><div>Hope that helps.  If after you get this working you have some suggestions for the documentation to make this process simpler for the next person learning pmwiki, please consider "giving back" to the community by updating the documentation on pmwiki.org...</div>

<div><br></div><div>-Peter</div><div><br></div></div></div></div>