Minor simplification of slapd.conf's ACLs
[mirror/userdir-ldap.git] / userdir-ldap-slapd.conf.in
1 # The backend type, ldbm, is the default standard
2 database hdb
3
4 # The base of your directory
5 suffix          "@@DN@@"
6
7 # Where the database file are physically stored
8 directory       "/var/lib/ldap"
9
10 # Indexing options
11 index gecos,cn,sn,uid,ircNick,hostname,emailForward pres,eq,sub,approx
12 index keyfingerprint,homeDirectory,objectClass,loginShell,supplementaryGid pres,eq
13 index c,gender,dnsZoneEntry,birthDate,gidNumber,uidNumber pres,eq
14
15 # Don't limit queries to the default of 500
16 sizelimit 10000
17
18 # Save the time that the entry gets modified
19 lastmod on
20
21 # LDAP admins have full access
22 access to *
23         by group="cn=LDAP Administrator,ou=users,@@DN@@" write
24         by dn="uid=sshdist,ou=users,@@DN@@" write
25         by * break
26
27 # owner writeable
28 access to attrs=userPassword,sudoPassword,bATVToken
29         by self write
30         by * compare
31
32 access to attrs=sshrsaauthkey
33         by self read
34         by * compare
35
36 # debian readable
37 access to attrs=activity-pgp,activity-from,dnsZoneEntry
38         by peername.ip=127.0.0.1 read
39         by domain=alioth.debian.org none
40         by domain.subtree=@@DOMAIN@@ read
41         by dn.regex="uid=.*,ou=users,@@DN@@" read
42         by * none
43
44 # owner writeable, debian readable, authenticated user readable
45 access to attrs=c,l,loginShell,ircNick,labeledURI,icqUIN,jabberJID,onVacation,birthDate,mailDisableMessage,gender,emailforward,mailCallout,mailGreylisting,mailRBL,mailRHSBL,mailWhitelist,mailContentInspectionAction,mailDefaultOptions
46         by self write
47         by dn.regex="uid=.*,ou=users,@@DN@@" read
48         by peername.ip=127.0.0.1 read
49         by domain=alioth.debian.org none
50         by domain.subtree=@@DOMAIN@@ read
51         by * none
52
53 # owner writeable, authenticated user readable
54 access to attrs=facsimileTelephoneNumber,telephoneNumber,postalAddress,postalCode,loginShell,onVacation,privateSub,latitude,longitude,VoIP
55         by self write
56         by dn.regex="uid=.*,ou=users,@@DN@@" read
57         by * none
58
59 # globally readable
60 access to *
61         by * read