Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
elearning:workbooks:tomcat:tc05 [2023/04/11 04:57] – admin | elearning:workbooks:tomcat:tc05 [2023/12/06 08:13] (Version actuelle) – admin | ||
---|---|---|---|
Ligne 713: | Ligne 713: | ||
[root@centos7 ~]# slaptest -f / | [root@centos7 ~]# slaptest -f / | ||
config file testing succeeded | config file testing succeeded | ||
+ | </ | ||
+ | |||
+ | Si vous utilisez CentOS 8 : | ||
+ | |||
+ | Nettoyez les anciens fichiers de configuration et fichiers de données : | ||
+ | |||
+ | < | ||
+ | [root@centos8 bin]# rm -Rf / | ||
+ | |||
+ | [root@centos8 bin]# rm -f / | ||
+ | |||
+ | [root@centos8 bin]# rm -f / | ||
+ | </ | ||
+ | |||
+ | Copiez le fichier **/ | ||
+ | |||
+ | < | ||
+ | [root@centos8 bin]# cp / | ||
+ | </ | ||
+ | |||
+ | Copiez le fichier **/ | ||
+ | |||
+ | < | ||
+ | [root@centos8 bin]# cp / | ||
+ | </ | ||
+ | |||
+ | Générez maintenant un mot de passe pour l' | ||
+ | |||
+ | < | ||
+ | [root@centos8 tmp]# slappasswd | ||
+ | New password: fenestros | ||
+ | Re-enter new password: fenestros | ||
+ | {SSHA}dAVyaIZX7WT4DBu6/ | ||
+ | </ | ||
+ | |||
+ | La commande slappasswd prend les options suivantes : | ||
+ | |||
+ | < | ||
+ | [root@centos8 tmp]# slappasswd --help | ||
+ | slappasswd: invalid option -- ' | ||
+ | Usage: slappasswd [options] | ||
+ | -c format | ||
+ | -g generate random password | ||
+ | -h hash | ||
+ | -n omit trailing newline | ||
+ | -o < | ||
+ | module-path=< | ||
+ | module-load=< | ||
+ | -s secret | ||
+ | -u generate RFC2307 values (default) | ||
+ | -v increase verbosity | ||
+ | -T file read file for new password | ||
+ | </ | ||
+ | |||
+ | Il convient ensuite de modifier le fichier **/ | ||
+ | |||
+ | < | ||
+ | ... | ||
+ | olcSuffix: o=fenestros.loc | ||
+ | olcRootDN: cn=Manager, | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | Vous obtiendrez : | ||
+ | |||
+ | < | ||
+ | [root@centos8 tmp]# vi / | ||
+ | |||
+ | [root@centos8 tmp]# cat / | ||
+ | ... | ||
+ | # | ||
+ | # Backend database definitions | ||
+ | # | ||
+ | |||
+ | dn: olcDatabase=mdb, | ||
+ | objectClass: | ||
+ | objectClass: | ||
+ | olcDatabase: | ||
+ | olcSuffix: o=fenestros.loc | ||
+ | olcRootDN: cn=Manager, | ||
+ | olcRootPW: {SSHA}dAVyaIZX7WT4DBu6/ | ||
+ | olcDbDirectory: | ||
+ | olcDbIndex: objectClass eq,pres | ||
+ | olcDbIndex: ou, | ||
+ | </ | ||
+ | |||
+ | <WRAP center round important 60%> **Important** - | ||
+ | La directive **olcSuffix** indique la racine de l' | ||
+ | </ | ||
+ | |||
+ | Initialisez ensuite l' | ||
+ | |||
+ | < | ||
+ | [root@centos8 bin]# slapadd -F / | ||
+ | _#################### | ||
+ | Closing DB... | ||
</ | </ | ||
Ligne 1132: | Ligne 1228: | ||
< | < | ||
- | [root@centos7 bin]# cd /root ; openssl genrsa -out www.i2tch.loc.key | + | [root@centos7 bin]# cd /root ; openssl genrsa -out www.i2tch.loc.key |
Generating RSA private key, 1024 bit long modulus | Generating RSA private key, 1024 bit long modulus | ||
................++++++ | ................++++++ |