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
100%
History
#1 Updated by Laurent Gourvenec 12 months ago
/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 Updated by Ludwig Seys 12 months ago
- Assigned To set to Ludwig Seys
#3 Updated by Ludwig Seys 12 months ago
- Status changed from Nouveau to En cours
#4 Updated by Ludwig Seys 12 months ago
- Status changed from En cours to Résolu
- % Done changed from 0 to 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 Updated by Joël Cuissinat 12 months ago
- Status changed from Résolu to Fermé
- Remaining (hours) set to 0.0
Test des 3 scripts avec etb1.pcprofs-10
#6 Updated by Joël Cuissinat 12 months ago
- Estimated time set to 0.00 h
Test des 3 scripts suite au rétro-portage en 2.8.1