Connecter Linux à un AD -...

27
Connecter Linux à un AD Redhat IDM et sssd Par Nicolas Zin – architecte technologique – Savoir-faire Linux

Transcript of Connecter Linux à un AD -...

Page 1: Connecter Linux à un AD - people.redhat.compeople.redhat.com/mlessard/qc/presentations/june2015/... · 2015-06-05 · Redhat5.x et < RHEL 6.4 : Démonstration. Savoir-faire Linux

Connecter Linux à un ADRedhat IDM et sssd

Par Nicolas Zin – architecte technologique – Savoir-faire Linux

Page 2: Connecter Linux à un AD - people.redhat.compeople.redhat.com/mlessard/qc/presentations/june2015/... · 2015-06-05 · Redhat5.x et < RHEL 6.4 : Démonstration. Savoir-faire Linux

Savoir-faire Linux | Michael Lessard 2

Agenda

●Rappel sur kerberos●Active Directory et Redhat IDM●Les différentes facons de connecter une machine Linux à un Active Directory

●Connection directe●Trust AD-Redhat IDM

Page 3: Connecter Linux à un AD - people.redhat.compeople.redhat.com/mlessard/qc/presentations/june2015/... · 2015-06-05 · Redhat5.x et < RHEL 6.4 : Démonstration. Savoir-faire Linux

Rappel sur kerberos

Page 4: Connecter Linux à un AD - people.redhat.compeople.redhat.com/mlessard/qc/presentations/june2015/... · 2015-06-05 · Redhat5.x et < RHEL 6.4 : Démonstration. Savoir-faire Linux

Savoir-faire Linux | Michael Lessard 4

Page 5: Connecter Linux à un AD - people.redhat.compeople.redhat.com/mlessard/qc/presentations/june2015/... · 2015-06-05 · Redhat5.x et < RHEL 6.4 : Démonstration. Savoir-faire Linux

Savoir-faire Linux | Michael Lessard 5

Page 6: Connecter Linux à un AD - people.redhat.compeople.redhat.com/mlessard/qc/presentations/june2015/... · 2015-06-05 · Redhat5.x et < RHEL 6.4 : Démonstration. Savoir-faire Linux

Savoir-faire Linux | Michael Lessard 6

Page 7: Connecter Linux à un AD - people.redhat.compeople.redhat.com/mlessard/qc/presentations/june2015/... · 2015-06-05 · Redhat5.x et < RHEL 6.4 : Démonstration. Savoir-faire Linux

Redhat IDM

Page 8: Connecter Linux à un AD - people.redhat.compeople.redhat.com/mlessard/qc/presentations/june2015/... · 2015-06-05 · Redhat5.x et < RHEL 6.4 : Démonstration. Savoir-faire Linux

Savoir-faire Linux | Michael Lessard 8

Structure interne

Active Directory =● Kerberos (+ntp)● Ldap● MSRPC (via SMB)

Redhat IDM / FreeIPA = ● Kerberos (+ntp)● Ldap● dogtag

Page 9: Connecter Linux à un AD - people.redhat.compeople.redhat.com/mlessard/qc/presentations/june2015/... · 2015-06-05 · Redhat5.x et < RHEL 6.4 : Démonstration. Savoir-faire Linux

Connection Linux - AD

Page 10: Connecter Linux à un AD - people.redhat.compeople.redhat.com/mlessard/qc/presentations/june2015/... · 2015-06-05 · Redhat5.x et < RHEL 6.4 : Démonstration. Savoir-faire Linux

Savoir-faire Linux | Michael Lessard 11

But

● Des utilisateurs windows doivent pouvoir se connecter aux machines Unix avec leurs login/password● Si possible on centralise les règles sudo

Page 11: Connecter Linux à un AD - people.redhat.compeople.redhat.com/mlessard/qc/presentations/june2015/... · 2015-06-05 · Redhat5.x et < RHEL 6.4 : Démonstration. Savoir-faire Linux

Savoir-faire Linux | Michael Lessard 12

Page 12: Connecter Linux à un AD - people.redhat.compeople.redhat.com/mlessard/qc/presentations/june2015/... · 2015-06-05 · Redhat5.x et < RHEL 6.4 : Démonstration. Savoir-faire Linux

Savoir-faire Linux | Michael Lessard 13

Page 13: Connecter Linux à un AD - people.redhat.compeople.redhat.com/mlessard/qc/presentations/june2015/... · 2015-06-05 · Redhat5.x et < RHEL 6.4 : Démonstration. Savoir-faire Linux

Savoir-faire Linux | Michael Lessard 14

Page 14: Connecter Linux à un AD - people.redhat.compeople.redhat.com/mlessard/qc/presentations/june2015/... · 2015-06-05 · Redhat5.x et < RHEL 6.4 : Démonstration. Savoir-faire Linux

Savoir-faire Linux | Michael Lessard 15

Page 15: Connecter Linux à un AD - people.redhat.compeople.redhat.com/mlessard/qc/presentations/june2015/... · 2015-06-05 · Redhat5.x et < RHEL 6.4 : Démonstration. Savoir-faire Linux

Savoir-faire Linux | Michael Lessard 16

Page 16: Connecter Linux à un AD - people.redhat.compeople.redhat.com/mlessard/qc/presentations/june2015/... · 2015-06-05 · Redhat5.x et < RHEL 6.4 : Démonstration. Savoir-faire Linux

Savoir-faire Linux | Michael Lessard 17

Page 17: Connecter Linux à un AD - people.redhat.compeople.redhat.com/mlessard/qc/presentations/june2015/... · 2015-06-05 · Redhat5.x et < RHEL 6.4 : Démonstration. Savoir-faire Linux

Savoir-faire Linux | Michael Lessard 18

Page 18: Connecter Linux à un AD - people.redhat.compeople.redhat.com/mlessard/qc/presentations/june2015/... · 2015-06-05 · Redhat5.x et < RHEL 6.4 : Démonstration. Savoir-faire Linux

Savoir-faire Linux | Michael Lessard 19

Page 19: Connecter Linux à un AD - people.redhat.compeople.redhat.com/mlessard/qc/presentations/june2015/... · 2015-06-05 · Redhat5.x et < RHEL 6.4 : Démonstration. Savoir-faire Linux

Connection Linux – AD avec sssd

Page 20: Connecter Linux à un AD - people.redhat.compeople.redhat.com/mlessard/qc/presentations/june2015/... · 2015-06-05 · Redhat5.x et < RHEL 6.4 : Démonstration. Savoir-faire Linux

Savoir-faire Linux | Michael Lessard 21

serveur Linux - AD

● - installation des Service For Unix dans l'Active Directory (schema avec uid,gid…)

● yum install sssd sssd-client krb5-workstation samba openldap-clients policycoreutils-python

kinit [email protected]

net ads join createupn=host/[email protected] –k

net ads keytab create

net ads keytab add host/[email protected]

● Configure sssd

● Cf http://www.chriscowley.me.uk/blog/2013/12/16/integrating-rhel-with-active-directory/

Page 21: Connecter Linux à un AD - people.redhat.compeople.redhat.com/mlessard/qc/presentations/june2015/... · 2015-06-05 · Redhat5.x et < RHEL 6.4 : Démonstration. Savoir-faire Linux

Connection via IDM

Page 22: Connecter Linux à un AD - people.redhat.compeople.redhat.com/mlessard/qc/presentations/june2015/... · 2015-06-05 · Redhat5.x et < RHEL 6.4 : Démonstration. Savoir-faire Linux

Savoir-faire Linux | Michael Lessard 23

Pré-requis

● Windows 2008 ou 2012● Redhat 7.1+ sur les serveurs● Sssd >=1.9 : Redhat 6.4+ pour avoir toutes les fonctionnalités● Sssd <1.9 : Redhat 5.8+, Redhat 6 à 6.3 : avec des fonctionnalités réduites (hbac, support par couche de

compatibilité sur le serveur IDM)

Page 23: Connecter Linux à un AD - people.redhat.compeople.redhat.com/mlessard/qc/presentations/june2015/... · 2015-06-05 · Redhat5.x et < RHEL 6.4 : Démonstration. Savoir-faire Linux

Savoir-faire Linux | Michael Lessard 24

Redhat IDM - AD

● - installation des Service For Unix dans l'Active Directory optionnel

● ipa-adtrust-install --enable-compat –netbios-name=LINUX● ipa trust-add --type=ad ipawindows.mtl.sfl --admin Administrator --password

Page 24: Connecter Linux à un AD - people.redhat.compeople.redhat.com/mlessard/qc/presentations/june2015/... · 2015-06-05 · Redhat5.x et < RHEL 6.4 : Démonstration. Savoir-faire Linux

Savoir-faire Linux | Michael Lessard 25

Linux server – Redhat IDM

● yum install ipa-client -y● Ipa-client-install

Page 25: Connecter Linux à un AD - people.redhat.compeople.redhat.com/mlessard/qc/presentations/june2015/... · 2015-06-05 · Redhat5.x et < RHEL 6.4 : Démonstration. Savoir-faire Linux

Savoir-faire Linux | Michael Lessard 26

Sssd < 1.9

● Redhat5.x et < RHEL 6.4 :

Page 26: Connecter Linux à un AD - people.redhat.compeople.redhat.com/mlessard/qc/presentations/june2015/... · 2015-06-05 · Redhat5.x et < RHEL 6.4 : Démonstration. Savoir-faire Linux

Démonstration

Page 27: Connecter Linux à un AD - people.redhat.compeople.redhat.com/mlessard/qc/presentations/june2015/... · 2015-06-05 · Redhat5.x et < RHEL 6.4 : Démonstration. Savoir-faire Linux

Savoir-faire Linux | Michael Lessard 28

Configuration

● Réseau 10.0.10x● Domaine Windows : rhugw.local● Domaine Linux : rhug.local