Project

General

Profile

Tâche #30614

Scénario #30508: Porter "active_replication.py" en python3

Porter le script python3

Added by Emmanuel GARETTE about 1 year ago. Updated about 1 year ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
08/18/2020
Due date:
% Done:

100%

Remaining (hours):
0.0

Associated revisions

Revision 9a32e9ec (diff)
Added by Emmanuel GARETTE about 1 year ago

porter le script /usr/share/eole/sbin/active_replication.py en python3 (ref #30614)

Revision a3276ab7 (diff)
Added by Emmanuel GARETTE about 1 year ago

base64.encodebytes attend un bytes (ref #30614)

Revision 2327753d (diff)
Added by Emmanuel GARETTE about 1 year ago

content doit etre un bytes (ref #30614)

History

#1 Updated by Emmanuel GARETTE about 1 year ago

  • Status changed from Nouveau to En cours

#2 Updated by Emmanuel GARETTE about 1 year ago

  • % Done changed from 0 to 100

#3 Updated by Ludwig Seys about 1 year ago

  • Status changed from En cours to Résolu

#4 Updated by Joël Cuissinat about 1 year ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) set to 0.0
root@scribe:~# head -n1 /usr/share/eole/sbin/active_replication.py
#! /usr/bin/env python3
root@scribe:~# active_replication.py 

Utilisation du compte de réplication existant

Génération de la configuration client
Répliquer également les groupes [oui/non]
[non] : 
Ajouter des uid à exclure de la réplication [oui/non]
[non] : 
Adresse utilisée pour accéder au module Scribe depuis le client
[192.168.0.26] : 
LDAP n'est pas activé sur le port SSL : utilisation du protocole ldap (port 389)

Ecriture du fichier /root/replication-0000000A.conf

fin
root@scribe:~# cat /root/replication-0000000A.conf
# aca (0000000A)
syncrepl rid=%i
        provider=ldap://192.168.0.26:389
        type=refreshAndPersist
        interval=00:01:00:00
        retry="60 10 300 +" 
        searchbase="ou=0000000A,ou=ac-test,ou=education,o=gouv,c=fr" 
        filter="(&(objectClass=ENTPerson)(!(uid=admin)))" 
        scope=sub
        schemachecking=off
        bindmethod=simple
        binddn="cn=reader,o=gouv,c=fr" 
        credentials=ohGhuGooZicoorai3Aid4dahtaequ1chainee3ahxoox9eisheigh1oo

Also available in: Atom PDF