Bug 203467 - autofs initscript in 4.1.3-187 breaks NIS mapping
Summary: autofs initscript in 4.1.3-187 breaks NIS mapping
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: autofs
Version: 4.4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Jeff Moyer
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-08-21 22:44 UTC by Link Dupont
Modified: 2007-11-17 01:14 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-09-13 20:30:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
autofs-4.1.3-187-basename.patch (335 bytes, patch)
2006-08-21 22:44 UTC, Link Dupont
no flags Details | Diff
Updated for 64-bit (828 bytes, text/plain)
2006-09-05 14:52 UTC, Link Dupont
no flags Details

Description Link Dupont 2006-08-21 22:44:19 UTC
Description of problem:
automounts from NIS no longer mounting with certain NIS map configurations

Version-Release number of selected component (if applicable):
autofs-4.1.3-187 & 4.1.3-186

Our NIS environment has NIS maps that look like the following:
/ypsrc/auto.build --timeout=60
/ypsrc/auto.home --timeout=60

The latest autofs initscript (that uses the new nsswitch binary for NIS map
parsing) does not take these prefix pathes into account, and subsequently fails
when trying to parse the maps.
This was worked around before by running basename on the $map before parsing it.

The attached patch adds back in 1 line into the autofs initscript which runs
basename on the $map before handing it off to nsswitch. This patch does fix our
environment, though I don't know if you want to apply this type of fix in the
nsswitch binary itself, or in the autofs initscript.

Comment 1 Link Dupont 2006-08-21 22:44:20 UTC
Created attachment 134604 [details]
autofs-4.1.3-187-basename.patch

Comment 2 Roger Lin 2006-09-01 22:03:35 UTC
Thanks for the quick fix. I can confirm that map names get '/etc' prepended.

Comment 3 Link Dupont 2006-09-05 14:52:53 UTC
Created attachment 135564 [details]
Updated for 64-bit

Apparently the first patch shell didn't apply on 64-bit systems because if the
lib64 naming scheme, so this script should correctly detect the architecture of
the machine and patch accordingly.

Comment 4 Jeff Moyer 2006-09-07 18:38:25 UTC
thanks for the effort, but this is the wrong place to fix the problem.  Please
try this patch, instead.

https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=133583

Comment 5 Jeff Moyer 2006-09-13 20:30:53 UTC
Closing as a duplicate.  I've added those on the CC list here to the CC list of
202860.

*** This bug has been marked as a duplicate of 202860 ***

Comment 6 Jeff Moyer 2006-09-20 13:34:35 UTC
It turns out that prefixing maps with /ypsrc/ was done to indicate that the maps
should come from NIS.  This is not a supported convention;  I think it worked by
accident, before.  The maps can be changed to use yp: instead of /ypsrc/, or you
can simply rely upon the name service switch configuration to determine the
source of the maps.


Note You need to log in before you can comment on or make changes to this bug.