Project

General

Profile

Scénario #30274

Arborescence utilisateur non créée lors d'une importation AAF automatique sur Scribe AD 2.7.1

Added by moncef ziani 4 months ago. Updated 2 months ago.

Status:
Terminé (Sprint)
Priority:
Normal
Assigned To:
Category:
-
Start date:
06/12/2020
Due date:
07/03/2020
% Done:

100%

Story points:
1.0
Remaining (hours):
0.00 hour
Velocity based estimate:
Release:
Release relationship:
Auto

Description

Bonjour,

Après plusieurs Importation AAF automatique, nous nous sommes rendus compte que les dossiers utilisateurs ne sont pas crées.

Je mets en pièces jointe le fichier importation.log.

Cordialement

importation.log View (116 KB) moncef ziani, 06/08/2020 04:56 PM


Subtasks

Tâche #30307: Reproduire et mettre à jour le test squashFerméJoël Cuissinat

Associated revisions

Revision 28d525f4 (diff)
Added by Joël Cuissinat 4 months ago

Call changepasswordeole.pl with full path

Ref: #30274

Revision 8522a671 (diff)
Added by Joël Cuissinat 22 days ago

Call changepasswordeole.pl with full path

Ref: #30274

History

#1 Updated by Gilles Grandgérard 4 months ago

  • Tracker changed from Demande to Scénario
  • Subject changed from Arborescence utilisateur non crée lors d'une importation AAF automatique sur Scribe AD to Arborescence utilisateur non crée lors d'une importation AAF automatique sur Scribe AD 2.7.1
  • Start date deleted (06/08/2020)
  • Release set to EOLE 2.7.1

#2 Updated by Gilles Grandgérard 4 months ago

précision:
- Importation AAF automatique lancée par une tache Cron.
- Importation AAF Scribe

#3 Updated by Gilles Grandgérard 4 months ago

Traceback (most recent call last):
  File "/usr/bin/synchro_aaf", line 152, in run
    write_eleves(store, import_type)
  File "/usr/bin/synchro_aaf", line 84, in write_eleves
    writer.write_eleve(storage=store, connexion=connexion)
  File "/usr/lib/python2.7/dist-packages/scribe/importation/writer.py", line 614, in write_eleve
    _sync_passwords(user, new_passwords)
  File "/usr/lib/python2.7/dist-packages/scribe/importation/writer.py", line 102, in _sync_passwords
    user.c_mod_password(login, passwd)
  File "/usr/lib/python2.7/dist-packages/scribe/eoleuser.py", line 733, in c_mod_password
    self.ad_password(login, user_passwd, must_change)
  File "/usr/lib/python2.7/dist-packages/scribe/eoleuser.py", line 762, in ad_password
    ret = system_out(cmd)
  File "/usr/lib/python2.7/dist-packages/pyeole/process.py", line 323, in system_out
    return creole_system_out(cmd, stdin, container, context, env, pty)
  File "/usr/lib/python2.7/dist-packages/pyeole/process.py", line 342, in creole_system_out
    return _service(cmd, stdin, container, context, env, pty, PIPE, PIPE)
  File "/usr/lib/python2.7/dist-packages/pyeole/process.py", line 257, in _service
    process = Popen(cmd, stdin=PIPE, stdout=stdout, stderr=stderr, env=env)
  File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
    raise child_exception

#4 Updated by Gilles Grandgérard 4 months ago

  • Due date set to 07/03/2020
  • Target version set to sprint 2020 25-27 Equipe MENSR
  • Start date set to 06/15/2020

#5 Updated by Joël Cuissinat 4 months ago

  • Subject changed from Arborescence utilisateur non crée lors d'une importation AAF automatique sur Scribe AD 2.7.1 to Arborescence utilisateur non créée lors d'une importation AAF automatique sur Scribe AD 2.7.1

#6 Updated by Joël Cuissinat 4 months ago

  • Assigned To set to Joël Cuissinat
  • Story points set to 1.0

#7 Updated by Joël Cuissinat 4 months ago

Réponse de Moncef :

Suite des tests AAF:

  • en le passant en mode manuel et en l'exécutant depuis l'EAD
    -> Test ok
  • en mode automatique après avoir modifiié le fichier : /usr/lib/python2.7/dist-packages/scribe/eoleuser.py à la ligne 760
     cmd = ['changepasswordeole.pl', login, user_passwd]
    

    par
     cmd = [' /usr/sbin/changepasswordeole.pl ', login, user_passwd]
    

    -> Test ok

Conclusion : le problème vient bien de l'absence du path dans le fichier /usr/lib/python2.7/dist-packages/scribe/eoleuser.py

#8 Updated by Joël Cuissinat 2 months ago

  • Status changed from Nouveau to Terminé (Sprint)

Also available in: Atom PDF