From 0643293607d8c3d6678318511bf915fcebbccfca Mon Sep 17 00:00:00 2001
From: Laurent Pinsivy <lpinsivy@centreon.com>
Date: Tue, 5 Sep 2017 10:22:14 +0100
Subject: [PATCH] Clarify documentation of centreon clapi authentication

---
 doc/en/api/clapi/overview.rst | 7 +++++--
 doc/fr/api/clapi/overview.rst | 7 +++++--
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/doc/en/api/clapi/overview.rst b/doc/en/api/clapi/overview.rst
index 1dd1232ba2..83af37fdca 100644
--- a/doc/en/api/clapi/overview.rst
+++ b/doc/en/api/clapi/overview.rst
@@ -23,7 +23,10 @@ All actions in Centreon CLAPI will require authentication, so your commands will
   # cd /usr/share/centreon/bin
   # ./centreon -u admin -p centreon [...]
 
-Obviously, the **-u** option is for the username and the **-p** option is for the password. If your passwords 
-are encoded with SHA1 in database, use the **-s** option::
+Obviously, the **-u** option is for the username and the **-p** option is for the password.
+The password can be in clear or the encrypted in the database.
+
+.. note::
+    If your passwords are encoded with SHA1 in database (MD5 by default), use the **-s** option::
 
   # ./centreon -u admin -p centreon -s [...]
diff --git a/doc/fr/api/clapi/overview.rst b/doc/fr/api/clapi/overview.rst
index 1dd1232ba2..83af37fdca 100644
--- a/doc/fr/api/clapi/overview.rst
+++ b/doc/fr/api/clapi/overview.rst
@@ -23,7 +23,10 @@ All actions in Centreon CLAPI will require authentication, so your commands will
   # cd /usr/share/centreon/bin
   # ./centreon -u admin -p centreon [...]
 
-Obviously, the **-u** option is for the username and the **-p** option is for the password. If your passwords 
-are encoded with SHA1 in database, use the **-s** option::
+Obviously, the **-u** option is for the username and the **-p** option is for the password.
+The password can be in clear or the encrypted in the database.
+
+.. note::
+    If your passwords are encoded with SHA1 in database (MD5 by default), use the **-s** option::
 
   # ./centreon -u admin -p centreon -s [...]
-- 
GitLab