Remove redundant attributes: loginShell and onVacation were already matched by the...
[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
22 ##
23 ## prefix some rules that only apply to certain clients
24 ## and grant them more privileges
25 ##
26
27 # LDAP admins have full access, so has sshdist
28 access to *
29         by group="cn=LDAP Administrator,ou=users,@@DN@@" write
30         by dn="uid=sshdist,ou=users,@@DN@@" write
31         by * break
32
33 # allow users write access to an explicit subset of their fields
34 access to attrs=c,l,loginShell,ircNick,labeledURI,icqUIN,jabberJID,onVacation,birthDate,mailDisableMessage,gender,emailforward,mailCallout,mailGreylisting,mailRBL,mailRHSBL,mailWhitelist,mailContentInspectionAction,mailDefaultOptions,facsimileTelephoneNumber,telephoneNumber,postalAddress,postalCode,loginShell,onVacation,privateSub,latitude,longitude,VoIP,userPassword,sudoPassword,bATVToken
35         by self write
36         by * break
37
38
39 ##
40 ## All ACLs from here on result in a decision.  no fall through to later.
41 ##
42
43 # allow authn/z by anyone
44 access to attrs=userPassword,sudoPassword,bATVToken
45         by * compare
46
47 # readable only by self
48 access to attrs=sshrsaauthkey
49         by self read
50         by * none
51
52 # debian.org readable, authenticated user readable
53 access to attrs=activity-pgp,activity-from,dnsZoneEntry,c,l,loginShell,ircNick,labeledURI,icqUIN,jabberJID,onVacation,birthDate,mailDisableMessage,gender,emailforward,mailCallout,mailGreylisting,mailRBL,mailRHSBL,mailWhitelist,mailContentInspectionAction,mailDefaultOptions
54         by peername.ip=127.0.0.1 read
55         by domain=alioth.debian.org none
56         by domain.subtree=@@DOMAIN@@ read
57         by dn.regex="uid=.*,ou=users,@@DN@@" read
58         by * none
59
60 # authenticated user readable
61 access to attrs=facsimileTelephoneNumber,telephoneNumber,postalAddress,postalCode,privateSub,latitude,longitude,VoIP
62         by dn.regex="uid=.*,ou=users,@@DN@@" read
63         by * none
64
65
66 # rest is globally readable
67 access to *
68         by * read