Skip to content

Commit 01d62d3

Browse files
authored
Merge 9a64cd8 into 0d2c7a1
2 parents 0d2c7a1 + 9a64cd8 commit 01d62d3

57 files changed

Lines changed: 3620 additions & 188 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

NEWS.adoc

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,31 @@ https://github.com/networkupstools/nut/milestone/13
106106
allows to pass the `certfile` argument needed for OpenSSL builds. [#3331]
107107
* The `libupsclient` (C) and `libnutclient` (C++) API were updated to
108108
report the ability to check `CERTIDENT` information. [#3331]
109+
* Introduced support for "authconf" files to store and convey NUT client
110+
authentication details. [issue #3329]
111+
112+
- `upsc`, `upscmd`, `upsrw` command-line client updates:
113+
* Enabled support for `nutauth.conf` files to provide credentials and/or
114+
SSL settings in the client which previously only did best-effort attempts
115+
at secure communications without an individual certificate, and only
116+
anonymously for reading. The new `-A filename` option defaults to trying
117+
to use a `nutauth.conf` file (if found in one of the default locations)
118+
but not failing if one is not usable; specific values can require use of
119+
such a file (`default`) or to not even try reading one (`none`).
120+
[issues #3329, #3411]
121+
122+
- `upslog` client/tool updates:
123+
* Added support for best-effort use of `nutauth.conf` files from default
124+
locations or via `-A` option, as described above. Since this client
125+
can establish multiple connections, keep in mind that currently it
126+
can only identify itself with some one (first seen) client certificate,
127+
if `CERTIDENT` settings are used. Multiple `CERTHOST` directives for
128+
specially trusted servers can be used. [#3329]
129+
130+
- `upsstats`, `upsset`, `upsimage` CGI client updates:
131+
* Added support for best-effort use of `nutauth.conf` files from default
132+
locations described above (no way to choose the location, other than
133+
by web-server environment variables for CGI calls). [#3329]
109134

110135
- `upsmon` client updates:
111136
* Introduced support for `CERTFILE` option, so the client can identify

UPGRADING.adoc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,17 @@ Changes from 2.8.5 to 2.8.6
4646
if the requested value is larger than what is allowed (minus some reserve
4747
for configuration files and other use-cases). [issue #3365]
4848
49+
- Enabled support for `nutauth.conf` files to provide credentials and/or
50+
SSL settings in clients which previously only did best-effort attempts at
51+
secure communications without an individual certificate, and only anonymously
52+
for reading like `upsc`.
53+
+
54+
The new `-A filename` option defaults to trying to use a `nutauth.conf` file
55+
(if found in one of the default locations) but not failing if one is not
56+
usable; specific values can require use of such a file or to not even try
57+
reading one ('none' as the legacy default). See the updated manual pages
58+
for more details. [issues #3329, #3411]
59+
4960
5061
Changes from 2.8.4 to 2.8.5
5162
---------------------------

clients/Makefile.am

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ endif HAVE_CXX11
110110

111111
# Optionally deliverable as part of NUT public API:
112112
if WITH_DEV
113-
include_HEADERS = upsclient.h
113+
include_HEADERS = upsclient.h authconf.h
114114
if HAVE_CXX11
115115
include_HEADERS += nutclient.h nutclientmem.h
116116
else !HAVE_CXX11
@@ -170,7 +170,7 @@ upsstats_cgi_LDADD = $(LDADD_CLIENT) $(top_builddir)/common/libcommonstrjson.la
170170
# but it needs nut_version.h made before the rest of build,
171171
# to include it into upsclient.c (without an explicit link,
172172
# this target is sometimes missed in parallel builds):
173-
libupsclient_la_SOURCES = upsclient.c upsclient.h
173+
libupsclient_la_SOURCES = upsclient.c upsclient.h authconf.c authconf.h
174174

175175
# See comments for similar trick in common/Makefile.am for common-nut_version.c
176176
if BUILDING_IN_TREE

0 commit comments

Comments
 (0)