All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jimmy Dorff <jdorff@phy.duke.edu>
To: autofs@linux.kernel.org
Subject: nesting automount maps in ldap
Date: Fri, 17 Jun 2011 10:40:05 -0400	[thread overview]
Message-ID: <4DFB6745.3040805@phy.duke.edu> (raw)

Hello,

I'm attempting to migrate an existing (and working) nis automount system 
to ldap. We have several layers of nested maps and I'm attempting to 
recreate that in LDAP.

# Automount master for "/foo"
dn: cn=/foo, ou=auto.master,dc=phy,dc=duke,dc=edu
objectClass: automount
cn: /foo
automountInformation: ldap ldapserver:ou=auto.phy,dc=phy,dc=duke,dc=edu

dn: ou=auto.phy, dc=phy,dc=duke,dc=edu
objectClass: top
objectClass: automountMap
ou: auto.phy

# mounting "/foo/web" works great!
dn: cn=web, ou=auto.phy, dc=phy,dc=duke,dc=edu
objectClass: automount
cn: web
automountInformation: -fstype=nfs nfsserver01:/srv/httpd

# here is my attempt at nesting another level
dn: cn=project, ou=auto.phy,dc=phy,dc=duke,dc=edu
objectClass: automount
cn: project
automountInformation: ldap ldapserver:ou=auto.project,dc=phy,dc=duke,dc=edu

# This fails. I get "automount: failed to mount /foo/project
dn: ou=auto.project, dc=phy,dc=duke,dc=edu
objectClass: top
objectClass: automountMap
ou: auto.project

# this never shows up (ghosting enabled)
dn: cn=linux, ou=auto.project, dc=phy,dc=duke,dc=edu
objectClass: automount
cn: linux
automountInformation: -fstype=nfs nfsserver02:/srv/linux

I can't see to find an example of nest ldap maps. I'm using 
autofs-5.0.5-31.el6 if that makes any difference.

Thanks!
Jimmy Dorff

             reply	other threads:[~2011-06-17 14:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-17 14:40 Jimmy Dorff [this message]
2011-06-17 20:40 ` nesting automount maps in ldap Jimmy Dorff
2011-06-18 10:30   ` Ian Kent
2011-06-18 10:26 ` Ian Kent

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DFB6745.3040805@phy.duke.edu \
    --to=jdorff@phy.duke.edu \
    --cc=autofs@linux.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.