Server side of a tool for reading and writing the lcm staff logs. The program doesn't accept any command line options.
For the test session, only the account log
can access.
Admins and 150 logs.
To do
In the script directory there is a folder named auth
that contain the following files:
Every file contains the list of the uid of the users that can send and request logs and update the database. If you want to add a new user, you have to add his uid in these files.
The script lcmlog-auth-utils
can help to manage this authentication process. It offers two options:
-i
option, it makes the initialization of the auth folder structure.-l
option, show you who is now authorized using getent
.The first line is always the name of the method and can be only GET
, POST
or UPDATE
.
The GET
method is used to print all the logs that meet the required criteria.
The POST
method is used to add a log to the database.
The UPDATE
method is used to regenerate the internal server database.
It should only be called if a log file is added by hand, or if some of the log files get renamed or corrupted.
It assumes that all the log files are correctly formatted.
To do