Paolo Galli 4 years ago
parent
commit
461dd65682
2 changed files with 8 additions and 3 deletions
  1. 7 2
      README.md
  2. 1 1
      lcmlog-auth-utils

+ 7 - 2
README.md

@@ -11,7 +11,7 @@ Admins and 150 logs.
 _To do_
 
 ## The authentication process
-In the main directory there is a folder named `auth` that contain the following files:
+In the script directory there is a folder named `auth` that contain the following files:
 * UPDATE
 * 150/
     * GET
@@ -20,7 +20,12 @@ In the main directory there is a folder named `auth` that contain the following
     * GET
     * POST
 
-Every file contain the list of the euid of the users that can send and request logs and update the database. Now there is only the euid of the `log` account. If you want to add a new user, you have to add his euid in these 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.
+
+### Manage the authentication process: lcmlog-auth-utils
+The script `lcmlog-auth-utils` can help to manage this authentication process. It offers two options:
+* authinit: called with the `-i` option, it makes the initialization of the auth folder structure.
+* authlookup: called with the `-l` option, show you who is now authorized using `getent`.
 
 ## The three methods
 The first line is always the name of the method and can be only `GET`, `POST` or `UPDATE`.

+ 1 - 1
lcmlog-auth-utils

@@ -24,7 +24,7 @@ method_help()
 	echo
 	echo "Options:"
 	echo "  -i  Initialization of the auth folder structure (authinit)"
-	echo "  -l  See who is authorized (authlookup)"
+	echo "  -l  See who is authorized using getent (authlookup)"
 	echo "  -h  Show this help"
 }