labeledURL was removed from the schema but not the slapd.conf example
[mirror/userdir-ldap.git] / doc / slapd-config.txt
1 Most of the configuration of the ldap server has to do with getting correct
2 access controls to keep the data safe. Here is a sample:
3
4 # Turn on automatic last modification time 
5 lastmod on
6
7 # Index some things
8 index uid eq
9 index keyfingerprint eq
10 index cn,sn approx,sub,eq
11
12 # Administrate 
13 #rootdn "uid=admin,ou=users,dc=debian,dc=org"
14 #rootpw
15
16 # Restrict reading/modification of the password to administration and self
17 access to attrs=userpassword,sshrsaauthkey
18         by self write
19         by dn="uid=admin,ou=users,dc=debian,dc=org" write
20         by group="uid=admin,ou=users,dc=debian,dc=org" write
21         by * compare    
22
23 access to attrs=emailforward
24         by dn="uid=admin,ou=users,dc=debian,dc=org" write
25         by group="uid=admin,ou=users,dc=debian,dc=org" write
26         by self write
27         by addr=127.0.0.1 read
28         by domain=.*\.debian\.org read
29         by * none
30 access to attrs=c,l,loginShell,ircNick
31         by dn="uid=admin,ou=users,dc=debian,dc=org" write
32         by group="uid=admin,ou=users,dc=debian,dc=org" write
33         by self write
34 access to attrs=facsimileTelephoneNumber,telephoneNumber,postalAddress,postalC
35 ode,loginShell,onvacation,privateSub,latitude,longitude
36         by dn="uid=admin,ou=users,dc=debian,dc=org" write
37         by group="uid=admin,ou=users,dc=debian,dc=org" write
38         by self write
39         by dn="uid=.*,ou=users,dc=debian,dc=org" read
40         by * none
41 access to * 
42         by dn="uid=admin,ou=users,dc=debian,dc=org" write
43         by group="uid=admin,ou=users,dc=debian,dc=org" write
44
45 # End----------
46
47 Here is the initial seed file to import and setup the proper entries:
48
49 dn: dc=org
50 dc: net
51 objectClass: top
52 objectClass: domain
53
54 dn: dc=debian,dc=org
55 dc: visi
56 objectClass: top
57 objectClass: domain
58
59 dn: ou=users,dc=debian,dc=org
60 ou: users
61 objectClass: top
62 objectClass: organizationalUnit
63
64 dn: uid=admin,ou=users,dc=debian,dc=org
65 uid: admin
66 cn: LDAP administrator
67 objectClass: top
68 objectClass: groupOfNames
69 userPassword: {crypt}?????
70 member: uid=jgg,ou=users,dc=debian,dc=org
71 member: uid=joey,ou=users,dc=debian,dc=org
72 member: uid=troup,ou=users,dc=debian,dc=org
73 mail: debian-admin@debian.org