Skip to content

🐛 Add HTTP_AUTHORIZATION environment variable handling for Apache virtual hosts#17

Merged
Molkobain merged 1 commit intomasterfrom
bugfix/apache_vhosts_authorization
Jan 5, 2026
Merged

🐛 Add HTTP_AUTHORIZATION environment variable handling for Apache virtual hosts#17
Molkobain merged 1 commit intomasterfrom
bugfix/apache_vhosts_authorization

Conversation

@Lenaick
Copy link
Copy Markdown
Contributor

@Lenaick Lenaick commented Jan 5, 2026

Base information

Question Answer
Related to a SourceForge thread / Another PR / Combodo ticket? No
Type of change? Bug fix

Symptom

"Error: Invalid login" when call an iTop webservice with basic authentication

Reproduction procedure

  1. Enable Apache
  2. Call an iTop webservice using basic authentication
  3. Observe the error

Cause

ITop webservices are not accessible with basic authentication when Apache redirects the request to the PHP handler. The Authorization header is not converted to the HTTP_AUTHORIZATION header in the PHP request.

Proposed solution

Add a rule in the Apache vhosts to transform the Authorization header into the HTTP_AUTHORIZATION header.

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have tested all changes I made on an iTop instance
  • Would a unit test be relevant and have I added it?
  • Is the PR clear and detailed enough so anyone can understand without digging in the code?

@Molkobain Molkobain added the bug Something isn't working label Jan 5, 2026
@Molkobain Molkobain merged commit 46dc8aa into master Jan 5, 2026
@Molkobain Molkobain deleted the bugfix/apache_vhosts_authorization branch January 5, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants