Why the order of automount entry defined in /etc/nsswitch.conf is ignored when "+auto_master" is in /etc/auto.master

Solution Unverified - Updated -

Issue

  • automount entry in /etc/nsswitch.conf has "files ldap".
  • /etc/auto.master has the following data.
/misc   /etc/auto.misc
/net    -hosts
+auto.master
/exports    /etc/auto.direct
  • ldap also provide another map entry for /exports
  • We expected that the map entry for /exports from 'files' source was used by automount daemon, upon the order in /etc/nsswitch.conf.
  • But, the map from 'ldap' was used.
  • When I deleted +auto.master, the map from 'files' was used as expected.
  • Why the order defined in /etc/nsswitch.conf was ignored?
  • Why the map from 'files' was used, when "+auto.master" is deleted?

Environment

Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.