Size: 1270
Comment: clean up
|
Size: 1314
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
## page was renamed from AutoFSClientSetup |
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:
- ["NFSServerSetup"]