Restore internal database yaml

Hi

After sucesfull backup o internal user and restore them with ./sgadmin.sh I cant login to Kibana any more. I heve reloaded the Cache

./sgadmin.sh -rl result still the same. Its look like its taking the password but return back to login page. What I saw that the backuped internal user file

is diferent in format than the original one. Take a look:

Oryginal on the instalation has no {" "} and more spaces in roles:

#password is: admin

admin:

readonly: false

hash: $2a$12$VcCDgh2NDk07JGN0rjGbM.Ad41qVR/YFJcgHp0UGns5JDymv…TOG

roles:

  • admin

attributes:

#no dots allowed in attribute names

attribute1: value1

attribute2: value2

attribute3: value3

The backuped file:

admin:

readonly: “true” ← " "

roles:

  • “admin” ← spaces ?

attributes:

attribute1: “value1”

attribute3: “value3”

attribute2: “value2”

hash: “$2a$12$VcCDgh2NDk07JGN0rjGbM.Ad41qVR/YFJcgHp0UGns5JDymv…TOG”

so it’s was browser issue. After remove cashe I can login now but I have another problem. I will start new topic for that.

W dniu poniedziałek, 19 listopada 2018 11:24:30 UTC+1 użytkownik fr3sh napisał:

···

Hi

After sucesfull backup o internal user and restore them with ./sgadmin.sh I cant login to Kibana any more. I heve reloaded the Cache

./sgadmin.sh -rl result still the same. Its look like its taking the password but return back to login page. What I saw that the backuped internal user file

is diferent in format than the original one. Take a look:

Oryginal on the instalation has no {" "} and more spaces in roles:

#password is: admin

admin:

readonly: false

hash: $2a$12$VcCDgh2NDk07JGN0rjGbM.Ad41qVR/YFJcgHp0UGns5JDymv…TOG

roles:

  • admin

attributes:

#no dots allowed in attribute names

attribute1: value1

attribute2: value2

attribute3: value3

The backuped file:

admin:

readonly: “true” ← " "

roles:

  • “admin” ← spaces ?

attributes:

attribute1: “value1”

attribute3: “value3”

attribute2: “value2”

hash: “$2a$12$VcCDgh2NDk07JGN0rjGbM.Ad41qVR/YFJcgHp0UGns5JDymv…TOG”