Projet

Général

Profil

Tâche #34703

Scénario #34627: Scribe : pouvoir demander le changement de mot de passe à la 1er connexion lors de la création d'un utilisateur via script

Test

Ajouté par Laurent Gourvenec il y a plus d'un an. Mis à jour il y a plus d'un an.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Début:
05/10/2022
Echéance:
% réalisé:

100%

Temps estimé:
0.00 h
Restant à faire (heures):
0.0

Historique

#1 Mis à jour par Laurent Gourvenec il y a plus d'un an

/usr/share/eole/backend/creation-eleve.py -u eleve -c 6a -m Eole12345, -p ele -f ve -d 10/10/2010 -o xxx -x 1
/usr/share/eole/backend/creation-eleve.py -u eleve_pw -c 6a -m Eole12345, -p ele -f ve -d 10/10/2010 -o xxx -x 1 -a
/usr/share/eole/backend/creation-prof.py -u prof -m Eole12345, -p pr -f of
/usr/share/eole/backend/creation-prof.py -u prof_pw -m Eole12345, -p pr -f of -a
/usr/share/eole/backend/creation-administratif.py -u adm -m Eole12345, -p adm -f adm
/usr/share/eole/backend/creation-administratif.py -u adm_pw -m Eole12345, -p adm -f adm -a

#2 Mis à jour par Ludwig Seys il y a plus d'un an

  • Assigné à mis à Ludwig Seys

#3 Mis à jour par Ludwig Seys il y a plus d'un an

  • Statut changé de Nouveau à En cours

#4 Mis à jour par Ludwig Seys il y a plus d'un an

  • Statut changé de En cours à Résolu
  • % réalisé changé de 0 à 100

Fonctionnel :
- utilisateur présent dans samba (samba-tool user list dans le conteneur addc)
- mot de passe bien marqué à changer lors de la création
- compte utilisable (connexion à EAD2 pour les comptes prof fonctionnel)

root@scribe:~# /usr/share/eole/backend/creation-prof.py -u prof100 -m 'Azerty24' -p admin -f test -M 'internet' -q 0 -x 1 -a
L'utilisateur prof100 (admin test) a été ajouté
root@scribe:~# /usr/share/eole/backend/creation-prof.py -u prof10 -m 'Azerty24' -p admin -f test -M 'internet' -q 0 -x 1
root@scribe:~# /usr/share/eole/backend/creation-prof.py -u prof10 -m 'Azerty24' -p admin -f test -M 'internet' -q 0 -x 1
L'utilisateur prof10 (admin test) a été ajouté
root@scribe:~# /usr/share/eole/backend/creation-prof.py -u prof10 -m 'Azerty24' -p admin -f test -M 'internet' -q 0 -x 1^C
root@scribe:~# /usr/share/eole/backend/creation-eleve.py -u eleve100 -c 6a -m 'Azerty24' -p ele -f ve -d 10/10/2010 -o xxx -x 1 -a -c A-1
/usr/share/eole/backend/creation-eleve.py -u eleve10 -c 6a -m 'Azerty24' -p ele -f ve -d 10/10/2010 -o xxx -x 1 -c A-1
L'utilisateur eleve100 (ele ve) a été ajouté
root@scribe:~# /usr/share/eole/backend/creation-eleve.py -u eleve10 -c 6a -m 'Azerty24' -p ele -f ve -d 10/10/2010 -o xxx -x 1 -c A-1
L'utilisateur eleve10 (ele ve) a été ajouté
root@scribe:~# /usr/share/eole/backend/creation-administratif.py -u adm100 -m 'Azerty24' -p adm -f adm -a

/usr/share/eole/backend/creation-administratif.py -u adm10 -m 'Azerty24' -p adm -f admL'utilisateur adm100 (adm adm) a été ajouté
root@scribe:~#
root@scribe:~#
root@scribe:~# /usr/share/eole/backend/creation-administratif.py -u adm10 -m 'Azerty24' -p adm -f adm
L'utilisateur adm10 (adm adm) a été ajouté
root@scribe:~# smbclient -L 192.0.2.2 -U prof10
Password for [DOMSCRIBE\prof10]:

Sharename       Type      Comment
--------- ---- -------
netlogon Disk Network Logon Service
sysvol Disk Sysvol Service
IPC$ IPC IPC Service (Samba 4.15.9-Ubuntu)
SMB1 disabled -- no workgroup available
root@scribe:~# smbclient -L 192.0.2.2 -U prof100
Password for [DOMSCRIBE\prof100]:
session setup failed: NT_STATUS_PASSWORD_MUST_CHANGE
root@scribe:~# smbclient -L 192.0.2.2 -U eleve10
Password for [DOMSCRIBE\eleve10]:
Sharename       Type      Comment
--------- ---- -------
netlogon Disk Network Logon Service
sysvol Disk Sysvol Service
IPC$ IPC IPC Service (Samba 4.15.9-Ubuntu)
SMB1 disabled -- no workgroup available
root@scribe:~# smbclient -L 192.0.2.2 -U eleve100
Password for [DOMSCRIBE\eleve100]:
session setup failed: NT_STATUS_PASSWORD_MUST_CHANGE
root@scribe:~# smbclient -L 192.0.2.2 -U adm10
Password for [DOMSCRIBE\adm10]:
Sharename       Type      Comment
--------- ---- -------
netlogon Disk Network Logon Service
sysvol Disk Sysvol Service
IPC$ IPC IPC Service (Samba 4.15.9-Ubuntu)
SMB1 disabled -- no workgroup available
root@scribe:~# smbclient -L 192.0.2.2 -U adm100
Password for [DOMSCRIBE\adm100]:
session setup failed: NT_STATUS_PASSWORD_MUST_CHANGE

#5 Mis à jour par Joël Cuissinat il y a plus d'un an

  • Statut changé de Résolu à Fermé
  • Restant à faire (heures) mis à 0.0

Test des 3 scripts avec etb1.pcprofs-10

#6 Mis à jour par Joël Cuissinat il y a plus d'un an

  • Temps estimé mis à 0.00 h

Test des 3 scripts suite au rétro-portage en 2.8.1

Formats disponibles : Atom PDF