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?
LDAP work once ina while
Moderators: Developers, Moderators
Re: LDAP work once ina while
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
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: LDAP work once ina while
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) {
>
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
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
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: LDAP work once ina while
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?
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?
Re: LDAP work once ina while
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
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: LDAP work once ina while
I have the same problem with 1.2.10. on Centos 7
Are there any patches for this problem ?
Are there any patches for this problem ?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: LDAP work once ina while
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?
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?
Who is online
Users browsing this forum: No registered users and 4 guests