services:ldap
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
services:ldap [2023/02/16 13:54] – créée gizmo | services:ldap [2025/08/29 08:28] (Version actuelle) – add replication evann | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
# OpenLDAP | # OpenLDAP | ||
+ | https:// | ||
+ | https:// | ||
- | Installé sur ldap01.grif, accessible en ldaps 636. | + | Installé sur auth01.grif et auth02.grif, accessible en ldaps 636. |
+ | |||
+ | Conf dispo dans `/ | ||
+ | |||
+ | ### Ajouter un attribut à un schéma | ||
+ | |||
+ | ``` | ||
+ | [root@ldap01 ~]# cat / | ||
+ | attributetype ( 1.3.6.1.4.1.52011.2 NAME ' | ||
+ | EQUALITY caseIgnoreMatch | ||
+ | SUBSTR caseIgnoreSubstringsMatch | ||
+ | SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 ) | ||
+ | |||
+ | attributetype ( 1.3.6.1.4.1.52011.3 NAME ' | ||
+ | EQUALITY caseIgnoreMatch | ||
+ | SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 ) | ||
+ | |||
+ | objectclass ( 1.3.6.1.4.1.52011.1 NAME ' | ||
+ | SUP top | ||
+ | AUXILIARY | ||
+ | MAY ( CodeAdherent $ Company )) | ||
+ | !/* | ||
+ | |||
+ | ``` | ||
+ | |||
+ | ``` | ||
+ | [root@ldap01 ~]# service slapd restart | ||
+ | Stopping slapd. | ||
+ | Performing sanity check on slap configuration: | ||
+ | Starting slapd. | ||
+ | |||
+ | ``` | ||
+ | |||
+ | ### Replication du ldap : | ||
+ | |||
+ | Le ldap est repliqué en mode [mirroir](https:// | ||
+ | |||
+ | La configuration est relativement simple, pour chaque serveur il faut uniquement changer le `serverID` et l'url du provider : | ||
+ | |||
+ | ``` | ||
+ | serverID 01 | ||
+ | |||
+ | [...] | ||
+ | |||
+ | overlay syncprov | ||
+ | syncprov-checkpoint 100 10 | ||
+ | syncprov-sessionlog 100 | ||
+ | |||
+ | syncrepl | ||
+ | provider=ldap:// | ||
+ | starttls=critical | ||
+ | bindmethod=simple | ||
+ | binddn=" | ||
+ | credentials=" | ||
+ | searchbase=" | ||
+ | schemachecking=on | ||
+ | type=refreshAndPersist | ||
+ | retry=" | ||
+ | |||
+ | mirrormode on | ||
+ | ``` | ||
+ | |||
+ | > Oui le mot de passe est en clair, parce que le sasl c'est la merde a mettre en place ... | ||
- | Conf dispo dans / |
services/ldap.1676555667.txt.gz · Dernière modification : de gizmo