Commit Graph
2861 Commits
Author SHA1 Message Date
cigamit d32e631421 Resolving two QA problems from RHEL6.9 testing 2017-12-31 13:41:12 -06:00
netniV 70c55ebe21 Changed CLOG to use regex replacement for Device[] and DS[] (#1159)
* Changed to use regex replacement for Device[] and DS[]
Also fixes issue #1158

* Updated CHANEGLOG for issue #1158

* Fix spacing issues with Spine logs

* Correct use of db_fetch_assoc_prepared

* Fix syntax error from last commit
2017-12-31 13:41:12 -06:00
netniV 498b498c6f Fix for Issue #1157 (#1160)
SQL Statements have now been corrected to prevent erroring during COUNT() and when using different auth method
2017-12-31 13:41:12 -06:00
cigamit 698f8432a7 Resolving Issue #1157
Resolving issue with branch permission API
2017-12-29 10:31:47 -06:00
cigamit f6510d6805 Add physical location to the device
Add the location column to the host table and form objects.  This will
allow one additional level to the Site tree branches.
2017-12-27 20:24:03 -06:00
cigamit 25f87d9fdd Merge remote-tracking branch 'refs/remotes/origin/develop' into feature/1.2.x
# Conflicts:
#	docs/CHANGELOG
2017-12-27 08:16:09 -06:00
cigamit b7d9b4c9b1 Resolving Issue #1155
Non-secure mail setting not functional due to changes in phpmailer.
2017-12-27 08:14:39 -06:00
cigamit 4158be6b63 Resolving Issue #871
Finalize the internationalization of RRDtool commands.  This version
will also fix Nth percentile calculations which require the C LANG
variable to be set to the correct value with PHP.  Tested with RRDtool
1.7, but may work with earlier RRDtool versions.  Does not work with
RRDtool 1.4.x which comes with RHEL7/CENTOS7.
2017-12-26 08:15:39 -06:00
cigamit 7f3949280f Resolving Issue #871
Allow Nth Percentile and Bandwidth Summation to respect 'Base Value' in
template
2017-12-25 14:41:09 -06:00
cigamit 758e836293 Resolving Issue #871
Allow Nth Percentile and Bandwidth Summation to respect 'Base Value' in
template
2017-12-25 14:39:25 -06:00
cigamit 0f293a9472 Issue with version_to_decimal() function 2017-12-24 12:05:32 -06:00
cigamit 7a63b76b2a Attempt to resolve Issue #1128
Locale not correct for graph output.
2017-12-24 12:05:32 -06:00
cigamit 3002c035b9 Issue with version_to_decimal() function 2017-12-24 12:04:58 -06:00
cigamit dbc9a04c7c Attempt to resolve Issue #1128
Locale not correct for graph output.
2017-12-24 11:06:31 -06:00
cigamit 8ee60a9168 Merge remote-tracking branch 'refs/remotes/origin/develop' into feature/1.2.x
# Conflicts:
#	include/global_arrays.php
2017-12-24 08:54:22 -06:00
cigamit 8a42ab3aa7 Some pagination not translated into foreign languages 2017-12-24 08:11:25 -06:00
cigamit 2dcec10257 Merge remote-tracking branch 'refs/remotes/origin/develop' into feature/1.2.x
# Conflicts:
#	auth_login.php
#	lib/auth.php
2017-12-23 14:01:01 -06:00
cigamit 475b2f408d Minor format issues after merge of #1129 2017-12-23 13:50:56 -06:00
netniV 5ce4bea475 Fix issue #1122 - Local user login fails with Multi/Single LDAP enabled (#1129)
* Fix issue #1122 - Local user login fails with Multi/Single LDAP enabled

Code was not consistent with how it was generating the password hashes and comparing them. To fix this, added compat_password_xxx functions that check for the availability of the newer password_xxx functions and if not present revert back to the md5 version.

Changes made are:

auth_changepassword.php:
* Break out of switch when error message set
* Reduce duplication of code when checking passwords
* Use local variables rather than constantly pulling in request ones
* Use new compat_password_xxx functions

auth_login.php:
* Added some debug logging to identify login issues
* Allow local login even if using ldap
* Use new compat_password_xxx functions
* Remove password from SQL search as hash can change and we don't know what it would have been at the time it was set

user_admin.php
* Use new compat_password_xxx functions

lib\auth.php:
* Added compat_password_verify, compat_password_hash and compat_password_rehash to check for PHP 5.7+ compatible functions other use MD5
* Reduced SQL query to just required user in secpass_login_process()
* Fixed password check in secpass_check_history()
* Fixed return value check of secpass_check_pass() in secpass_login_process()
* Use new compat_password_xxx functions

* Update CHANGELOG

* Fixup for Issue #1122, corrects some minor issues

* Merge branch 'Issue-1122' of https://github.com/netniV/cacti into Issue-1122

Update log message to be warning notj ust a normal message

* Fix issue of local auth bypas

* Update CHANGELOG

Fix up CHANGELOG issues

* Update auth.php

Fix up formatting issues
2017-12-23 13:37:05 -06:00
netniV 979373fea4 Fix issue #1122 - Local user login fails with Multi/Single LDAP enabled (#1129)
* Fix issue #1122 - Local user login fails with Multi/Single LDAP enabled

Code was not consistent with how it was generating the password hashes and comparing them. To fix this, added compat_password_xxx functions that check for the availability of the newer password_xxx functions and if not present revert back to the md5 version.

Changes made are:

auth_changepassword.php:
* Break out of switch when error message set
* Reduce duplication of code when checking passwords
* Use local variables rather than constantly pulling in request ones
* Use new compat_password_xxx functions

auth_login.php:
* Added some debug logging to identify login issues
* Allow local login even if using ldap
* Use new compat_password_xxx functions
* Remove password from SQL search as hash can change and we don't know what it would have been at the time it was set

user_admin.php
* Use new compat_password_xxx functions

lib\auth.php:
* Added compat_password_verify, compat_password_hash and compat_password_rehash to check for PHP 5.7+ compatible functions other use MD5
* Reduced SQL query to just required user in secpass_login_process()
* Fixed password check in secpass_check_history()
* Fixed return value check of secpass_check_pass() in secpass_login_process()
* Use new compat_password_xxx functions

* Update CHANGELOG

* Fixup for Issue #1122, corrects some minor issues

* Merge branch 'Issue-1122' of https://github.com/netniV/cacti into Issue-1122

Update log message to be warning notj ust a normal message

* Fix issue of local auth bypas

* Update CHANGELOG

Fix up CHANGELOG issues

* Update auth.php

Fix up formatting issues
2017-12-23 12:58:03 -06:00
cigamit 52d3106201 Resolving issues with the cacti_version_compare()
The cacti_version_compare() function was not operating properly when
moving between second order point versions (eg 1.1.29 to 1.2.0).  This
is resolved through a minor change to the cacti_version_compare()
function and the version_to_decimal() function.
2017-12-23 09:31:30 -06:00
cigamit 586212295a Resolving issues with the cacti_version_compare()
The cacti_version_compare() function was not operating properly when
moving between second order point versions (eg 1.1.29 to 1.2.0).  This
is resolved through a minor change to the cacti_version_compare()
function and the version_to_decimal() function.
2017-12-23 09:30:48 -06:00
cigamit d580344083 Resolving Issue #1121
Bandwidth summation not using correct locale
2017-12-23 08:21:35 -06:00
netniV 9b70437ca3 Fix for issue #1130 (#1150)
Using cacti_log() with the optional POLLER_VERBOSITY_xxx paramater resulted in mising logs if they were set to the same level as the poller log level in settings
2017-12-23 08:21:35 -06:00
cigamit 5c17ad8b67 Resolving Issue #1121
Bandwidth summation not using correct locale
2017-12-23 08:20:18 -06:00
netniV 5bd73b8318 Fix for issue #1130 (#1150)
Using cacti_log() with the optional POLLER_VERBOSITY_xxx paramater resulted in mising logs if they were set to the same level as the poller log level in settings
2017-12-23 08:03:27 -06:00
Tomasz Chiliński 6951422458 CHILAN: allow to select many lines by interval determined by previously clicked line and lately clicked line with shift key pressed (continuation of work started in pull request #1132) (#1148) 2017-12-22 09:54:23 -06:00
Tomasz Chiliński d0468112c0 CHILAN: allow to select many lines by interval determined by previously clicked line and lately clicked line with shift key pressed (continuation of work started in pull request #1132) (#1148) 2017-12-22 09:53:38 -06:00
cigamit 7ed134070a Resolving Issue #1142
Add Site dropdown to the Graphs and Data Sources pages
2017-12-21 20:00:18 -06:00
cigamit 439d93eef4 Merge remote-tracking branch 'refs/remotes/origin/develop' into feature/1.2.x
# Conflicts:
#	lib/template.php
#	scripts/ss_host_cpu.php
2017-12-21 19:49:04 -06:00
netniV f2790006af Fix Issue #1133 - Incorrect variable name (#1134)
* Fix Issue #1133 - Incorrect variable name

Fixed the incorrect use of $totle in place of $title resulting in database insertion errors.

* Update import.php

Fix debug display to match code.

* Update CHANGELOG
2017-12-21 07:49:03 -06:00
cigamit 7226bb59de Merge remote-tracking branch 'refs/remotes/origin/develop' into feature/1.2.x
Update from develop
2017-12-03 09:08:35 -06:00
cigamit 139ec68a70 Be more consistent with feature 1.2 branch.
Note that this does not break functionality in 1.1.x.
2017-12-03 09:07:09 -06:00
cigamit 801d4e0b70 Resolve SQL/permission issues with get_allowed_graph_templates
This occurred due to the optimizations in pull request #1101.  The
$sql_user must, in it's entirety, be enclosed in parenthesis.
Otherwise, expand host functionality breaks.

I've also added the site_id in this commit to reduce the effort in
attempting to maintain both the feature branch and the develop branch.
It's not used, but returned.
2017-12-03 08:59:01 -06:00
cigamit 251a22ecff Merge remote-tracking branch 'refs/remotes/origin/develop' into feature/1.2.x
Updating feature 1.2 branch from Develop
2017-12-03 08:02:58 -06:00
cigamit 14be99a33b Final fix for Issue #1072
This commit adds a new function to validate input string from the hash
value.  Should resolve the last outstanding issue.
2017-12-02 12:16:27 -06:00
cigamit a47d713d7b Resolving Issue #1104
Different Timestamps in Cacti log when in Developer Debug
2017-12-02 11:16:14 -06:00
netniV 1025bd4a7f Fix issue #965 - LDAP search error results (#1112)
* Fix issue #965 - LDAP search erorr results

Corrected the error number returned by "Unable to set referrrals" to the correct number.

Added a new error for finding a users DN but not finding the user from the DN.

* Updated changelog for issue #965
2017-12-02 11:30:58 -05:00
cigamit 708be5b19f Cleanup after pull request #1177
Cleanup includes some misqueues in the pull request as well as some
other miscelaneous changes associated with how we have landed on
formatting.

Chagne include:
* No soft tabs on initial tabbing
* ON clause of JOIN should be capitalized and on separate line
* AND/OR should be capitalized in SQL Queries
* Formatting of db_..() functions calls
* Use of sizeof() instead of isset() for array checks
* i18n of Secpass check return values
* Remove trailing whitespace from lines

- ToDo: Remove more having in place of WHERE clauses
2017-12-02 10:26:34 -06:00
netniV 563e1ae09c Fixes for issues #1084, #1106 and #1116 (#1117)
* Fixes for issues 1106 (Graph filters), 1084 (Tree Branch population), and 1116 (Device Template won't set to none)

* Updated changelog\nfor issues #1084, #1106 and #1116
2017-12-02 10:57:08 -05:00
Patrick 50b358a194 Small rewrite/optimisation for auth query in issue #1091 (#1101) 2017-11-26 08:47:06 -06:00
cigamit 2c00d59b35 Resolving Issue #1097
Template user issues including:
- All template users should be disabled by default
- When a user is copied, enable that user by default
2017-11-23 12:30:56 -06:00
cigamit cd8618f5fd More updates for issue #1072
- Moving the json_decode to associative arrays.
- Add update poller cache validation check that was previously missed
- Minor reformating of function calls, database calls, etc.
2017-11-23 08:30:08 -06:00
Tony Roman c9b7408b17 Refactor get_selected_theme function 2017-11-23 09:09:43 -05:00
Tony Roman f378869f4b Merge branch 'develop' into feature/1.2.x 2017-11-22 12:33:26 -05:00
Tony Roman f3673b4686 New Graph pagenation and filter reset 2017-11-22 12:32:48 -05:00
Tony Roman 6732e2ddd8 Fix up data input whitelist for realz 2017-11-22 12:22:42 -05:00
Tony Roman af4f440ec9 Update input whitelisting to require defining configuration variable 2017-11-22 07:58:41 -05:00
Tony Roman 5f052cc894 Fix invalid value in data input whitelist validation function 2017-11-21 20:45:35 -05:00
Tony Roman 59e8199101 Update data input whitelist feature 2017-11-21 20:35:44 -05:00