0b26f7
The Fedora /etc/nsswitch.conf is based largely on the upstream
0b26f7
version with minor downstream distribution modifications for
0b26f7
use with SSSD and systemd.
0b26f7
0b26f7
diff --git a/nss/nsswitch.conf b/nss/nsswitch.conf
0b26f7
index 4a6bcb1f7bc0b1f4..980a68e32e6a04b8 100644
0b26f7
--- a/nss/nsswitch.conf
0b26f7
+++ b/nss/nsswitch.conf
0b26f7
@@ -1,7 +1,7 @@
0b26f7
 #
0b26f7
 # /etc/nsswitch.conf
0b26f7
 #
0b26f7
-# An example Name Service Switch config file. This file should be
0b26f7
+# Name Service Switch config file. This file should be
0b26f7
 # sorted with the most-used services at the beginning.
0b26f7
 #
0b26f7
 # Valid databases are: aliases, ethers, group, gshadow, hosts,
0b26f7
@@ -52,19 +52,21 @@
0b26f7
 # shadow:    db files
0b26f7
 # group:     db files
0b26f7
 
0b26f7
-# In alphabetical order. Re-order as required to optimize peformance.
0b26f7
+# In order of likelihood of use to accelerate lookup.
0b26f7
+passwd:     sss files
0b26f7
+shadow:     files
0b26f7
+group:      sss files
0b26f7
+hosts:      files dns myhostname
0b26f7
+services:   files sss
0b26f7
+netgroup:   sss
0b26f7
+automount:  files sss
0b26f7
+
0b26f7
 aliases:    files
0b26f7
 ethers:     files
0b26f7
-group:      files
0b26f7
 gshadow:    files
0b26f7
-hosts:      files dns
0b26f7
 # Allow initgroups to default to the setting for group.
0b26f7
 # initgroups: files
0b26f7
-netgroup:   files
0b26f7
 networks:   files dns
0b26f7
-passwd:     files
0b26f7
 protocols:  files
0b26f7
 publickey:  files
0b26f7
 rpc:        files
0b26f7
-shadow:     files
0b26f7
-services:   files