You are on page 1of 2

Exercice 

:
1. Créer un compte utilisateur sarhane dans l’unité d’organisation ‘ventes’ dans le
domaine Marjan.local
dsadd user « cn=sarhane,ou=ventes,dc=marjan,dc=local"
2. Créer un compte ordinateur PCsarhane dans l’unité d’organisation ‘ventes’ dans le
domaine Marjan.local
dsadd computer « cn=PCsarhane,ou=ventes,dc=marjan,dc=local"
3. Créer une unité d’organisation nommée Achat dans le domaine Marjan.local

dsadd ou « ou=Achat,dc=marjan,dc=local"

4. Créer un groupe gventes dans l’unité d’organisation ‘ventes’ dans le domaine


Marjan.local
dsadd group « cn=gventes,ou=ventes,dc=marjan,dc=local"
5. Créer un groupe de sécurité et de l’étendue domaine local, nommé gachat dans
l’unité d’organisation Achat dans le domaine Marjan.local
dsadd group « cn=gachat,ou=Achat,dc=marjan,dc=local" –secgrp yes –scope l
6. Créer un compte utilisateur farhan dans l’unité d’organisation ‘achat’ dans le
domaine Marjan.local
 Le mot de passe P@ssw0rd
 Désactivé non
 Il doit changer son mot de passe à la première connexion
 Son login est farhan@ Marjan.local

dsadd user « cn=farhan,ou=Achat,dc=marjan,dc=local" -upn farhan@marjan.local  -pwd


P@ssw0rd -mustchpwd yes disabled no

7. Attribuer au compte utilisateur farhan le numero suivant 023456678


dsmod user « cn=farhan,ou=Achat,dc=marjan,dc=local" –tel 023456678
8. Modifier l’étendue du groupe gventes en universel
dsmod group « cn=gventes,ou=ventes,dc=marjan,dc=local" –scope u
9. Déplacer le compte utilisateur farhan a l’unité d’organisation ventes
dsmove « cn=farhan,ou=Achat,dc=marjan,dc=local" –newparent
“ou=ventes,dc=marjan,dc=local”
10. Ajouter le compte utilisateur farhan au groupe gventes
Dsmod user « cn=farhan,ou=ventes,dc=marjan,dc=local" –memberof
« cn=gventes,ou=ventes,dc=marjan,dc=local"
Ou bien
dsmod group « cn=gventes,ou=ventes,dc=marjan,dc=local" –members
« cn=farhan,ou=ventes,dc=marjan,dc=local"
11. Afficher les groupes du compte utilisateur farhan
Dsget user « cn=farhan,ou=ventes,dc=marjan,dc=local" –memberof
12. Rechercher le compte ordinateur PCsarhane
Dsquery computer –name PCsarhane
13. Supprimer le compte ordinateur PCsarhane
Dsrm « cn=PCsarhane,ou=ventes,dc=marjan,dc=local"
14. Supprimer le groupes gachat
dsrm « cn=gachat,ou=Achat,dc=marjan,dc=local"

You might also like