34 lines
1.2 KiB
Python
34 lines
1.2 KiB
Python
# -*- mode: python; coding: utf-8 -*-
|
|
|
|
include("ip")
|
|
include("secrets")
|
|
|
|
rid = admip()
|
|
# L'identifiant du réplica est choisi comme étant la dernière partie de l'adresse ip
|
|
rid = rid[rid.rfind(".")+1:]
|
|
|
|
@dn: olcDatabase={0}config
|
|
@objectClass: olcDatabaseConfig
|
|
@olcDatabase: {0}config
|
|
@olcAccess: {0}to * by dn.exact=gidNumber=0+uidNumber=0,cn=peercred,cn=external
|
|
@ ,cn=auth manage by * break
|
|
@olcAccess: {0}to * by * none
|
|
@olcAddContentAcl: TRUE
|
|
@olcLastMod: TRUE
|
|
@olcMaxDerefDepth: 15
|
|
@olcReadOnly: FALSE
|
|
@olcRootDN: cn=admin,dc=crans,dc=org
|
|
@olcSyncUseSubentry: FALSE
|
|
@olcMonitoring: FALSE
|
|
out('olcSyncrepl: {0}rid=%s provider=ldap://vert.adm.crans.org bindmethod=simple t' % (rid))
|
|
out(' imeout=0 network-timeout=0 binddn=%s ' % (secrets.ldap_replica_auth_dn))
|
|
out(' credentials=%s filter="(objectClass=olcS' % (secrets.ldap_replica_password))
|
|
out(' chemaConfig)" searchbase="cn=schema,cn=config" scope=sub type=refreshAndPersi')
|
|
out(' st retry="30 20 300 +"')
|
|
@structuralObjectClass: olcDatabaseConfig
|
|
@entryUUID: 55f5a71a-59fb-102f-9686-112b7bde9a51
|
|
@creatorsName: cn=config
|
|
@createTimestamp: 20100921183939Z
|
|
@entryCSN: 20100921183939.404791Z#000000#000#000000
|
|
@modifiersName: cn=config
|
|
@modifyTimestamp: 20100921183939Z
|