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

#476 Pass credentials for HTTP auth #479

Merged
merged 1 commit into from
Jan 29, 2018

Conversation

tux-o-matic
Copy link
Contributor

Along the usual Zabbix user and password, the credentials are now passed on to the Zabbix api client for HTTP basic auth support.

Along the usual Zabbix user and password, the credentials are now passed on to the Zabbix api client for HTTP basic auth support.
@tux-o-matic
Copy link
Contributor Author

There is one test failing and it seems to be related to Travis and/or beaker.

@bastelfreak
Copy link
Member

restarted the failed job

@bastelfreak bastelfreak added the enhancement New feature or request label Jan 29, 2018
@bastelfreak
Copy link
Member

Fixes #476

@@ -11,7 +11,9 @@ def self.create_connection(zabbix_url, zabbix_user, zabbix_pass, apache_use_ssl)
zbx = ZabbixApi.connect(
url: "#{protocol}://#{zabbix_url}/api_jsonrpc.php",
user: zabbix_user,
password: zabbix_pass
password: zabbix_pass,
http_user: zabbix_user,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what happens when those variables are empty?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They never are empty since they re use the same regular Zabbix API credentials.
And in a setup without HTTP auth, the HTTP Auth header is just ignored by Apache.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, thanks for the explanation.

@bastelfreak bastelfreak merged commit 5e67a1b into voxpupuli:master Jan 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants