Hello team ,
please provide us method to create user with password to icinga2 (Via cli)
best regards
Hello team ,
please provide us method to create user with password to icinga2 (Via cli)
best regards
edit this file and read the docs:
/etc/icinga2/conf.d/api-users.conf
https://icinga.com/docs/icinga-2/latest/doc/12-icinga2-api/#authentication
but if you mean an icingaweb2 user, thats another question
hello ,
yeah it is for an icingaweb2 user to access
br
you can’t do it via cli directly but you can use a restapi request.
curl -H “Accept: application/json” -u icingaweb2admin:somepassword “https://youricinga/icingaweb2/user/add?backend=icingaweb2” -F “user_name=newicingauser” -F “is_active=1” -F “password=test”
{“status”:“success”,“data”:{“message”:“User added successfully”}}