I recently encountered an issue where my OpenHAB credentials stopped working, which was quite concerning. After some research, I found a reliable method to reset them, and I wanted to share my experience in case others face the same problem.
First, I accessed the Karaf console via SSH using the default credentials: username openhab and password habopen. The commands to reset the user were straightforward:
openhab> jaas:user-delete
openhab> jaas:user-add
openhab> jaas:role-add administrator
openhab> jaas:update
I was initially worried about the process, but it went smoothly. The most important takeaway is to ensure you have SSH access and know the default credentials. This experience reinforced the importance of regular backups and having a clear documentation of your setup.
If anyone has questions or needs assistance with similar issues, feel free to reach out! It’s always reassuring to know there are solutions even when things seem stuck.