summaryrefslogtreecommitdiff
path: root/data/templates/login/nsswitch.conf.j2
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/login/nsswitch.conf.j2')
-rw-r--r--data/templates/login/nsswitch.conf.j220
1 files changed, 20 insertions, 0 deletions
diff --git a/data/templates/login/nsswitch.conf.j2 b/data/templates/login/nsswitch.conf.j2
new file mode 100644
index 0000000..0adfb49
--- /dev/null
+++ b/data/templates/login/nsswitch.conf.j2
@@ -0,0 +1,20 @@
+# automatically generated by system_login.py ###
+# /etc/nsswitch.conf
+#
+# Example configuration of GNU Name Service Switch functionality.
+
+passwd: {{ 'mapuid ' if radius is vyos_defined }}{{ 'tacplus ' if tacacs is vyos_defined }}files{{ ' mapname' if radius is vyos_defined }}
+group: {{ 'mapname ' if radius is vyos_defined }}{{ 'tacplus ' if tacacs is vyos_defined }}files
+shadow: files
+gshadow: files
+
+# Per T2678, commenting out myhostname
+hosts: files dns #myhostname
+networks: files
+
+protocols: db files
+services: db files
+ethers: db files
+rpc: db files
+
+netgroup: nis