Skip to contentSkip to conversation

LDAP-based "auto.net" for /net

DISCUSSION [email protected] 3 participants 8 messages Aug 21, 2008 Kernel automounter

lore
Share & tools
lore
#0 lore raw

If anyone has been successful in getting /net/hostname automounting working with LDAP-based autofs maps (not a local /etc/auto.net file), I would love to see your LDIF information showing how you configured it.

Thanks

PS: wiki.autofs.net might as well be taken off the net.
It contains absolutely nothing of worth other than a link to the mailing list stuff.

#1 lore raw
Quoted 4 lines · [email protected] writes:

If anyone has been successful in getting /net/hostname automounting working with LDAP-based autofs maps (not a local /etc/auto.net file), I would love to see your LDIF information showing how you configured it.

First, program maps must be on a file system. Second, are you using autofs version 4 or 5? If 5, then you can simply use the ldif equivalent of:

/net -hosts

Quoted 3 lines

PS: wiki.autofs.net might as well be taken off the net.
It contains absolutely nothing of worth other than a link to the mailing list stuff.

It hasn't exactly been publicized because those working on it (Ian and myself) haven't had time to make it useful. Sorry.

Cheers,

Jeff

#2 lore raw
Quoted 9 lines · Jeff Moyer
Quoted 4 lines · [email protected] writes:

If anyone has been successful in getting /net/hostname automounting working with LDAP-based autofs maps (not a local /etc/auto.net file), I would love to see your LDIF information showing how you configured it.

First, program maps must be on a file system. Second, are you using autofs version 4 or 5?

AutoFS 5.

Quoted 2 lines

If 5, then you can simply use the ldif equivalent of:
/net -hosts

That's what I am trying to do :) I was hoping someone could show me theirs. It's not clear to me how to construct that particular set of LDIF info.

#3 lore raw
Quoted 11 lines · Jeff Blaine
Quoted 9 lines · Jeff Moyer
Quoted 4 lines · [email protected] writes:

If anyone has been successful in getting /net/hostname automounting working with LDAP-based autofs maps (not a local /etc/auto.net file), I would love to see your LDIF information showing how you configured it.

First, program maps must be on a file system. Second, are you using autofs version 4 or 5?

Quoted 8 lines

AutoFS 5.

Quoted 2 lines

If 5, then you can simply use the ldif equivalent of:
/net -hosts

That's what I am trying to do :) I was hoping someone could show me theirs. It's not clear to me how to construct that particular set of LDIF info.

OK, what schema are you using?

-Jeff

maintainer
#4 lore raw
Quoted 13 lines · Jeff Moyer
Quoted 11 lines · Jeff Blaine
Quoted 9 lines · Jeff Moyer
Quoted 4 lines · [email protected] writes:

If anyone has been successful in getting /net/hostname automounting working with LDAP-based autofs maps (not a local /etc/auto.net file), I would love to see your LDIF information showing how you configured it.

First, program maps must be on a file system. Second, are you using autofs version 4 or 5?

Quoted 8 lines
Quoted 8 lines

AutoFS 5.

Quoted 2 lines

If 5, then you can simply use the ldif equivalent of:
/net -hosts

That's what I am trying to do :) I was hoping someone could show me theirs. It's not clear to me how to construct that particular set of LDIF info.

And what have you got in LDAP now or are you starting from scratch?

Quoted 9 lines

OK, what schema are you using?

-Jeff

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

#5 lore raw

I'm using the RFC2307bis schema. I have everything working so far with the exception of /net (such as auto.home).

/etc/sysconfig/autofs contains (among other things):
DEFAULT_MAP_OBJECT_CLASS="automountMap" DEFAULT_ENTRY_OBJECT_CLASS="automount" DEFAULT_MAP_ATTRIBUTE="automountMapName" DEFAULT_ENTRY_ATTRIBUTE="automountKey" DEFAULT_VALUE_ATTRIBUTE="automountInformation"

Here's LDIF of mine for a site-specific 'auto.nfs' map's entry (/NFS/reverse ----> jellyroll:/reverse)

dn: automountMapName=auto.nfs,dc=rcf,dc=foo,dc=org
objectClass: top
objectClass: automountMap
automountMapName: auto.nfs

dn: automountkey=/NFS,automountMapName=auto.master,dc=rcf,dc=foo,dc=org
objectClass: top
objectClass: automount
automountKey: /NFS
automountInformation:
ldap:rcf-ldap1.foo.org:automountmapname=auto.nfs,dc=rcf, dc=foo,dc=org

dn: automountKey=reverse,automountMapName=auto.nfs,dc=rcf,dc=foo,dc=org
objectClass: top
objectClass: automount
automountKey: reverse
automountInformation: jellyroll:/&

Quoted 31 lines · Ian Kent
Quoted 11 lines · Jeff Moyer
Quoted 9 lines · Jeff Blaine
Quoted 8 lines · Jeff Moyer
Quoted 4 lines · [email protected] writes:

If anyone has been successful in getting /net/hostname automounting working with LDAP-based autofs maps (not a local /etc/auto.net file), I would love to see your LDIF information showing how you configured it.

First, program maps must be on a file system. Second, are you using autofs version 4 or 5?

Quoted 7 lines
Quoted 7 lines

AutoFS 5.

Quoted 2 lines

If 5, then you can simply use the ldif equivalent of:
/net -hosts

That's what I am trying to do :) I was hoping someone could show me theirs. It's not clear to me how to construct that particular set of LDIF info.

And what have you got in LDAP now or are you starting from scratch?

Quoted 8 lines

OK, what schema are you using?

-Jeff

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

maintainer
#6 lore raw
Quoted 18 lines · Jeff Blaine

I'm using the RFC2307bis schema. I have everything working so far with the exception of /net (such as auto.home).

/etc/sysconfig/autofs contains (among other things):
DEFAULT_MAP_OBJECT_CLASS="automountMap" DEFAULT_ENTRY_OBJECT_CLASS="automount" DEFAULT_MAP_ATTRIBUTE="automountMapName" DEFAULT_ENTRY_ATTRIBUTE="automountKey" DEFAULT_VALUE_ATTRIBUTE="automountInformation"

Here's LDIF of mine for a site-specific 'auto.nfs' map's entry (/NFS/reverse ----> jellyroll:/reverse)

dn: automountMapName=auto.nfs,dc=rcf,dc=foo,dc=org
objectClass: top
objectClass: automountMap
automountMapName: auto.nfs

Quoted 7 lines

dn: automountkey=/NFS,automountMapName=auto.master,dc=rcf,dc=foo,dc=org
objectClass: top
objectClass: automount
automountKey: /NFS
automountInformation:
ldap:rcf-ldap1.foo.org:automountmapname=auto.nfs,dc=rcf, dc=foo,dc=org

So what about something like:

dn: automountkey=/net,automountMapName=auto.master,dc=rcf,dc=foo,dc=org
objectclass: top
objectclass: automount
automountkey: /net
automountinformation:-hosts

I'm not sure if the "-" will give you trouble?

Quoted 39 lines

dn: automountKey=reverse,automountMapName=auto.nfs,dc=rcf,dc=foo,dc=org
objectClass: top
objectClass: automount
automountKey: reverse
automountInformation: jellyroll:/&

Quoted 31 lines · Ian Kent
Quoted 11 lines · Jeff Moyer
Quoted 9 lines · Jeff Blaine
Quoted 8 lines · Jeff Moyer
Quoted 4 lines · [email protected] writes:

If anyone has been successful in getting /net/hostname automounting working with LDAP-based autofs maps (not a local /etc/auto.net file), I would love to see your LDIF information showing how you configured it.

First, program maps must be on a file system. Second, are you using autofs version 4 or 5?

Quoted 7 lines
Quoted 7 lines

AutoFS 5.

Quoted 2 lines

If 5, then you can simply use the ldif equivalent of:
/net -hosts

That's what I am trying to do :) I was hoping someone could show me theirs. It's not clear to me how to construct that particular set of LDIF info.

And what have you got in LDAP now or are you starting from scratch?

Quoted 8 lines

OK, what schema are you using?

-Jeff

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

#7 lore raw

I believe "w00t" is the appropriate response. I'm not sure what I was doing wrong, but that works fine. Thanks.

Quoted 74 lines · Ian Kent
Quoted 18 lines · Jeff Blaine

I'm using the RFC2307bis schema. I have everything working so far with the exception of /net (such as auto.home).

/etc/sysconfig/autofs contains (among other things):
DEFAULT_MAP_OBJECT_CLASS="automountMap" DEFAULT_ENTRY_OBJECT_CLASS="automount" DEFAULT_MAP_ATTRIBUTE="automountMapName" DEFAULT_ENTRY_ATTRIBUTE="automountKey" DEFAULT_VALUE_ATTRIBUTE="automountInformation"

Here's LDIF of mine for a site-specific 'auto.nfs' map's entry (/NFS/reverse ----> jellyroll:/reverse)

dn: automountMapName=auto.nfs,dc=rcf,dc=foo,dc=org
objectClass: top
objectClass: automountMap
automountMapName: auto.nfs

Quoted 7 lines

dn: automountkey=/NFS,automountMapName=auto.master,dc=rcf,dc=foo,dc=org
objectClass: top
objectClass: automount
automountKey: /NFS
automountInformation:
ldap:rcf-ldap1.foo.org:automountmapname=auto.nfs,dc=rcf, dc=foo,dc=org

So what about something like:

dn: automountkey=/net,automountMapName=auto.master,dc=rcf,dc=foo,dc=org
objectclass: top
objectclass: automount
automountkey: /net
automountinformation:-hosts

I'm not sure if the "-" will give you trouble?

Quoted 36 lines

dn: automountKey=reverse,automountMapName=auto.nfs,dc=rcf,dc=foo,dc=org
objectClass: top
objectClass: automount
automountKey: reverse
automountInformation: jellyroll:/&

Quoted 29 lines · Ian Kent
Quoted 11 lines · Jeff Moyer
Quoted 9 lines · Jeff Blaine
Quoted 8 lines · Jeff Moyer
Quoted 4 lines · [email protected] writes:

If anyone has been successful in getting /net/hostname automounting working with LDAP-based autofs maps (not a local /etc/auto.net file), I would love to see your LDIF information showing how you configured it.

First, program maps must be on a file system. Second, are you using autofs version 4 or 5?

Quoted 7 lines
Quoted 7 lines

AutoFS 5.

Quoted 2 lines

If 5, then you can simply use the ldif equivalent of:
/net -hosts

That's what I am trying to do :) I was hoping someone could show me theirs. It's not clear to me how to construct that particular set of LDIF info.

And what have you got in LDAP now or are you starting from scratch?

Quoted 8 lines

OK, what schema are you using?

-Jeff

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs