Commit Graph
300 Commits
Author SHA1 Message Date
TheWitness 8f33e4b648 QA: Selective Debug on Plugins not ordering alphabetically 2022-03-20 15:16:32 -04:00
TheWitness 8cf3cecdc1 Fixing Issue #4621 - RRDtool i18n
RRDtool Graph Internationalization does not work as expected on RRDtool versions above 1.5
2022-03-14 20:13:46 -04:00
TheWitness 5d1b8e6183 Fixing Multiple Bugs and one Feature #4576, #4579, #4573, #4575, #4577, #4578, #4574
-security#4576: Stored XSS Issue in Cacti Device, Graph, Graph Template, and Graph Items callbacks
-security#4579: Cacti account lockout policies are not properly applied to LDAP and Domain Users
-issue#4573: The Cacti permission system does not scale to very large installations
-issue#4575: When you delete a user, their 'remember me' cookie data is not automatically removed
-issue#4576: Stored XSS Issue in Cacti Device, Graph, Graph Template, and Graph Items callbacks
-issue#4577: Cacti allows you to disable the currently logged in administrator disabling the user
-issue#4578: The Cacti login algorithm is complicated to understand due to too much strait line code
-feature#4574: Cacti needs some additional permission methods for larger installations

This change properly documents the file lib/auth.php using phpDocument format, and performed multiple sanity and readability changes such as the renaming of variables commonly used in multiple functions.

The the restructuring of the three authentication files:

- auth_login.php
- include/auth.php
- lib/auth.php

Makes the code more readable, it's not a complete solution, however, it is much easier to follow now.
2022-02-27 15:26:28 -05:00
TheWitness 82b229db9e Updating Copyright to 2022. 2022-02-06 17:16:20 -05:00
TheWitness aae896cab8 Fixing #4547 - LDaP Connection Backtraces and add LDAP Debug mode
- Testing with LDAP authentication generating backtraces
- Add LDAP Debug Mode option for testing LDAP specific connection issues
2022-02-06 12:11:54 -05:00
TheWitness 744797f720 Minor widen LDAP DN text fields for long domains
Don't need a change log on this one.
2022-02-06 11:12:21 -05:00
TheWitness c515bb50f8 Fixing Issue #4545 Reports User is always an admin
- Reports Tab always shows 'Administration' despite a users permissions
- Improves the caching of permissions to include both true and false to reduce page query load.
- Also short circuits is_realm_allowed() for CLI's
- The user and admin realms where flipped.
2022-02-05 21:54:08 -05:00
TheWitness f6f44ee5cc Feature: Expose the Hidden Language Processor
This variable always existed, but was never exposed.  This change will expose that setting and cleanup a bit of the variable definitions.  We've gone between l10n and i18n in various areas of the API, and moving everything to i18n now too.
2022-01-29 16:41:18 -05:00
TheWitness a108a6ec16 Fixing Issue #4536 - Basic Auth Issues
* After authenticating via Web Basic Authentication, user always mapped as guest.
* This is a slight redesign to make provide a better flow.  It will require rework to merge back to develop.
* deprecated use of display_custom_error_message()
* Add custom error message for basic authentication
* Fix some display issues on the settings page related to new settings.
* Make it clear in the cacti.log that LOGIN messages are failed or otherwise.
2022-01-29 15:03:44 -05:00
TheWitness 9f27a24e5f Fixing Issues #4495 and #4500 DSStats Issues
* DSStats Does not Scale on Large Systems
* DSStats will get invalid data for some devices after reboot requiring purging of stats

This is way less than what I want to do, but these are all essentially bugs.

There is also a change to lib/boost.php to provide better debug logging when testing.
2021-12-10 10:58:45 -05:00
TheWitness ceb98d4a17 Fixing #4445 - Adding ldap timeouts
LDAP API lacks timeout options leading to bad login experiences.  Domains will use the global setting for now.
2021-10-26 08:34:04 -04:00
TheWitness 4265c54491 Fixing Issue #4299 - Multiple LDAP servers
Allow Cacti to use multiple possible LDAP servers
2021-10-18 20:48:41 -04:00
TheWitness 5a1de9efdf Fixing Issue #4409 - Test Data Sources Optional
* When creating a Graph, make testing the Data Sources optional by Template
* Release preparation steps
2021-09-25 14:13:40 -04:00
netniV 283c2ab76f Fixes for #4324, #4325, #4326
issue#4324: Date/Time format of replacement fild on graph cannot be changed
issue#4325: Make identifying rows when editing graph items easier
issue#4326: When using large lists, selection is visible in dropdown menus
2021-06-27 20:43:13 +00:00
TheWitness 12affbca13 Fixing Issue #4279 - Device Threads setting off by one
Default Setting "Device Threads" will not be saved correctly
2021-06-25 15:55:11 -04:00
netniV 1c3c4bf142 If a page contains multiple tables, a larger table can cause small ones to lose columns (#4295)
Closes #4295
2021-06-09 02:58:11 +00:00
TheWitness 514cbe3086 Increase number of boost processes 2021-04-14 08:46:34 -04:00
TheWitness 3e9a876d10 Do not show the auto-logout if session cookies are enabled and in use 2021-04-08 09:16:16 -04:00
TheWitness 6047c36c3a Fixing Issue #4199 - Stop Realtime from Gapping Graphs
Allow Cacti administrator to define a min refresh interval to prevent graph gaps
2021-03-26 21:43:24 -04:00
Datatech UK LtdandTheWitness 72430ad14e Add ability to set how long a user can stay logged in before being au… (#4113)
* Add ability to set how long a user can stay logged in before being automatically logged out

* Update CHANGELOG

* Changed the option in the drop-down to Default rather than Never to avoid confusion

* The auto logout time can not be greater than gc_maxlifetime

* Setting maximum value as 4 Weeks as this is the maximum that session.gc_maxlifetime will allow

* Fixed login loop if no value set on Auto Log Out Time

* Removing debate on the argument.

* Update global_settings.php

* Wrong Realm

* Secondary check

* Update global_settings.php

Co-authored-by: TheWitness <thewitness@cacti.net>
2021-03-25 07:52:57 -04:00
TheWitness 07b95c6cbc Fixing Issue #4184 - Error logging in cmd.php
- cmd.php error response logging is not properly following the detailed/summary logging setting
- This is basically a rewrite of the cmd.php that makes it much easier to read, and actually makes it 2x faster than previous versions.
- Change the 'tics' behavior to not loop so hard watching for signals.
- Makes the snmp session data passing more reasonable
- Like spine, if a host times out when attempting to fetch and OID, the remainder of the host will be skipped, resulting in a more reliable performance as well.
2021-03-20 11:15:30 -04:00
TheWitness 020165669a Fixing Issue #4086 - Large System Performance
- Large system performance negatively impacted due to $spikekill_templates behavior
2021-01-23 10:41:42 -05:00
TheWitness c4ba292b49 Fixing Issue #4075
- LDAP Settings lead to confusion when setting up LDAP authentication
- This is a fairly large consolidation of code blocks.
2021-01-21 18:59:25 -05:00
TheWitness c53e406c7d Revert "Add ability to set how long a user can stay logged in before being au… (#4064)"
This reverts commit 8bc3c2b13d.
2021-01-21 07:38:28 -05:00
Datatech UK LtdandTheWitness 8bc3c2b13d Add ability to set how long a user can stay logged in before being au… (#4064)
* Add ability to set how long a user can stay logged in before being automatically logged out

* Update CHANGELOG

* Update global_session.php

Co-authored-by: TheWitness <thewitness@cacti.net>
2021-01-20 18:13:33 -05:00
TheWitness f2df734dc6 Update one poller setting
This is so that the setting is consistent with the documentation and the purpose of the setting.
2021-01-10 10:58:05 -05:00
TheWitness 30245180d8 Align Settings page with Doco
- Minor settings reorganization to align with doco
- Also change indentation to follow standard
- Some whitespace conversion to tabs
2021-01-09 13:39:06 -05:00
TheWitness bc632bc30d Fixing Issues #3945 and #4031
* Graph CSV export NaN with wrong date range if browser timezone is different with web server
* Data Collectors and Data Profiles Filter Sub-Panel Go buttons not working as expected
2021-01-04 20:25:14 -05:00
TheWitness df54a4a3f3 Updating copright years 2021-01-01 20:28:58 -05:00
TheWitness 88a55f16d8 Fixing Issue #3969
- SNMPv3 Password Length Limit
- This change does not change the limits, it just will not allow you to enter more characters than are supported.
2020-12-02 20:50:29 -05:00
TheWitness cf8e97ac7e Fixing Issue #3929
Poller settings page is ambiguous on concurrent process and thread settings
2020-11-20 19:59:12 -05:00
TheWitness ecbd58900c Adding support for cactid
This is a long awaited service for starting the Cacti data collectors.  It's required to simplify high availability Cacti installs.
2020-11-20 08:35:50 -05:00
TheWitness 0a04cd8b58 Fixing Issue #3862
Console > Setting > Auth > Guest User drop-down list should not list current log on user
2020-10-17 12:02:12 -04:00
TheWitness a37dbfabda Minor tweak to CSP for Issue #3808
Add image source extensions
2020-09-17 08:48:53 -04:00
TheWitness 6fe7d8d41e Fixing Issue #3808 - Alternate Sources for CSP
Allow Users to Specify Alternate Sources for Content-Security Policy
2020-09-16 19:32:31 -04:00
TheWitness 89d069e7fd Fixing Issue #3769
Some users prefer to see all columns on the screen and do not wish that they be hidden despite the page size
2020-08-26 21:31:44 -04:00
JeffandMark Brugnoli-Vinten 99d3bf86b8 Streamline Spikekill options (#3716)
Co-authored-by: Mark Brugnoli-Vinten <netniv@hotmail.com>
2020-07-23 16:16:09 +01:00
TheWitness 40bfd6c0d2 Fixing Issue #3483
date time format in Clog is not compatiable with old cacti, and default format is not the same
2020-04-23 20:14:20 -04:00
TheWitness be74a1e0c8 Fixing issues #3488, #3484
* 1.2.11 shows snmpv3 password is not obfuscated in device defaults screen
* In automation, when viewing an 'SNMP option set', the private passphrase is in clear
2020-04-23 20:06:51 -04:00
TheWitness 6a2d781778 Fixing Issue #3374 Cacti Cookie Domain
* Allow Setting of Cookie 'Cacti' domain edition
* This also allows the Cacti administrator to extend the content security policy to include unsafe-eval for scripts.
2020-03-24 19:12:48 -04:00
TheWitness c8c21aabf0 Fixing Issue #2580
DSStats adding more and more processes until server stops
2020-03-16 21:16:23 -04:00
TheWitness 17cbcca945 Fixing Issue #3237
Report gets resent every poller cycle
2020-03-14 13:39:43 -04:00
TheWitness 3e842ca8de Fixing Issue #3304
Allow Basic Auth Accounts to be Mapped by CSV File
2020-03-14 05:34:18 -04:00
TheWitness efa566e0e5 Fixing Issue #3335
Unable to hide Device based Aggregate Graphs on Tree
2020-03-09 21:27:31 -04:00
TheWitness 44f3cb9158 Update wording for resource cache disablement 2020-02-24 07:51:56 -05:00
netniV 4fa9a68fb3 Update copyright to 2020 2020-01-12 12:19:49 +00:00
cigamit 93ff2bf4bb Resolving Issues #1228, #2888, and #3021
* Any tree or branch with a long name force main content off screen
* Long hostnames cause template filter to go off page
* Tree view cuts off at the bottom of page on modern theme
* Introducing new settings Min Tree Width and Max Tree Width in Settings > Visual and User Profile.
* Corrects a major slowdown in graph templates are presented due to removal of very slow textWidth() function.
2019-11-10 11:43:49 -06:00
cigamit 55c17d4f0e Resolving Issue #3079
Allow for domain names to be stripped from long device descriptions
2019-11-09 18:44:53 -06:00
cigamit 817b3b7732 Resolving Issue #3077
Allow disabling remote poller resource cache replication to support upgrade testing
2019-11-09 18:00:41 -06:00
netniV 2b9d00f183 Correct usage of affect vs effect in strings
Closes #2909
2019-08-22 14:58:59 +00:00