...
- FQDN : clinux.ifsic.univ-rennes1.fr
- IP : 148.60.10.52
Authentification
Configurer l'authentification des utilisateurs avec system-config-authentication :
- User information : Enable LDAP support, LDAP search base DN : ou=people,dc=univ-rennes1,dc=fr, LDAP server : ldap:ldapglobal.univ-rennes1.fr
- Authentication : Enable Kerberos support, Realm : UNIV-RENNES1.FR, KDCs : kerb.ifsic.univ-rennes1.fr:88, Admin servers : kerb.ifsic.univ-rennes1.fr:749
Configuration Kerberos
Modification de /etc/krb5.conf :
...
| Bloc de code |
|---|
[root@clinux log]# kadmin
Authenticating as principal root/admin@UNIV-RENNES1.FR with password.
Password for root/admin@UNIV-RENNES1.FR:
kadmin: addprinc -randkey host/clinux.ifsic.univ-rennes1.fr
WARNING: no policy specified for host/clinux.ifsic.univ-rennes1.fr@UNIV-RENNES1.FR; defaulting to no policy
Principal "host/clinux.ifsic.univ-rennes1.fr@UNIV-RENNES1.FR" created.
kadmin: ktadd -k /etc/krb5.keytab host/clinux.ifsic.univ-rennes1.fr
Entry for principal host/clinux.ifsic.univ-rennes1.fr with kvno 3, encryption type AES-256 CTS mode with 96-bit SHA-1 HMAC added to keytab WRFILE:/etc/krb5.keytab.
Entry for principal host/clinux.ifsic.univ-rennes1.fr with kvno 3, encryption type AES-128 CTS mode with 96-bit SHA-1 HMAC added to keytab WRFILE:/etc/krb5.keytab.
Entry for principal host/clinux.ifsic.univ-rennes1.fr with kvno 3, encryption type Triple DES cbc mode with HMAC/sha1 added to keytab WRFILE:/etc/krb5.keytab.
Entry for principal host/clinux.ifsic.univ-rennes1.fr with kvno 3, encryption type ArcFour with HMAC/md5 added to keytab WRFILE:/etc/krb5.keytab.
Entry for principal host/clinux.ifsic.univ-rennes1.fr with kvno 3, encryption type DES with HMAC/sha1 added to keytab WRFILE:/etc/krb5.keytab.
Entry for principal host/clinux.ifsic.univ-rennes1.fr with kvno 3, encryption type DES cbc mode with RSA-MD5 added to keytab WRFILE:/etc/krb5.keytab.
kadmin: exit
[root@clinux log]# |
Le shell des utilisateurs est renvoyé par l'attribut loginShell de l'annuaire LDAP. Si le shell des utilisateurs n'est pas installé, il faut alors l'installer (par exemple yum install csh).
Vérification de l'authentification des utilisateurs :
| Bloc de code |
|---|
\[root@clinux log\]# su - paubry su: warning: cannot change directory to /private/staff/y/ry/paubry: No such file or directory id: cannot find name for group ID 20857 \[paubry@clinux log\]$ exit logout \[root@clinux log\]# |
Monter les homedirs des utilisateurs en ajoutant dans /etc/fstab les lignes suivantes :
| Bloc de code |
|---|
sf1ifsic:/vol/vol1/private/student /private/student nfs exec,nolock,dev,suid,rw,rsize=8192,wsize=8192 1 1 sf1ifsic:/vol/vol2/private/staff /private/staff nfs exec,nolock,dev,suid,rw,rsize=8192,wsize=8192 1 1 |
Créer puis monter les répertoires d'accueil :
| Bloc de code |
|---|
\[root@clinux \~\]#
\[root@clinux \~\]# cd /
\[root@clinux /\]# mkdir \-p /private/staff
\[root@clinux /\]# mkdir \-p /private/student
\[root@clinux /\]# mount \-a
\[root@clinux /\]# mount
\[...\]
sf1ifsic:/vol/vol1/private/student on /private/student type nfs (rw,nolock,rsize=8192,wsize=8192,addr=148.60.4.42)
sf1ifsic:/vol/vol2/private/staff on /private/staff type nfs (rw,nolock,rsize=8192,wsize=8192,addr=148.60.4.42)
\[root@clinux /\]# |
Ajouter si nécessaire le groupe des utilisateurs en local en ajoutant dans le fichier /etc/group :
| Bloc de code |
|---|
staff:x:20857: |
Enfin vérifier à nouveau le login des utilisateurs :
| Bloc de code |
|---|
\[root@clinux \~\]# su - paubry
\[paubry@clinux \~\]$ exit
logout
\[root@clinux \~\]# |
A compléter