Differences between revisions 1 and 2
Revision 1 as of 2004-01-11 21:33:56
Size: 663
Editor: anonymous
Comment:
Revision 2 as of 2006-02-03 05:21:46
Size: 1331
Editor: ?Tarka
Comment: Add more info LDAP mappings
Deletions are marked like this. Additions are marked like this.
Line 15: Line 15:
== 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
}}}

----

Configuring LDAP Authentication for Debian

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:

  • ["LDAPAuthentication"]