LDAP work once ina while

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: LDAP work once ina while

Post by netniV »

OK, here's the strange part, unless you have made any other change or I'm having a memory fart, the code should only be the same with the exception of displaying output to the log.

Can you provide a diff between the release and modified versions?
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Rno
Cacti Pro User
Posts: 692
Joined: Wed Dec 07, 2011 9:19 am

Re: LDAP work once ina while

Post by Rno »

Here it is:
180c180,181
< domains_login_process($username);
---
> //domains_login_process($username);
> domains_login_process($username, $frv_realm );
469c470,471
< function domains_login_process() {
---
> //function domains_login_process() {
> function domains_login_process($username, $frv_realm=0) {
472c474,481
< if (is_numeric(get_nfilter_request_var('realm')) && get_nfilter_request_var('login_password') != '') {
---
> // if (is_numeric(get_nfilter_request_var('realm')) && get_nfilter_request_var('login_password') != '') {
> $has_realm = is_numeric(get_nfilter_request_var('realm'));
> $has_pass = get_nfilter_request_var('login_password') != '';
>
> cacti_log('DEBUG: Check realm ('.$has_realm.') and password ('.$has_pass.') before loading LDAP library for ' . $frv_realm, false, 'AUTH', POLLER_VERBOSITY_DEBUG);
>
> if ($has_realm && $has_pass) {
>
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: LDAP work once ina while

Post by TheWitness »

A pull request would be appreciated.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: LDAP work once ina while

Post by netniV »

There's no real point as that was just my debug code I gave him in a rush. There should be no change in the functionality unless another update, such as a pull from git, pulled in a different change. This was purely for visually seeing what choice the code was making.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
nenad
Posts: 1
Joined: Sun Apr 19, 2020 5:24 am

Re: LDAP work once ina while

Post by nenad »

I have the same problem with 1.2.10. on Centos 7
Are there any patches for this problem ?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: LDAP work once ina while

Post by TheWitness »

Test with 1.2.11.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests