Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Fri Apr 28, 2017 4:59 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Cacti 1.0.4 to 1.0.5 broke LDAP
PostPosted: Mon Mar 13, 2017 7:26 am 
Offline

Joined: Mon Mar 13, 2017 7:10 am
Posts: 3
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:
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.


Top
 Profile  
 
 Post subject: Re: Cacti 1.0.4 to 1.0.5 broke LDAP
PostPosted: Mon Mar 13, 2017 10:59 am 
Offline

Joined: Thu Nov 10, 2005 6:11 am
Posts: 31
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


Top
 Profile  
 
 Post subject: Re: Cacti 1.0.4 to 1.0.5 broke LDAP
PostPosted: Mon Mar 13, 2017 7:10 pm 
Offline

Joined: Mon Dec 05, 2011 11:31 am
Posts: 13
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


Top
 Profile  
 
 Post subject: Re: Cacti 1.0.4 to 1.0.5 broke LDAP
PostPosted: Mon Mar 13, 2017 7:44 pm 
Offline
Cacti User
User avatar

Joined: Mon Jan 05, 2015 10:10 am
Posts: 210
Fixed in Github.

_________________
Before history, there was a paradise, now dust.


Top
 Profile  
 
 Post subject: Re: Cacti 1.0.4 to 1.0.5 broke LDAP
PostPosted: Tue Mar 14, 2017 4:50 am 
Offline

Joined: Mon Mar 13, 2017 7:10 am
Posts: 3
Do you have a commit ID? I would like to patch mine.. Thank you.


Top
 Profile  
 
 Post subject: Re: Cacti 1.0.4 to 1.0.5 broke LDAP
PostPosted: Tue Mar 14, 2017 4:54 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2573
Location: Kressbronn, Germany
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 Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code:
CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061


Top
 Profile  
 
 Post subject: Re: Cacti 1.0.4 to 1.0.5 broke LDAP
PostPosted: Tue Mar 14, 2017 4:57 am 
Offline

Joined: Thu Nov 10, 2005 6:11 am
Posts: 31
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


Top
 Profile  
 
 Post subject: Re: Cacti 1.0.4 to 1.0.5 broke LDAP
PostPosted: Tue Mar 14, 2017 5:02 am 
Offline

Joined: Mon Mar 13, 2017 7:10 am
Posts: 3
1.0.5 is the one bugged.
I found this commit: https://github.com/Cacti/cacti/commit/575b49cacc459f9f33521cdab788e51b02a5c2e3
But it did not fix the problem.


Top
 Profile  
 
 Post subject: Re: Cacti 1.0.4 to 1.0.5 broke LDAP
PostPosted: Tue Mar 14, 2017 11:10 am 
Offline

Joined: Mon Dec 05, 2011 11:31 am
Posts: 13
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


Top
 Profile  
 
 Post subject: Re: Cacti 1.0.4 to 1.0.5 broke LDAP
PostPosted: Thu Mar 16, 2017 11:43 am 
Offline

Joined: Mon Dec 05, 2011 11:31 am
Posts: 13
This seems to be fixed in 1.0.6 as of this morning.
/rh


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Exabot [Bot] and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group