Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Clarify documentation of centreon clapi authentication #5628

Merged
merged 1 commit into from
Sep 6, 2017

Conversation

lpinsivy
Copy link
Contributor

@lpinsivy lpinsivy commented Sep 5, 2017

fix(doc): Clarify documentation of Centreon clapi authentication

Added in the documentation the possibility to use the encrypted password (in base) or the password in clear

refs: #5625

@Dacchi Dacchi merged commit 35d30e3 into 2.8.x Sep 6, 2017
@Dacchi Dacchi deleted the 5625-clarify-documentation-clapi-authentication branch September 6, 2017 06:47
Copy link

@kitatek kitatek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello,

It does not seem to work like this in my case (v2.8.22):

  • the statement "(MD5 by default)" fails to clarify which flavor of MD5 is used, causing malfunction when we use a different one

Impact is the encrypted password does not work as a parameter to this command, only clear text password works, which is ... bad.

MD5 has different flavors:

  • linux md5
  • apache md5
  • php md5
    They seem to produce different passwords hashes, with different syntax:

openssl passwd -1 "totopassword"
$1$D.R/V99t$mdLKkZtXISXjhpue91cfY0
openssl passwd -apr1 "totopassword"
$apr1$ssR.ffu2$HSuvcDd1DxG2dRJJ8mK3.0

The password hash in Centreon contacts table is prefixed with "md5__" , could you clarify in the documentation what version of MD5 produces it (probably a php function) and how to re-create one from clear text password for use in the CLAPI command line (the one in teh DB does not work as is) ?

Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants