Skip to contentSkip to conversation

Autofs LDAP info

DISCUSSION Jim Kusznir 4 participants 6 messages Sep 30, 2005 – Oct 4, 2005 Kernel automounter

lore
Share & tools
lore
#0 lore raw

Hello all:

I've been tasked with making AutoFS get its maps from a Windows 2003 Active Directory server via LDAP. I know AutoFS works with LDAP in some fashon or another, however the documentation seems very sparce, and information on the net seems very fragmented and contradictory in areas.

My primary questions at this point:

What schema(s) does the latest AutoFS support? Does it support standards such as NisMap? (I've found both "yes" and "no" answers to this on the net, and no details in either)

How are maps entered in such schema?

Are there any HOWTOs that cover LDAP specifically? (I'm familiar with the amd-autofs howto at linuxconsulting, however I haven't found any useful (as of yet) LDAP info in there).

I currently have AutoFS working via NIS maps wonderfuly, but my work over the next few months is to migrate everything from NIS into the AD server so as to retire it.

Thanks!
--Jim

maintainer
#1 lore raw
Quoted 7 lines · Jim Kusznir

Hello all:

I've been tasked with making AutoFS get its maps from a Windows 2003 Active Directory server via LDAP. I know AutoFS works with LDAP in some fashon or another, however the documentation seems very sparce, and information on the net seems very fragmented and contradictory in areas.

Quoted 5 lines

My primary questions at this point:

What schema(s) does the latest AutoFS support? Does it support standards such as NisMap? (I've found both "yes" and "no" answers to this on the net, and no details in either)

autofs supports the NisMap and automountMap schemas.

I've recently become aware of a couple of problems.

The autofs-4.1.3 in RHEL doesn't seem to ba able to talk to the Sun LDAP server however autofs-4.1.4 appears to work OK.

The schema attributes used by Sun (automountMap) implementations have probably been incorrect since before I started maintaining autofs and I've perpetuated that without realizing the problem. Now we likely have a bunch of people that will be inconvenienced if I fix it. In particular autofs uses the "cn" attribute to contain the map key but I believe this should be the "automountKey" attribute.

Quoted 6 lines

How are maps entered in such schema?

Are there any HOWTOs that cover LDAP specifically? (I'm familiar with the amd-autofs howto at linuxconsulting, however I haven't found any useful (as of yet) LDAP info in there).

Have you looked at the LDAP examples in the samples directory of the tarball?

Ian

#2 lore raw
Quoted 37 lines · Ian Kent
Quoted 7 lines · Jim Kusznir

Hello all:

I've been tasked with making AutoFS get its maps from a Windows 2003 Active Directory server via LDAP. I know AutoFS works with LDAP in some fashon or another, however the documentation seems very sparce, and information on the net seems very fragmented and contradictory in areas.

Quoted 7 lines

My primary questions at this point:

What schema(s) does the latest AutoFS support? Does it support standards such as NisMap? (I've found both "yes" and "no" answers to this on the net, and no details in either)

autofs supports the NisMap and automountMap schemas.

I've recently become aware of a couple of problems.

The autofs-4.1.3 in RHEL doesn't seem to ba able to talk to the Sun LDAP server however autofs-4.1.4 appears to work OK.

The schema attributes used by Sun (automountMap) implementations have probably been incorrect since before I started maintaining autofs and I've perpetuated that without realizing the problem. Now we likely have a bunch of people that will be inconvenienced if I fix it. In particular autofs uses the "cn" attribute to contain the map key but I believe this should be the "automountKey" attribute.

Quoted 2 lines

How are maps entered in such schema?

Quoted 11 lines
Quoted 5 lines

Are there any HOWTOs that cover LDAP specifically? (I'm familiar with the amd-autofs howto at linuxconsulting, however I haven't found any useful (as of yet) LDAP info in there).

Have you looked at the LDAP examples in the samples directory of the tarball?

I actually haven't found the tarball yet. So far, all I've found is the RHEL RPMS (distributed through RH). They don't appear to include the examples (I did look on my devel system a fair bit, but found nothing but a few configure readme's.

Where is the autofs project homepage / tarball download? (Google seems to point me to a bunch of howtos and blog-type pages).

--Jim

maintainer
#3 lore raw
Quoted 5 lines · Jim Kusznir
Quoted 1 line

I actually haven't found the tarball yet. So far, all I've found is the RHEL RPMS (distributed through RH). They don't appear to include the examples (I did look on my devel system a fair bit, but found nothing but a few configure readme's.

How about adding the examples to the rpm Jeff?

Quoted 3 lines

Where is the autofs project homepage / tarball download? (Google seems to point me to a bunch of howtos and blog-type pages).

http://www.kernel.org/pub/linux/daemons/autofs/v4

Ian

#4 lore raw

The ldap examples should be in the following directory for RHEL-3 & RHEL-4:
/usr/share/doc/autofs-4.1.3/ldap*

Thanks,
Chris

Quoted 24 lines · Ian Kent
Quoted 4 lines · Jim Kusznir

I actually haven't found the tarball yet. So far, all I've found is the RHEL RPMS (distributed through RH). They don't appear to include the examples (I did look on my devel system a fair bit, but found nothing but a few configure readme's.

How about adding the examples to the rpm Jeff?

Quoted 2 lines

Where is the autofs project homepage / tarball download? (Google seems to point me to a bunch of howtos and blog-type pages).

http://www.kernel.org/pub/linux/daemons/autofs/v4

Ian

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

#5 lore raw
In reply to Jim Kusznir
Quoted 8 lines · Jim Kusznir

Hello all:

I've been tasked with making AutoFS get its maps from a Windows 2003 Active Directory server via LDAP. I know AutoFS works with LDAP in some fashon or another, however the documentation seems very sparce, and information on the net seems very fragmented and contradictory in areas.

Quoted 8 lines

My primary questions at this point:

What schema(s) does the latest AutoFS support? Does it support standards such as NisMap? (I've found both "yes" and "no" answers to this on the net, and no details in either)

How are maps entered in such schema?

The current stable version of autofs (4.1.4) does support nis.schema and autofs.schema. With the nis.schema, entries must have objectclass "nisObject"; the relevant attributes are "cn" (the mount point, as in the second argument of the mount command) and "nismapentry" (the "automount information": options and first argument of the mount command).

If you need greater flexibility (want to use a different schema), or if you need to authenticate to the LDAP server: there is a patch for autofs-4.1.4 to allow this:
http://timof.qipc.org/autofs
The page also shows some examples. It works for me with an OpenLDAP server. I've never tried it with Windows AD, but I would like to learn whether it does.

Regards,

Timo Felbinger

Signature · 4 lines
Timo Felbinger                  <[email protected]>
Quantum Physics Group           http://www.quantum.physik.uni-potsdam.de
Institut fuer Physik            Tel: +49 331 977 1793      Fax: -1767
Universitaet Potsdam, Germany   PGP key-id: E92567B2