Projet

Général

Profil

Tâche #35284

Scénario #35279: EOLE 2.8 : Modifications liées au passage forcé de Samba 4.13 à Samba 4.15

La sauvegarde de samba ne fonctionne plus depuis la mise à jour de samba de 4.13 à 4.15

Ajouté par Emmanuel GARETTE il y a environ un an. Mis à jour il y a environ un an.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Début:
09/03/2023
Echéance:
% réalisé:

100%

Restant à faire (heures):
0.0

Description

La sauvegarde est en erreur suite à mise à jour :

bash -x /usr/share/eole/sbin/samba_backup "/home/backup/samba/samba_backup.report" "/home/backup/samba" "xxxxxxxxxxxxxxxxxxx" "" 
[..]
+ python3 -c '
from optparse import OptionParser
from samba.samdb import SamDB
from samba.auth import system_session
from samba import getopt
from samba.ntacls import backup_offline
parse = OptionParser()
lp = getopt.SambaOptions(parse).get_loadparm()
creds = getopt.CredentialsOptions(parse).get_credentials(lp)
samdb = SamDB(session_info=system_session(), credentials=creds, lp=lp)
backup_offline(lp.get('\''path'\'', '\''sysvol'\''), '\''/home/backup/samba/sysvol_ntacl.tar.gz'\'', samdb, lp.configfile)
'
<ldb connection>
Traceback (most recent call last):
  File "<string>", line 11, in <module>
  File "/usr/lib/python3/dist-packages/samba/ntacls.py", line 561, in backup_offline
    ntacls_helper = NtaclsHelper(service, smb_conf_path, dom_sid)
  File "/usr/lib/python3/dist-packages/samba/ntacls.py", line 457, in __init__
    self.lp.load(smb_conf_path)
TypeError: argument 1 must be str, not SamDB
+ exit 0

Révisions associées

Révision 6645cdb3 (diff)
Ajouté par Benjamin Bohard il y a environ un an

Évolution de l’appel à la fonction backup_offline. (backport 2.8.1)

Ref #34397
Ref #35281

Historique

#2 Mis à jour par Joël Cuissinat il y a environ un an

  • Tâche parente mis à #35279

#3 Mis à jour par Emmanuel GARETTE il y a environ un an

Je viens de passer en version candidat et la sauvegarde est OK.

#4 Mis à jour par Joël Cuissinat il y a environ un an

  • Statut changé de Nouveau à Fermé
  • Assigné à mis à Joël Cuissinat
  • % réalisé changé de 0 à 100
  • Restant à faire (heures) mis à 0.0

Merci pour le retour.

Formats disponibles : Atom PDF