Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zabbix 6.4 requires another parameter for user.login #8

Open
zalexua opened this issue Jun 22, 2023 · 4 comments
Open

Zabbix 6.4 requires another parameter for user.login #8

zalexua opened this issue Jun 22, 2023 · 4 comments

Comments

@zalexua
Copy link

zalexua commented Jun 22, 2023

https://www.zabbix.com/documentation/5.4/en/manual/api/changes_5.2_-_5.4
ZBXNEXT-6474 user.login: Renamed parameter user → username.

https://www.zabbix.com/documentation/6.4/en/manual/api/changes
ZBXNEXT-8085 user.login: Removed support for deprecated parameter user.

So, starting from 6.4, in jsonrpc.js:21 instead of:
this.call('user.login', {user: user, password: pass}, function(result) {
must be:
this.call('user.login', {username: user, password: pass}, function(result) {

@jangaraj
Copy link
Member

Thank you Oleksii. Do you have an idea how to make it backward compatible? Can you create PR, please?

@zalexua
Copy link
Author

zalexua commented Jun 23, 2023

I'm not JS programmer, so I could not prepare a PR, sorry.

It probably makes sense to check firsts API version and then, based on the results, use corresponding data for Login request.
https://www.zabbix.com/documentation/6.4/en/manual/api/reference/apiinfo/version

@JayTea144
Copy link

Any plans on fixing this? I just tried it and still doesn't work. user --> username

@jangaraj
Copy link
Member

jangaraj commented May 7, 2024

@JayTea144 @zalexua
Could you test, pls? This should fix a problem - 9fbc251 but I'm not able to test it on my own.

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

No branches or pull requests

3 participants