Project

General

Profile

Tâche #10759

Distribution EOLE - Scénario #10799: Finaliser Intégration des optimisations proposées sur dyn_logon

connexions.py ne renvoie pas toujours le bon user pour une IP donnée

Added by Klaas TJEBBES about 8 years ago. Updated about 8 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
02/27/2015
Due date:
% Done:

100%

Estimated time:
6.00 h
Spent time:
Remaining (hours):
0.0

Description

Voir commentaire #6 https://dev-eole.ac-dijon.fr/issues/10645#note-6

Ici, première connexion prof1 , passage à PID inférieur, seconde connexion eleve1

>>> b=connexions.Connexions()
>>> b.get_user('192.168.230.172')
'prof1'
>>> t.close();t = tdb.Tdb(tdb_file, os.O_RDONLY)
>>> for i in t.iterkeys(): print i, t[i]
... 
ID/2312/102 ''eleve1192.168.230.172xp-testk1smb/2312/102����▒���P�cN192.168.230.172�:�T
ID/21849/102 ''prof1192.168.230.172xp-testk1smb/21849/102YU����ɦ�Q���!192.168.230.172o:�T

Le fichier TDB ne renvoie pas les connexions dans l'ordre chronologique.

Pour "jouer" avec les PID :
  • sur une console :
    while [ 1 ]; do ls /tmp > /dev/null; done
    
  • sur une autre console :
    ps
    

    jusqu'à ce que le PID revienne à un numéro plus bas que celui de la session ouverte et arrêter le "while" de la console #1.

Rebooter le poste Windows violement (bouton "reset" ou "poweroff")
Ouvrir une session avec un autre utilisateur

net status sessions

doit maintenant afficher 2 sessions pour la même IP avec en premier la dernière session ouverte.

Associated revisions

Revision 112f0752 (diff)
Added by Klaas TJEBBES about 8 years ago

connexions.py ne renvoie plus de doublons de sessions FIXES #10759 @6h

Revision 1cfdbda1 (diff)
Added by Klaas TJEBBES about 8 years ago

en cas de primo-connexion, attendre que l'utilisateur existe en BDD REF #10759

History

#1 Updated by Klaas TJEBBES about 8 years ago

La fonction "get_last_connected" n'est pas utilisé.

    def get_last_connected(self, ip):
        """Renvoie le dernier username connecte sur ip (ou None)
        """ 

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

  • Tracker changed from Anomalie to Tâche
  • Project changed from Distribution EOLE to controle-vnc
  • Estimated time set to 6.00 h
  • Remaining (hours) set to 6.0

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

  • Parent task set to #10799

#4 Updated by Joël Cuissinat about 8 years ago

  • Subject changed from connexions.py ne renvoit pas toujours le bon user pour une IP donnée to connexions.py ne renvoie pas toujours le bon user pour une IP donnée

#5 Updated by Klaas TJEBBES about 8 years ago

  • Status changed from Nouveau to En cours

#6 Updated by Klaas TJEBBES about 8 years ago

  • Assigned To set to Klaas TJEBBES

#7 Updated by Klaas TJEBBES about 8 years ago

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

#8 Updated by Klaas TJEBBES about 8 years ago

  • Description updated (diff)
  • Status changed from Résolu to En cours
  • % Done changed from 100 to 0

#9 Updated by Klaas TJEBBES about 8 years ago

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

#10 Updated by Joël Cuissinat about 8 years ago

  • Remaining (hours) changed from 6.0 to 0.5

#11 Updated by Gilles Grandgérard about 8 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) changed from 0.5 to 0.0

Also available in: Atom PDF