Wiki » Historique » Version 5
Gilles Grandgérard, 02/09/2015 15:14
1 | 1 | Luc Bourdot | h2. EOLE Active Directory Domain Controler |
---|---|---|---|
2 | 1 | Luc Bourdot | |
3 | 1 | Luc Bourdot | Comment tester : |
4 | 1 | Luc Bourdot | |
5 | 1 | Luc Bourdot | ================ |
6 | 1 | Luc Bourdot | |
7 | 2 | Gilles Grandgérard | Attention le filesystem qui héberge les partages doit avoir le support des ACL activés (cf:https://wiki.samba.org/index.php/Setup_and_configure_file_shares_with_Windows_ACLs#Preparatory_work) |
8 | 1 | Luc Bourdot | |
9 | 1 | Luc Bourdot | Ce qui donne sur une Eolebase : /dev/mapper/eolebase--vg-root / ext4 errors=remount-ro,barrier=0,acl,user_xattr 0 1 |
10 | 1 | Luc Bourdot | |
11 | 1 | Luc Bourdot | 1°) Installer une machine eolebase 2.5 |
12 | 1 | Luc Bourdot | |
13 | 1 | Luc Bourdot | 2°) Mettre à jour avec les derniers paquest de Dev "Maj-Auto -D" |
14 | 1 | Luc Bourdot | |
15 | 1 | Luc Bourdot | 3°) Installer les paquets suivants : |
16 | 1 | Luc Bourdot | |
17 | 2 | Gilles Grandgérard | *apt-get install samba samba-common python-samba samba-dsdb-modules samba-libs samba-vfs-modules winexe ldb-tools winbind acl* |
18 | 1 | Luc Bourdot | |
19 | 2 | Gilles Grandgérard | *apt-get install make git* |
20 | 1 | Luc Bourdot | |
21 | 1 | Luc Bourdot | Si il en manque (patch welcome ;) |
22 | 1 | Luc Bourdot | |
23 | 1 | Luc Bourdot | 3°) Cloner le dépôt git sur la machine |
24 | 1 | Luc Bourdot | |
25 | 3 | Gilles Grandgérard | *git clone https://dev-eole.ac-dijon.fr/git/eole-ad-dc.git* |
26 | 1 | Luc Bourdot | |
27 | 1 | Luc Bourdot | 4°) Installer les dico/templates/scripts ... |
28 | 1 | Luc Bourdot | |
29 | 3 | Gilles Grandgérard | *cd eole-ad-dc |
30 | 3 | Gilles Grandgérard | make install* |
31 | 1 | Luc Bourdot | |
32 | 1 | Luc Bourdot | 5°) Lancer gen_config |
33 | 1 | Luc Bourdot | |
34 | 1 | Luc Bourdot | Configurer le serveur. |
35 | 1 | Luc Bourdot | |
36 | 1 | Luc Bourdot | |
37 | 1 | Luc Bourdot | |
38 | 1 | Luc Bourdot | Attention : Par mesure de sécurité je met le "Nom du workgroup AD" dans "Nom du domaine AD" |
39 | 1 | Luc Bourdot | |
40 | 1 | Luc Bourdot | A voir pour l'avenir, on pourrais très bien utiliser "Nom de domaine académique" et |
41 | 1 | Luc Bourdot | |
42 | 1 | Luc Bourdot | "Suffixe du nom de domaine académique" ou "Nom de domaine privé du réseau local" |
43 | 1 | Luc Bourdot | |
44 | 1 | Luc Bourdot | 6°) Lancer l'instance |
45 | 1 | Luc Bourdot | |
46 | 1 | Luc Bourdot | 7°) ouvrir le firewall (cf #11498) |
47 | 1 | Luc Bourdot | |
48 | 4 | Gilles Grandgérard | <pre> |
49 | 5 | Gilles Grandgérard | *iptables -I eth0-root -p udp -m udp --dport 137 -j ACCEPT |
50 | 5 | Gilles Grandgérard | iptables -I eth0-root -p tcp -m tcp --match multiport --sports 1024:5000 --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT * |
51 | 4 | Gilles Grandgérard | </pre> |
52 | 4 | Gilles Grandgérard | |
53 | 1 | Luc Bourdot | 8°) Vous pouvez jouer ! |
54 | 1 | Luc Bourdot | |
55 | 1 | Luc Bourdot | Il existe des scripts pour vous faciliter la vie. |
56 | 1 | Luc Bourdot | |
57 | 1 | Luc Bourdot | * join-ad : Jonction au domaine d'une machine sans jamais voir l'iterface de W$ |
58 | 1 | Luc Bourdot | |
59 | 1 | Luc Bourdot | * psexec : Execute des commandes PowerShell sur les machines W$ sans jamaisvoir l'interface de W$ |
60 | 1 | Luc Bourdot | |
61 | 1 | Luc Bourdot | * adCreateUser : Crée un utilisateur en utilisant les outils samba et en définissant automatiquement le répertoire "home" le U: |
62 | 1 | Luc Bourdot | |
63 | 1 | Luc Bourdot | Attention: Il ne faut jamais jamais jamais jamais lancer le service "samba" |
64 | 1 | Luc Bourdot | |
65 | 1 | Luc Bourdot | # CreoleService samba-ad-dc restart |
66 | 1 | Luc Bourdot | |
67 | 1 | Luc Bourdot | Pour joindre une machine au domaine voici comment faire : |
68 | 1 | Luc Bourdot | |
69 | 1 | Luc Bourdot | Lancer depuis le serveur AD Samba4 : |
70 | 1 | Luc Bourdot | |
71 | 1 | Luc Bourdot | # join-ad -U "MON-DOMAINE\administartor" -P "Eole;Samba&2100" -u "MAMACHINE\administrateur" -m IP_MACHINE_CLIENT |
72 | 1 | Luc Bourdot | |
73 | 1 | Luc Bourdot | Le script vous demande de saisir le mot de passe administrateur de la machine et normalement si tout vas bien, ils vous répond |
74 | 1 | Luc Bourdot | |
75 | 1 | Luc Bourdot | que tout seras actif après le reboot. |
76 | 1 | Luc Bourdot | |
77 | 1 | Luc Bourdot | Vous pouvez ensuite rebooter la machine avec la commande psexec : |
78 | 1 | Luc Bourdot | |
79 | 1 | Luc Bourdot | # psexec -u "MON-DOMAINE\administrator" -m IP_MACHINE_CLIENT -c Restart-Computer |
80 | 1 | Luc Bourdot | |
81 | 1 | Luc Bourdot | PS: Il faudras penser a une solution pour la gestion du mot de passe Administrateur du domaine. |
82 | 1 | Luc Bourdot | |
83 | 1 | Luc Bourdot | Nos scripts en ont besoin mais c'est quand même une information sensible. Ajourd'hui j'ai juste mis |
84 | 1 | Luc Bourdot | |
85 | 1 | Luc Bourdot | un mot de passe par défaut et je l'utilise partout en dur dans les scripts (bad bad bad) |