* nesting automount maps in ldap
@ 2011-06-17 14:40 Jimmy Dorff
2011-06-17 20:40 ` Jimmy Dorff
2011-06-18 10:26 ` Ian Kent
0 siblings, 2 replies; 4+ messages in thread
From: Jimmy Dorff @ 2011-06-17 14:40 UTC (permalink / raw)
To: autofs
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: nesting automount maps in ldap
2011-06-17 14:40 nesting automount maps in ldap Jimmy Dorff
@ 2011-06-17 20:40 ` Jimmy Dorff
2011-06-18 10:30 ` Ian Kent
2011-06-18 10:26 ` Ian Kent
1 sibling, 1 reply; 4+ messages in thread
From: Jimmy Dorff @ 2011-06-17 20:40 UTC (permalink / raw)
To: autofs
On 06/17/2011 10:40 AM, Jimmy Dorff wrote:
> # 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
My problem was the lack of "-fstype=autofs".
This works:
dn: cn=project,ou=auto.phy,dc=phy,dc=duke,dc=edu
objectClass: automount
cn: project
automountInformation: -fstype=autofs ou=auto.project,dc=phy,dc=duke,dc=edu
I also think this is called "layering" rather than "nesting".. but I'm
not sure.
Cheers,
Jimmy
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: nesting automount maps in ldap
2011-06-17 14:40 nesting automount maps in ldap Jimmy Dorff
2011-06-17 20:40 ` Jimmy Dorff
@ 2011-06-18 10:26 ` Ian Kent
1 sibling, 0 replies; 4+ messages in thread
From: Ian Kent @ 2011-06-18 10:26 UTC (permalink / raw)
To: Jimmy Dorff; +Cc: autofs
On Fri, 2011-06-17 at 10:40 -0400, Jimmy Dorff wrote:
> 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
I'm not sure about using this older syntax.
Even if it is correct and we find a bug with it I'd be inclined to
recommend using the newer syntax if possible.
That would be (IIRC):
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.
Log a RHEL bug (you probably should go via support actually) and include
a full debug log.
That is set LOGGING="debug" in /etc/sysconfig/autofs "and" ensure that
daemon.* output is being captured by syslog.
>
> Thanks!
> Jimmy Dorff
>
> _______________________________________________
> autofs mailing list
> autofs@linux.kernel.org
> http://linux.kernel.org/mailman/listinfo/autofs
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: nesting automount maps in ldap
2011-06-17 20:40 ` Jimmy Dorff
@ 2011-06-18 10:30 ` Ian Kent
0 siblings, 0 replies; 4+ messages in thread
From: Ian Kent @ 2011-06-18 10:30 UTC (permalink / raw)
To: Jimmy Dorff; +Cc: autofs
On Fri, 2011-06-17 at 16:40 -0400, Jimmy Dorff wrote:
> On 06/17/2011 10:40 AM, Jimmy Dorff wrote:
> > # 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
>
> My problem was the lack of "-fstype=autofs".
Oh .. yeah, that may well be it, but that should have been needed in the
original map. Maybe a look at a debug log would be useful and that
should show pretty quickly if it is just the missing fstype option.
>
> This works:
> dn: cn=project,ou=auto.phy,dc=phy,dc=duke,dc=edu
> objectClass: automount
> cn: project
> automountInformation: -fstype=autofs ou=auto.project,dc=phy,dc=duke,dc=edu
>
> I also think this is called "layering" rather than "nesting".. but I'm
> not sure.
Maybe, but the terminology I've always used for these is "submount", as
in a sub autofs mount.
Ian
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-06-18 10:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-17 14:40 nesting automount maps in ldap Jimmy Dorff
2011-06-17 20:40 ` Jimmy Dorff
2011-06-18 10:30 ` Ian Kent
2011-06-18 10:26 ` Ian Kent
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.