Ubuntu Server Guide
Provider Configuration - delta replication
Download 1.23 Mb. Pdf ko'rish
|
ubuntu-server-guide (1)
- Bu sahifa navigatsiya:
- Add syncprov and accesslog overlays and DBs
Provider Configuration - delta replication
The remaining provider configuration for delta replication is: • create a new database called accesslog • add the syncprov overlay on top of the accesslog and dc=example,dc=com databases • add the accesslog overlay on top of the dc=example,dc=com database Add syncprov and accesslog overlays and DBs Create an LDIF file with the following contents and name it provider_sync.ldif: # Add i n d e x e s t o t h e f r o n t e n d db . dn : o l c D a t a b a s e ={1}mdb , cn=c o n f i g changetype : modify add : olcDbIndex olcDbIndex : entryCSN eq − add : olcDbIndex olcDbIndex : entryUUID eq #Load t h e s y ncpr o v and a c c e s s l o g modules . dn : cn=module { 0 } , cn=c o n f i g changetype : modify add : olcModuleLoad olcModuleLoad : s yn c p ro v − add : olcModuleLoad olcModuleLoad : a c c e s s l o g # A c c e s s l o g d a t a b a s e d e f i n i t i o n s dn : o l c D a t a b a s e ={2}mdb , cn=c o n f i g o b j e c t C l a s s : o l c D a t a b a s e C o n f i g o b j e c t C l a s s : olcMdbConfig o l c D a t a b a s e : {2}mdb o l c D b D i r e c t o r y : / var / l i b / l d a p / a c c e s s l o g o l c S u f f i x : cn=a c c e s s l o g olcRootDN : cn=admin , dc=example , dc=com olcDbIndex : d e f a u l t eq olcDbIndex : entryCSN , o b j e c t C l a s s , reqEnd , r e q R e s u l t , r e q S t a r t o l c A c c e s s : {0} t o * by dn . e x a c t =”cn=r e p l i c a t o r , dc=example , dc=com” r e a d by * break o l c L i m i t s : dn . e x a c t=”cn=r e p l i c a t o r , dc=example , dc=com” time . s o f t=u n l i m i t e d time . hard=u n l i m i t e d s i z e . s o f t=u n l i m i t e d s i z e . hard=u n l i m i t e d # A c c e s s l o g db s y n c p r ov . dn : o l c O v e r l a y=syncprov , o l c D a t a b a s e ={2}mdb , cn=c o n f i g changetype : add o b j e c t C l a s s : o l c O v e r l a y C o n f i g o b j e c t C l a s s : o l c S y n c P r o v C o n f i g o l c O v e r l a y : s y nc p ro v ol c S p N o P r e s e n t : TRUE o l c S p R e l o a d H i n t : TRUE 200 # s y n c r e p l P r o v i d e r f o r primary db dn : o l c O v e r l a y=syncprov , o l c D a t a b a s e ={1}mdb , cn=c o n f i g changetype : add o b j e c t C l a s s : o l c O v e r l a y C o n f i g o b j e c t C l a s s : o l c S y n c P r o v C o n f i g o l c O v e r l a y : s y nc p ro v o l c S p C h e c k p o i n t : 100 10 o l c S p S e s s i o n L o g : 100 # a c c e s s l o g o v e r l a y d e f i n i t i o n s f o r primary db dn : o l c O v e r l a y=a c c e s s l o g , o l c D a t a b a s e ={1}mdb , cn=c o n f i g o b j e c t C l a s s : o l c O v e r l a y C o n f i g o b j e c t C l a s s : o l c A c c e s s L o g C o n f i g o l c O v e r l a y : a c c e s s l o g olcAccessLogDB : cn=a c c e s s l o g olcAccessLogOps : w r i t e s o l c A c c e s s L o g S u c c e s s : TRUE # s c a n t h e a c c e s s l o g DB e v e r y day , and purge e n t r i e s o l d e r than 7 days o l c A c c e s s L o g P u r g e : 07+00:00 01+00:00 Download 1.23 Mb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling