~ubuntu-branches/debian/wheezy/autofs/wheezy

« back to all changes in this revision

Viewing changes to debian/README.ldap_master

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2008-03-08 01:36:09 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080308013609-cvs4f2ecoyoism02
Tags: 4.1.4+debian-2.1
* Non-maintainer upload.
* High-urgency upload for RC bugfix.
* Add -DLDAP_DEPRECATED to CFLAGS, to fix compatibility with OpenLDAP
  2.4 on 64-bit architectures.  Closes: #463419.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
autofs for Debian - support for LDAP
 
2
------------------------------------
 
3
 
 
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:
 
7
 
 
8
  include    /etc/ldap/schema/automount.schema
 
9
 
 
10
Before this line, the schemas core.schema and cosine.schema
 
11
need to be included, since automount.schema depends on them.
 
12
 
 
13
You can manage your auto.master map in your LDAP directory
 
14
as well as all other maps.
 
15
 
 
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:
 
19
 
 
20
  automount: ldap
 
21
 
 
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.)
 
25
 
 
26
You could implement auto.master in the LDAP directory as
 
27
following:
 
28
 
 
29
  # The base node for autofs
 
30
  dn: ou=Automount,dc=example,dc=com
 
31
  ou: Automount
 
32
  objectClass: top
 
33
  objectClass: organizationalUnit
 
34
  
 
35
  # The auto.master map
 
36
  dn: ou=auto.master,ou=Automount,dc=example,dc=com
 
37
  ou: auto.master
 
38
  objectClass: top
 
39
  objectClass: automountMap
 
40
  
 
41
  # The entry /data in auto.master 
 
42
  dn: cn=/data,ou=auto.master,ou=Automount,dc=example,dc=com
 
43
  cn: /data
 
44
  objectClass: top
 
45
  objectClass: automount
 
46
  automountInformation: ldap:ldapserver.example.com:ou=auto.data,ou=Automount,dc=example,dc=com rsize=8192,wsize=8192
 
47
 
 
48
This would correspond to the following entry in /etc/auto.master:
 
49
 
 
50
  /data ldap:ldapserver.example.com:ou=auto.data,ou=Automount,dc=example,dc=com rsize=8192,wsize=8192
 
51
 
 
52
Appropriate LDAP entries could look like this:
 
53
 
 
54
  # The auto.data map
 
55
  dn: ou=auto.data,ou=Automount,dc=example,dc=com
 
56
  ou: auto.data
 
57
  objectClass: top
 
58
  objectClass: automountMap
 
59
  
 
60
  # The entry foo in auto.data
 
61
  dn: cn=foo,ou=auto.data,ou=Automount,dc=example,dc=com
 
62
  cn: foo
 
63
  objectClass: top
 
64
  objectClass: automount
 
65
  automountInformation: -rw,intr,soft,quota nfsserver.example.com:/export/data/foo
 
66
  
 
67
  # The entry bar in auto.data
 
68
  dn: cn=bar,ou=auto.data,ou=Automount,dc=example,dc=com
 
69
  cn: bar
 
70
  objectClass: top
 
71
  objectClass: automount
 
72
  automountInformation: -rw,intr,soft,quota nfsserver.example.com:/export/data/bar
 
73
 
 
74
This would correspond to the following entries in /etc/auto.data:
 
75
 
 
76
  foo -rw,intr,soft,quota nfsserver.example.com:/export/data/foo
 
77
  bar -rw,intr,soft,quota nfsserver.example.com:/export/data/bar
 
78