while connecting to mqtt with username and password which is set in credentials.xml file.
Here in the below case, instead of taking the below password test123, it is accepting any password.
Thank you for contacting us. Could you please confirm if the File RBAC extension is enabled on the broker? Could you please share your hivemq.log, File RBAC extension’s extension-config.xml and credentials.xml files with us?
I haven’t enabled File RBAC extension in this case. As enabling File RBAC extension, and adding the credentials in credential.xml give me error as below
WARN - Configuration for file auth extension has errors:
- User ‘tib’ has invalid password
2024-03-11 05:46:58,346 WARN - Configuration for file auth extension has errors:
- User ‘tib’ has invalid password
error WARN - Configuration for file auth extension has errors:
User ‘tib’ has invalid password
2024-03-11 05:46:58,346 WARN - Configuration for file auth extension has errors:- User ‘tib’ has invalid password
Ideally User configuration should look like this, which is not in your case.
Please check our example of the credentials.xml and create a hashed or plain password for your user. Please make sure you enable the RBAC extension and disable hivemq-allow-all-extension extension.