sshrsaauthkey is only readble by self. everyone else does not even get to compare it
[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, so has sshdist
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 # allow users write access to an explicit subset of their fields
28 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
29         by self write
30         by * break
31
32 # allow authn/z by anyone
33 access to attrs=userPassword,sudoPassword,bATVToken
34         by * compare
35
36
37
38 # readable only by self
39 access to attrs=sshrsaauthkey
40         by self read
41         by * none
42
43 # debian.org readable, authenticated user readable
44 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
45         by peername.ip=127.0.0.1 read
46         by domain=alioth.debian.org none
47         by domain.subtree=@@DOMAIN@@ read
48         by dn.regex="uid=.*,ou=users,@@DN@@" read
49         by * none
50
51 # authenticated user readable
52 access to attrs=facsimileTelephoneNumber,telephoneNumber,postalAddress,postalCode,loginShell,onVacation,privateSub,latitude,longitude,VoIP
53         by dn.regex="uid=.*,ou=users,@@DN@@" read
54         by * none
55
56
57 # globally readable
58 access to *
59         by * read