Project

General

Profile

Anomalie #7488

script ldap.py (restauration): pas de vérification de la présence du fichier ldif

Added by Bruno Boiget about 7 years ago. Updated about 7 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Category:
-
Start date:
Due date:
03/07/2014
% Done:

100%

Estimated time:
1.00 h
Spent time:
Distribution:
EOLE 2.4

Description

lors d'un tentative de lancement à la main de la restauration après avoir supprimé le fichier /home/backup/sauv_ldap.ldif:

cd /usr/share/eole/bacula/restore
python

>>> from ldap import post
>>> post()
post ldap
/home/backup/sauv_ldap.ldif: No such file or directory

L'annuaire est 'restauré' sans donnée --> vide :-)


Related issues

Related to eole-annuaire - Evolution #7419: Ajouter et gérer le script schedule pour l'annuaire Fermé 02/21/2014

Associated revisions

Revision e21be66e (diff)
Added by Joël Cuissinat about 7 years ago

Amélioration du script de restauration ldap

Fixes #7488 @30m

History

#1 Updated by Joël Cuissinat about 7 years ago

  • Due date set to 03/07/2014
  • Assigned To set to Joël Cuissinat

#2 Updated by Joël Cuissinat about 7 years ago

  • Status changed from Nouveau to Résolu
  • % Done changed from 0 to 100

#3 Updated by Joël Cuissinat about 7 years ago

Le script vérifie désormais que le fichier existe et qu'il n'est pas vide.

#4 Updated by Emmanuel GARETTE about 7 years ago

OK

root@scribe:/usr/share/eole/bacula/restore# rm -f /home/backup/sauv_ldap.ldif
root@scribe:/usr/share/eole/bacula/restore# python
Python 2.7.3 (default, Feb 27 2014, 19:58:35) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from ldap import post
>>> post()
post ldap
Il manque le fichier /home/backup/sauv_ldap.ldif
root@scribe:/usr/share/eole/bacula/restore# > /home/backup/sauv_ldap.ldif
root@scribe:/usr/share/eole/bacula/restore# python
Python 2.7.3 (default, Feb 27 2014, 19:58:35) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from ldap import post
>>> post()
post ldap
Le fichier /home/backup/sauv_ldap.ldif est vide

#5 Updated by Emmanuel GARETTE about 7 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF