Enable use of nscd_nischeck and secure tables.
authordrepper <drepper>
Sun, 13 Jun 1999 09:36:39 +0000 (09:36 +0000)
committerdrepper <drepper>
Sun, 13 Jun 1999 09:36:39 +0000 (09:36 +0000)
nscd/nscd.init

index 63172a0..6dc9d76 100644 (file)
 case "$1" in
     start)
        secure=""
-#      for table in passwd group
-#      do
-#              if egrep '^'$table':.*nisplus' /etc/nsswitch.conf >/dev/null
-#              then
-#                      /usr/lib/nscd_nischeck $table ||
-#                              secure="$secure -S $table,yes"
-#              fi
-#      done
+       for table in passwd group hosts
+       do
+               if egrep '^'$table':.*nisplus' /etc/nsswitch.conf >/dev/null
+               then
+                       /usr/sbin/nscd_nischeck $table ||
+                               secure="$secure -S $table,yes"
+               fi
+       done
         echo -n "Starting Name Switch Cache Daemon: "
        daemon nscd $secure
         echo