Differences between revisions 4 and 5
Revision 4 as of 2008-11-08 22:33:01
Size: 1314
Editor: ArthurDeJong
Comment:
Revision 5 as of 2009-03-16 03:31:14
Size: 1314
Editor: anonymous
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 41: Line 41:
 * ["NFSServerSetup"]  * [[NFSServerSetup]]

Getting automounter maps from LDAP

AutoFS Client Setup

You need to have ["AUTOFS4"] compiled as a module in your kernel config (see /usr/share/doc/autofs/README.Debian):

 $ grep AUTOFS /boot/config-`uname -r`

Install the autofs and nfs-common packages.

 $ apt-get install nfs-common autofs 
 $ vim /etc/auto.master

/var/autofs/net is very handy to get rid of host:/path lines in /etc/fstab. Make sure what your NFS server is working, then just do :

 $ cd /var/autofs/net/yourserver/yourexport

Autofs on LDAP

To store eg. auto.home maps on LDAP you can use the following format (user and home mapping shown):

dn: uid=auser,ou=People,dc=example,dc=com
uid: auser
uidNumber: 1044
gidNumber: 501
gecos: A. User,,,
homeDirectory: /home/auser
loginShell: /bin/bash

dn: cn=auser,ou=auto.home,dc=example,dc=com
objectClass: automount
cn: auser
automountInformation: -rw,soft,intr,quota       homeserver:/export/home/&

To utilise this from the client you should install the autofs-ldap package, then tell auto.master how to lookup the mappings: {{{# auto.master file /home ldap:ou=auto.home,dc=example,dc=com }}}


See Also: