Cacti 1.0.4 to 1.0.5 broke LDAP

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
claudiup
Posts: 3
Joined: Mon Mar 13, 2017 7:10 am

Cacti 1.0.4 to 1.0.5 broke LDAP

Post by claudiup »

Hi,

I just updated from 1.0.4 to 1.0.5 and LDAP authentication stopped working.
I have the following in my logs:

Code: Select all

2017-03-13 13:57:49 - ERROR PHP NOTICE: Undefined variable: user in file: ...../auth_login.php  on line: 204
2017-03-13 13:57:49 - CMDPHP PHP ERROR NOTICE Backtrace: (/index.php: 25 include)(/include/auth.php: 82 include)(/auth_login.php: 204 CactiErrorHandler)(/lib/functions.php: 4265 cacti_debug_backtrace)
2017-03-13 13:57:49 - ERROR PHP NOTICE: Undefined variable: user in file: ...../auth_login.php  on line: 222
2017-03-13 13:57:49 - CMDPHP PHP ERROR NOTICE Backtrace: (/index.php: 25 include)(/include/auth.php: 82 include)(/auth_login.php: 222 CactiErrorHandler)(/lib/functions.php: 4265 cacti_debug_backtrace)
2017-03-13 13:57:49 - ERROR PHP NOTICE: Undefined variable: user in file: ...../auth_login.php  on line: 237
2017-03-13 13:57:49 - CMDPHP PHP ERROR NOTICE Backtrace: (/index.php: 25 include)(/include/auth.php: 82 include)(/auth_login.php: 237 CactiErrorHandler)(/lib/functions.php: 4265 cacti_debug_backtrace)
I was able to authenticate with admin (local auth) and all LDAP settings are the same as prior to the upgrade as far as I can tell.
Any ideas what might be wrong?

Thank you.
thomasw
Posts: 33
Joined: Thu Nov 10, 2005 6:11 am

Re: Cacti 1.0.4 to 1.0.5 broke LDAP

Post by thomasw »

Hello,

same for me here, just upgrading from 1.0.3 to 1.0.5 and ldap auth via active directory is not working anymore. Same logentries, ERROR PHP NOTICE: Undefined variable: user in file: /opt/cacti/cacti-1.0.5/auth_login.php on line: 237
As I can see in github the error must be brought by the " Issue: Multiple domains not working as expected" Change...

thanks in advance for fixing this,

cheers,
Tom
redneckgeek
Posts: 19
Joined: Mon Dec 05, 2011 11:31 am

Re: Cacti 1.0.4 to 1.0.5 broke LDAP

Post by redneckgeek »

Dogpile... same issue, same error. Local works fine. Ldap generates..

2017-03-13 16:58:15 - CMDPHP PHP ERROR NOTICE Backtrace: (/index.php: 25 include)(/include/auth.php: 82 include)(/auth_login.php: 237 CactiErrorHandler)(/lib/functions.php: 4265 cacti_debug_backtrace)
2017-03-13 16:58:15 - ERROR PHP NOTICE: Undefined variable: user in file: /var/www/html/cacti/auth_login.php on line: 237
2017-03-13 16:58:15 - CMDPHP PHP ERROR NOTICE Backtrace: (/index.php: 25 include)(/include/auth.php: 82 include)(/auth_login.php: 222 CactiErrorHandler)(/lib/functions.php: 4265 cacti_debug_backtrace)
2017-03-13 16:58:15 - ERROR PHP NOTICE: Undefined variable: user in file: /var/www/html/cacti/auth_login.php on line: 222
2017-03-13 16:58:15 - CMDPHP PHP ERROR NOTICE Backtrace: (/index.php: 25 include)(/include/auth.php: 82 include)(/auth_login.php: 204 CactiErrorHandler)(/lib/functions.php: 4265 cacti_debug_backtrace)
2017-03-13 16:58:15 - ERROR PHP NOTICE: Undefined variable: user in file: /var/www/html/cacti/auth_login.php on line: 204
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Cacti 1.0.4 to 1.0.5 broke LDAP

Post by Osiris »

Fixed in Github.
Before history, there was a paradise, now dust.
claudiup
Posts: 3
Joined: Mon Mar 13, 2017 7:10 am

Re: Cacti 1.0.4 to 1.0.5 broke LDAP

Post by claudiup »

Do you have a commit ID? I would like to patch mine.. Thank you.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Cacti 1.0.4 to 1.0.5 broke LDAP

Post by phalek »

You can always select the specific tag i.e. "release/1.0.5" in Github:

https://github.com/Cacti/cacti/tree/release/1.0.5
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
thomasw
Posts: 33
Joined: Thu Nov 10, 2005 6:11 am

Re: Cacti 1.0.4 to 1.0.5 broke LDAP

Post by thomasw »

Hello,

I just took auth_login.php from github, but nothing changed. the error is still the same...

017-03-14 10:54:21 - ERROR PHP NOTICE: Undefined variable: user in file: /opt/cacti/cacti-1.0.5/auth_login.php on line: 204
2017-03-14 10:54:21 - CMDPHP PHP ERROR NOTICE Backtrace: (/index.php: 25 include)(/include/auth.php: 82 include)(/auth_login.php: 204 CactiErrorHandler)(/lib/functions.php: 4265 cacti_debug_backtrace)
2017-03-14 10:54:21 - ERROR PHP NOTICE: Undefined variable: user in file: /opt/cacti/cacti-1.0.5/auth_login.php on line: 222
2017-03-14 10:54:21 - CMDPHP PHP ERROR NOTICE Backtrace: (/index.php: 25 include)(/include/auth.php: 82 include)(/auth_login.php: 222 CactiErrorHandler)(/lib/functions.php: 4265 cacti_debug_backtrace)
2017-03-14 10:54:21 - ERROR PHP NOTICE: Undefined variable: user in file: /opt/cacti/cacti-1.0.5/auth_login.php on line: 237
2017-03-14 10:54:21 - CMDPHP PHP ERROR NOTICE Backtrace: (/index.php: 25 include)(/include/auth.php: 82 include)(/auth_login.php: 237 CactiErrorHandler)(/lib/functions.php: 4265 cacti_debug_backtrace)

Do I miss something else?

thanks in advance,
cheers,

Tom
claudiup
Posts: 3
Joined: Mon Mar 13, 2017 7:10 am

Re: Cacti 1.0.4 to 1.0.5 broke LDAP

Post by claudiup »

1.0.5 is the one bugged.
I found this commit: https://github.com/Cacti/cacti/commit/5 ... 1b02a5c2e3
But it did not fix the problem.
redneckgeek
Posts: 19
Joined: Mon Dec 05, 2011 11:31 am

Re: Cacti 1.0.4 to 1.0.5 broke LDAP

Post by redneckgeek »

Agreed,
remote: Counting objects: 12, done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 12 (delta 2), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (12/12), done.
From https://github.com/Cacti/cacti
0c488c3..b5a1d6f develop -> origin/develop
Updating 0c488c3..b5a1d6f
Fast-forward
auth_login.php | 2 +-
docs/CHANGELOG | 1 +
include/global_form.php | 6 +++---
links.php | 6 +++---
4 files changed, 8 insertions(+), 7 deletions(-)

Still errors on ldap login.
2017-03-14 09:05:59 - CMDPHP PHP ERROR NOTICE Backtrace: (/index.php: 25 include)(/include/auth.php: 82 include)(/auth_login.php: 237 CactiErrorHandler)(/lib/functions.php: 4265 cacti_debug_backtrace)
2017-03-14 09:05:59 - ERROR PHP NOTICE: Undefined variable: user in file: /var/www/html/cacti/auth_login.php on line: 237
2017-03-14 09:05:59 - CMDPHP PHP ERROR NOTICE Backtrace: (/index.php: 25 include)(/include/auth.php: 82 include)(/auth_login.php: 222 CactiErrorHandler)(/lib/functions.php: 4265 cacti_debug_backtrace)
2017-03-14 09:05:59 - ERROR PHP NOTICE: Undefined variable: user in file: /var/www/html/cacti/auth_login.php on line: 222
2017-03-14 09:05:59 - CMDPHP PHP ERROR NOTICE Backtrace: (/index.php: 25 include)(/include/auth.php: 82 include)(/auth_login.php: 204 CactiErrorHandler)(/lib/functions.php: 4265 cacti_debug_backtrace)
2017-03-14 09:05:59 - ERROR PHP NOTICE: Undefined variable: user in file: /var/www/html/cacti/auth_login.php on line: 204
redneckgeek
Posts: 19
Joined: Mon Dec 05, 2011 11:31 am

Re: Cacti 1.0.4 to 1.0.5 broke LDAP

Post by redneckgeek »

This seems to be fixed in 1.0.6 as of this morning.
/rh
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests