source: npl/commonservers/openldap_conf/root/etc/openldap/slapd.conf.mirror2.new

Last change on this file was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 2.3 KB
Line 
1#
2# Syn-3 ldap configuration for mirror2 (slave server)
3#
4
5# Server ID for replication:
6serverID    2
7
8#Automaticly created on ldap-restart:
9include         /etc/openldap/schemas.conf
10
11# Define global ACLs to disable default read access.
12
13# Do not enable referrals until AFTER you have a working directory
14# service AND an understanding of referrals.
15#referral       ldap://root.openldap.org
16
17#only error logging
18loglevel none
19sizelimit unlimited
20
21#######################################################################
22# BDB database definitions
23#######################################################################
24
25database        bdb
26cachesize 1000
27idlcachesize 1000
28dncachesize 1000
29
30monitoring off
31suffix          "dc=syn-3"
32rootdn          "cn=Manager,dc=syn-3"
33rootpw  secret
34
35# The database directory MUST exist prior to running slapd AND
36# should only be accessible by the slapd and slap tools.
37# Mode 700 recommended.
38directory       /home/system/openldap/openldap-slave
39# Indices to maintain
40index   sambaSID        eq
41index   sambaPrimaryGroupSID    eq
42index   sambaDomainName eq
43index   objectClass,uid,uidNumber,gidNumber,memberUid   eq
44index   cn,mail,surname,givenname       eq,subinitial
45index   entryCSN,entryUUID      eq
46index   sambaSIDList     eq
47index   sambaGroupType     eq
48index   alias     eq
49index   ou     eq
50index   dc     eq
51index zarafaAliases eq
52
53
54overlay syncprov
55
56# Syn-3 uses mirror mode replication.
57# In case of failure, we (the slave) will assume the master role and accept updates.
58syncrepl      rid=001
59        provider=ldap://ldap-master
60        bindmethod=simple
61        binddn="cn=Manager,dc=syn-3"
62        credentials=secret
63        searchbase="dc=syn-3"
64        schemachecking=on
65        type=refreshAndPersist
66        retry="10 +"
67
68mirrormode on
69
70#gebruikers kunnen zich authentificeren en hun paswoord verranderen en hun mail attribute setten
71access to attrs=userPassword,sambaNTPassword,sambaLMPassword
72    by self write
73    by anonymous auth
74    by * none
75   
76#openxchange addressbook
77access to dn.regex="ou=addr,uid=(.*),ou=Users,dc=syn-3"
78    by dn.regex="uid=$1,ou=Users,dc=syn-3" write
79    by * none break
80       
81access to dn.subtree="o=AddressBook,dc=syn-3"
82    by group="cn=AddressAdmins,o=AddressBook,dc=syn-3" write
83    by users read
84    by * none
85
86access to dn.subtree="ou=Users,dc=syn-3" by self write
87    by * read
88
89access to *
90    by * read
Note: See TracBrowser for help on using the repository browser.