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

When upgrading, ldap library is not loaded properly due to incorrect paths #2629

Closed
ghost opened this issue Apr 15, 2019 · 2 comments
Closed
Assignees
Labels
bug Undesired behaviour installer Installation issue resolved A fixed issue
Milestone

Comments

@ghost
Copy link

ghost commented Apr 15, 2019

Summary
On RHEL 7.6 we have encountered an authentication bug upon Cacti package upgrade from version 1.1.38 -> 1.2.2
On navigating to the web installer and attempting to log in with an LDAP account, the authentication page crashes (HTML 500).

To Reproduce

  1. Upgrade the Cacti package from EPEL from version 1.1.38 -> 1.2.2 using yum package manager.
  2. Navigate to the Web Installer in a web browser in order to complete the upgrade
  3. Attempt to authenticate with an LDAP account when prompted

Expected behavior
The LDAP account is authenticated and the user is redirected to the web installer

Suspected Cause
It appears that auth_login.php is invoked with working directory <CACTI_PATH>/install/ which causes path resolution in the statement include_once('./lib/ldap.php'); to fail.

include_once('./lib/ldap.php');

In particular, it looks like the path './lib/ldap.php' is resolved to '<CACTI_PATH>/install/lib/ldap.php', a nonexistent file path. Temporarily changing the include statement to read include_once(‘lib/ldap.php’); allowed us to successfully login and complete the upgrade.

Desktop:

  • OS: RHEL 7.6
  • Browser: Firefox
  • Version: 66

Additional context

@netniV netniV self-assigned this Apr 15, 2019
@netniV netniV added bug Undesired behaviour installer Installation issue labels Apr 15, 2019
cigamit added a commit that referenced this issue Apr 17, 2019
Authentication bug on Cacti upgrade
@cigamit cigamit added the resolved A fixed issue label Apr 17, 2019
@cigamit
Copy link
Member

cigamit commented Apr 17, 2019

Should be resolved now.

@cigamit cigamit added this to the v1.2.4 milestone Apr 17, 2019
@ghost
Copy link
Author

ghost commented Apr 19, 2019

Okay, looks good. Thanks!

@ghost ghost closed this as completed Apr 19, 2019
@netniV netniV changed the title Authentication bug on Cacti upgrade When upgrading, ldap library is not loaded properly due to incorrect paths Apr 28, 2019
netniV added a commit that referenced this issue Apr 28, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 30, 2020
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Undesired behaviour installer Installation issue resolved A fixed issue
Projects
None yet
Development

No branches or pull requests

2 participants