1 # The backend type, ldbm, is the default standard
4 # The base of your directory
7 # Where the database file are physically stored
8 directory "/var/lib/ldap"
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
15 # Don't limit queries to the default of 500
18 # Save the time that the entry gets modified
23 ## prefix some rules that only apply to certain clients
24 ## and grant them more privileges
27 # LDAP admins have full access, so has sshdist
29 by group="cn=LDAP Administrator,ou=users,@@DN@@" write
30 by dn="uid=sshdist,ou=users,@@DN@@" write
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
40 ## All ACLs from here on result in a decision. no fall through to later.
43 # allow authn/z by anyone
44 access to attrs=userPassword,sudoPassword,bATVToken
47 # readable only by self
48 access to attrs=sshrsaauthkey
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
60 # authenticated user readable
61 access to attrs=facsimileTelephoneNumber,telephoneNumber,postalAddress,postalCode,loginShell,onVacation,privateSub,latitude,longitude,VoIP
62 by dn.regex="uid=.*,ou=users,@@DN@@" read
66 # rest is globally readable