]> git.sur5r.net Git - contagged/blob - doc/slapd.example
Store tags in Thunderbird custom fields
[contagged] / doc / slapd.example
1 # This is the main ldapd configuration file. See slapd.conf(5) for more
2 # info on the configuration options.
3
4 # Schema and objectClass definitions
5 include         /etc/ldap/schema/core.schema
6 include         /etc/ldap/schema/cosine.schema
7 include         /etc/ldap/schema/nis.schema
8 include         /etc/ldap/schema/inetorgperson.schema
9 include         /etc/ldap/schema/ldapab.schema
10
11
12 # Schema check allows for forcing entries to
13 # match schemas for their objectClasses's
14 schemacheck     on
15
16 # Where the pid file is put. The init.d script
17 # will not stop the server if you change this.
18 pidfile         /var/run/slapd.pid
19
20 # List of arguments that were passed to the server
21 argsfile        /var/run/slapd.args
22
23 # Where to store the replica logs
24 replogfile  /var/lib/ldap/replog
25
26 # Read slapd.conf(5) for possible values
27 #loglevel        256
28 loglevel    0
29
30 #######################################################################
31 # ldbm database definitions
32 #######################################################################
33
34 # The backend type, ldbm, is the default standard
35 database        ldbm
36
37 # The base of your directory
38 suffix          "o=cosmocode,c=de"
39
40 # Where the database file are physically stored
41 directory       "/var/lib/ldap"
42
43 # Indexing options
44 index objectClass eq
45
46 # Folgende Indizies sind im samba-LDAP-HOWTO empfohlen;
47
48 ## support pbb_getsampwnam()
49 index uid           pres,eq
50 ## support pdb_getsampwrid()
51 index rid           eq
52
53 ## uncomment these if you are storing posixAccount and
54 ## posixGroup entries in the directory as well
55 index uidNumber     eq
56 index gidNumber     eq
57 index cn            eq
58 index memberUid     eq
59
60 # Save the time that the entry gets modified
61 lastmod on
62
63 # The userPassword by default can be changed
64 # by the entry owning it if they are authenticated.
65 # Others should not be able to see it, except the
66 # admin entry below
67 access to attribute=userPassword
68         by dn="cn=admin,o=cosmocode,c=de" write
69         by anonymous auth
70         by self write
71         by * none
72
73 access to attribute=lmPassword
74         by dn="cn=admin,o=cosmocode,c=de" write
75         by anonymous auth
76         by self write
77         by * none
78
79 access to attribute=ntPassword
80         by dn="cn=admin,o=cosmocode,c=de" write
81         by anonymous auth
82         by self write
83         by * none
84
85 # private LDAP Addressbook is readable and writable for the owner only
86 access  to dn="(.*,)?ou=contacts,cn=([^,]+),ou=people,(.*)$"
87         by dn="cn=$2,ou=people,$3" write
88         by * none
89
90 # global LDAP Addressbook is writable for all authenticated users
91 # This entry has to be _before_ any other entry that matches the contact
92 # tree eg. the * entry
93 access to dn.subtree="ou=contacts,o=cosmocode,c=de"
94     by users write
95     by * read
96
97 # The admin dn has full write access
98 access to *
99         by dn="cn=admin,o=cosmocode,c=de" write
100         by * read
101
102 # For Netscape Roaming support, each user gets a roaming
103 # profile for which they have write access to
104 #access to dn=".*,ou=Roaming,o=morsnet"
105 #        by dn="cn=admin,o=cosmocode,c=de" write
106 #        by dnattr=owner write
107