Skip to content

Commit 73a7249

Browse files
committed
conf/nutauth.conf.sample.in, configure.ac, conf/Makefile.am, conf/.gitignore: add example config for nutauth.conf [#3329]
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
1 parent 2a479ee commit 73a7249

4 files changed

Lines changed: 48 additions & 3 deletions

File tree

conf/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/nutauth.conf.sample
12
/upsmon.conf.sample
23
/upssched.conf.sample
34
/upsstats-single.html.sample

conf/Makefile.am

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ INSTALL_0600 = $(INSTALL) -m 0600
77
# Note: ups.conf is a secured file, because for networked devices
88
# it can contain SNMP, NetXML, IPMI or similar credentials
99
SECFILES_STATIC = upsd.conf.sample upsd.users.sample ups.conf.sample
10-
SECFILES_GENERATED = upsmon.conf.sample
10+
SECFILES_GENERATED = upsmon.conf.sample nutauth.conf.sample
1111
PUBFILES_STATIC = nut.conf.sample
1212
PUBFILES_GENERATED = upssched.conf.sample
1313
CGIPUB_STATIC = hosts.conf.sample upsset.conf.sample
@@ -31,7 +31,7 @@ nodist_conf_examples_DATA = $(SECFILES_GENERATED) $(PUBFILES_GENERATED) \
3131
$(CGI_INSTALL_GENERATED)
3232

3333
SPELLCHECK_SRC = $(dist_sysconf_DATA) \
34-
upssched.conf.sample.in upsmon.conf.sample.in \
34+
nutauth.conf.sample.in upssched.conf.sample.in upsmon.conf.sample.in \
3535
upsstats-modern-list.html.sample.in upsstats-modern-single.html.sample.in \
3636
upsstats.html.sample.in upsstats-single.html.sample.in
3737

@@ -55,6 +55,6 @@ SPELLCHECK_SRC = $(dist_sysconf_DATA) \
5555
spellcheck spellcheck-interactive spellcheck-sortdict: @dotMAKE@
5656
+$(MAKE) -f $(top_builddir)/docs/Makefile $(AM_MAKEFLAGS) MKDIR_P="$(MKDIR_P)" builddir="$(builddir)" srcdir="$(srcdir)" top_builddir="$(top_builddir)" top_srcdir="$(top_srcdir)" SPELLCHECK_SRC="$(SPELLCHECK_SRC)" SPELLCHECK_SRCDIR="$(srcdir)" SPELLCHECK_BUILDDIR="$(builddir)" $@
5757

58-
58+
# WARNING: Do not clean away files generated from templates by configure script!
5959
MAINTAINERCLEANFILES = Makefile.in .dirstamp
6060
CLEANFILES = *.pdf *.html *-spellchecked

conf/nutauth.conf.sample.in

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# The `nutauth.conf` file conveys information needed for NUT clients to
2+
# authenticate themselves to a NUT data server, as well as to validate
3+
# that this is a server they want to trust (when SSL/TLS mode is used).
4+
#
5+
# By default, these files are located in either a per-user location like
6+
# `${HOME}/.config/nut/nutauth.conf` or `${HOME}/.nutauth.conf`, or a
7+
# site default `${NUT_CONFDIR}/nutauth.conf` (whichever is found first).
8+
# Such a file may `INCLUDE` further configurations (e.g. hop from a
9+
# per-user file to load server-wide defaults) if desired.
10+
#
11+
# While it usually suffices to have one client certificate for all servers,
12+
# it may be that some remote system owned/managed by a different department
13+
# would insist on *themselves* issuing (and revoking) certificates for their
14+
# equipment. In this case, you can specify connection-specific settings.
15+
16+
# Example contents:
17+
#
18+
# # Global section, inherited and overridden per line by others:
19+
# CERTPATH = @CONFPATH@/certs/client
20+
# # CERTFILE is only relevant for OpenSSL:
21+
# CERTFILE = @CONFPATH@/certs/client/nut-client-hostname.pem
22+
# CERTIDENT_NAME = "NUT Client"
23+
# CERTIDENT_PASS = "KeyP@$$phrase!"
24+
# CERTVERIFY = 1
25+
# FORCESSL = -1
26+
#
27+
# [@localhost]
28+
# USER = "admin"
29+
# PASS = "Adm1n!Pass"
30+
#
31+
# [upsmonuser@localhost]
32+
# PASS = "monitor"
33+
# # Note you can not override USER in this context,
34+
# # where it is part of section name
35+
#
36+
# [@remote-host:34935]
37+
# USER = "other-user"
38+
# PASS = "other_pass"
39+
# CERTPATH = @CONFPATH@/certs/client-for-remote-host
40+
# CERTIDENT_NAME = "NUT Client for remote host"
41+
# CERTIDENT_PASS = "C00lP@$$"
42+
# CERTVERIFY = 1
43+
# FORCESSL = 1

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7282,6 +7282,7 @@ AC_CONFIG_FILES([
72827282
clients/Makefile
72837283
common/Makefile
72847284
conf/Makefile
7285+
conf/nutauth.conf.sample
72857286
conf/upsmon.conf.sample
72867287
conf/upssched.conf.sample
72877288
conf/upsstats.html.sample

0 commit comments

Comments
 (0)