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