1
autofs for Debian - support for LDAP
2
------------------------------------
4
This package installed a suitable LDAP schema for OpenLDAP
5
to /etc/ldap/schema/automount.ldap. For using it, you need
6
to add the following line into your /etc/ldap/slapd.conf:
8
include /etc/ldap/schema/automount.schema
10
Before this line, the schemas core.schema and cosine.schema
11
need to be included, since automount.schema depends on them.
13
You can manage your auto.master map in your LDAP directory
14
as well as all other maps.
16
For using an auto.master map, you need to define the
17
variables LDAPURI and LDAPBASE in /etc/default/autofs.
18
Additionally, you need to activate it in /etc/nsswitch.conf:
22
(If you don't use /etc/nsswitch.conf, the autofs init script
23
looks for auto.master in your LDAP directory, as long as
24
neither /etc/auto.master nor an auto.master NIS map exist.)
26
You could implement auto.master in the LDAP directory as
29
# The base node for autofs
30
dn: ou=Automount,dc=example,dc=com
33
objectClass: organizationalUnit
36
dn: ou=auto.master,ou=Automount,dc=example,dc=com
39
objectClass: automountMap
41
# The entry /data in auto.master
42
dn: cn=/data,ou=auto.master,ou=Automount,dc=example,dc=com
45
objectClass: automount
46
automountInformation: ldap:ldapserver.example.com:ou=auto.data,ou=Automount,dc=example,dc=com rsize=8192,wsize=8192
48
This would correspond to the following entry in /etc/auto.master:
50
/data ldap:ldapserver.example.com:ou=auto.data,ou=Automount,dc=example,dc=com rsize=8192,wsize=8192
52
Appropriate LDAP entries could look like this:
55
dn: ou=auto.data,ou=Automount,dc=example,dc=com
58
objectClass: automountMap
60
# The entry foo in auto.data
61
dn: cn=foo,ou=auto.data,ou=Automount,dc=example,dc=com
64
objectClass: automount
65
automountInformation: -rw,intr,soft,quota nfsserver.example.com:/export/data/foo
67
# The entry bar in auto.data
68
dn: cn=bar,ou=auto.data,ou=Automount,dc=example,dc=com
71
objectClass: automount
72
automountInformation: -rw,intr,soft,quota nfsserver.example.com:/export/data/bar
74
This would correspond to the following entries in /etc/auto.data:
76
foo -rw,intr,soft,quota nfsserver.example.com:/export/data/foo
77
bar -rw,intr,soft,quota nfsserver.example.com:/export/data/bar