Bug 84161 - autofs tries to get map from yp instead of ldap
autofs tries to get map from yp instead of ldap
Product: Red Hat Linux
Classification: Retired
Component: autofs (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Nalin Dahyabhai
Brock Organ
Depends On:
  Show dependency treegraph
Reported: 2003-02-12 16:59 EST by Chris Hedemark
Modified: 2007-04-18 12:51 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-03-26 16:21:12 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Chris Hedemark 2003-02-12 16:59:32 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.2.1) Gecko/20021130

Description of problem:
I have found this issue on other versions but it does not yet seem to be a
reported bug on 8.0.

I am authenticating against LDAP (works fine) but the automounter is confused in
thinking that the automount maps should come from yp instead of ldap.

Clearly he's getting something right (see results), but the yp bit messes things

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Run "authconfig" and authenticate against an LDAP server
2. Set up auto.home in LDAP
3. Log in as an LDAP user.

Actual Results:  [root@moby root]# service autofs status
Configured Mount Points:
/usr/sbin/automount /ldhome yp ldap ldap.cc3.com:ou=auto.home,dc=cc3unix,dc=com 

Active Mount Points:
[root@moby root]# su - chrish
su: warning: cannot change directory to /ldhome/chrish: No such file or directory

Expected Results:  /ldhome/chrish should be mounted when user chrish logs in.

Additional info:

I have an enterprise support contract on this machine.
Comment 1 Chris Hedemark 2003-03-18 14:42:37 EST
I have to confirm but I think this may have been caused by the ldap migration
scripts (bundled in RHL) which incorrectly create auto.master entries with a
space where a colon should go to separate fields.  I manually adjusted the value
accordingly and everything started working on its own.
Comment 2 Nalin Dahyabhai 2003-03-26 16:21:12 EST
This appears to be a configuration error in the original /etc/auto.master file
which was passed to the migration script, as I was able to duplicate the
behavior you're describing by removing the colon between "ldap" and the
directory server's hostname and running the migration script again.

With the colon reintroduced, the migration script produced the desired LDIF,
which when imported into a directory server was properly read by the
autofs-ldap-auto-master helper and the init script.  Closing as WORKSFORME.

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