Switch to guest menu for partially public logooks

SVN revision: 187
This commit is contained in:
Stefan Ritt 2002-07-27 06:53:27 +00:00
parent f53a91cd00
commit a58bafb172

View File

@ -37,7 +37,8 @@ shows the last 10 entries as the default. To show all messages, one can use:
<code><p> <code><p>
Start page = ?cmd=Search&mode=summary&all=1<p> Start page = ?cmd=Search&mode=summary&all=1<p>
</code><p> </code><p>
This shows all messages from all logbooks (<i>all=1</i>). It is a good idea to have logbook tabs one here:<p> This shows all messages from all logbooks (<i>all=1</i>). It is a good idea to have logbook tabs one
here in the elogd.cfg configuration file:<p>
<code><p> <code><p>
Logbook tabs = 1 Logbook tabs = 1
</code><p> </code><p>
@ -81,31 +82,20 @@ Note the "l" before the second attribute, as in "<I>lAuthor=1</I>".
<LI><b>I want a logbook with public read access (no password), but restricted write access</b> <LI><b>I want a logbook with public read access (no password), but restricted write access</b>
<p> <p>
There is a trick for that: Define two logbooks, but with the same data directory. The first one has no passwords, but a restricted set of menu commands. The second logbook has a read and/or write password or user level access and a full menu (including edit, delete, etc.). So the public uses the first logbook, while the adminitrator uses the second logbook. Here is an example configuration file: In an old version of the FAQ it has been stated here that one has to use two logbooks pointing to
<p> the same data directory. From Version 2.0.6 on, this can be accomplished much easier by the usage
<pre> of the <b>"Guest menu command"</b>. Use a logbook with user level access (password file), and add
[global] menu lists like in the following example to the configuration file:<p>
logbook tabs = 0
[Public] <code>
data dir = c:\elog Menu commands = New, Edit, Reply, Find, Last 10, Change password, Logout, Help<br>
Comment = Public access Guest menu commands = Find, Last 10, Login, Help<br>
Attributes = Author, Type, Category, Subject </code><p>
Options Type = Routine, Software Installation, Problem Fixed, Configuration, Other
Options Category = General, Hardware, Software, Network, Other
Menu commands = Find, Last day, Last 10, Help
[Restricted] If users access the logbook without supplying a user name, they are treated like "guests" and see
Data dir = c:\elog the "Guest menu commands", with which one cannot submit or edit logbook entries. If one hits the
Comment = Access only for administrator "login" button, a user can login with a user name/password and sees the normal menu commands, with
Password file = passwd.txt which one can submit new logbook entries.<p>
Attributes = Author, Type, Category, Subject
Options Type = Routine, Software Installation, Problem Fixed, Configuration, Other
Options Category = General, Hardware, Software, Network, Other
Menu commands = New, Edit, Delete, Reply, Find, Last day, Last 10, Config, Change Password, Logout, Help
</pre>
Note the "<I>logbook tabs = 0</I>" which "<I>hides</I>" the restricted logbook so that public users don't get confused.
<p>
<LI><b>I have many loogbooks with password files, so if I add a user or want to change <LI><b>I have many loogbooks with password files, so if I add a user or want to change
a password I have to do this for all logbooks which is painful.</b> a password I have to do this for all logbooks which is painful.</b>
@ -165,7 +155,7 @@ a feature you find useful on the list, there is a good chance that it will appea
<tr><td>Multiple templates for "Preset text"<td>1</tr> <tr><td>Multiple templates for "Preset text"<td>1</tr>
<tr><td>Put an option into "elog" to create replies<td>1</tr> <tr><td>Put an option into "elog" to create replies<td>1</tr>
<tr><td>Sort search by date if "search all logbooks" is on<td>1</tr> <tr><td>Sort search by date if "search all logbooks" is on<td>1</tr>
<tr><td>Conditional attributes, automatic fill in of email address<td>2</tr> <tr><td>Conditional attributes<td>2</tr>
</table></center><p> </table></center><p>