Listing 1. Sample slapd.conf File

include /etc/openldap/slapd.oc.conf 
include /etc/openldap/unix.schema-v2 
include /etc/openldap/sambatng.schema-v2 
include /etc/openldap/qmail.schema-v2 
include /etc/openldap/abookPerson.schema-v2 
include /etc/openldap/lpquotaPersona.schema-v2 
schemacheck on 
sizelimit 3000 
loglevel 512 
pidfile /var/run/slapd.pid 
argsfile/var/run/slapd.args 
database ldbm 
cachesize 1000 
dbcachesize 100000
rootdn "cn=manager,dc=univr,dc=it" 
rootpw xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
directory /gfs/ldap 
index default pres,eq 
index objectClass,uid,rid,ntUid,groupRid,sambaMember,mail mailAlternateAddress 
index cn,sn pres,eq,sub 
access to attrs=userpassword,lmpassword,ntpassword 
by self write 
by dn="cn=manager,dc=univr,dc=it" write 
by dn="uid=manager,ou=Service,dc=univr,dc=it" write 
by dn="cn=qmail,ou=Service,dc=univr,dc=it" none 
by dn="cn=samba,ou=Service,ou=Scienze,dc=univr,dc=it" write 
by dn="cn=samba,ou=Service,ou=Medicina,dc=univr,dc=it" write 
by * none 
access to attrs=shadowlastchange,pwdlastset,mailForwardingAddress 
by self write 
by dn="cn=manager,dc=univr,dc=it" write 
by dn="uid=manager,ou=Service,dc=univr,dc=it" write 
by dn="cn=qmail,ou=Service,dc=univr,dc=it" read 
by dn="cn=samba,ou=Service,ou=Scienze,dc=univr,dc=it" write 
by dn="cn=samba,ou=Service,ou=Medicina,dc=univr,dc=it" write 
by addr="127.0.0.1|157.27.*.*" read 
by * none 
access to attrs= pwdcanchange, pwdmustchange, acctflags, logontime,logofftime,kickofftime,smbhome,homedrive,script,profilentuid,rid,grouprid,uid,uidnumber,gidnumber,cn,description,workstaton 
by dn="cn=manager,dc=univr,dc=it" write 
by dn="uid=manager,ou=Service,dc=univr,dc=it" write 
by dn="cn=qmail,ou=Service,dc=univr,dc=it" read 
by dn="cn=samba,ou=Service,ou=Scienze,dc=univr,dc=it" write 
by dn="cn=samba,ou=Service,ou=Medicina,dc=univr,dc=it" write 
by addr="127.0.0.1|157.27.*.*" read 
by * none 
access to attrs=lpquota,lpprinted,lpdate,lpnote 
by dn="cn=lpquota,ou=Service,dc=univr,dc=it" write 
by self read 
by * none 
access to attrs=mailMessageStore,mailQuota 
by dn="cn=manager,dc=univr,dc=it" write 
by dn="uid=manager,ou=Service,dc=univr,dc=it" write 
by dn="cn=qmail,ou=Service,dc=univr,dc=it" read 
by self read 
by * none access to dn="uid=[^,]+,ou=(.*),dc=univr,dc=it" 
by dn="cn=manager,dc=univr,dc=it" write 
by dn="uid=manager,ou=Service,dc=univr,dc=it" write 
by dn="cn=qmail,ou=Service,dc=univr,dc=it" read 
by addr="127.0.0.1|157.27.*.*" read 
by * none access to dn="dc=univr,dc=it" 
by dn="cn=manager,dc=univr,dc=it" write 
by dn="uid=manager,ou=Service,dc=univr,dc=it" write 
by dn="cn=qmail,ou=Service,dc=univr,dc=it" read 
by addr="127.0.0.1|157.27.*.*" 
read by * none