# OpenLDAP
https://datatracker.ietf.org/doc/html/rfc2252
https://www.alvestrand.no/objectid/1.3.6.1.4.1.1466.115.121.1.html
Installé sur ldap01.grif, accessible en ldaps 636.
Conf dispo dans /usr/local/etc/openldap/
.
### Ajouter un attribut à un schéma
```
[root@ldap01 ~]# cat /usr/local/etc/openldap/schema/grifon.schema
attributetype ( 1.3.6.1.4.1.52011.2 NAME 'CodeAdherent'
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 'Company'
EQUALITY caseIgnoreMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
objectclass ( 1.3.6.1.4.1.52011.1 NAME 'GRIFObject'
SUP top
AUXILIARY
MAY ( CodeAdherent $ Company ))
!/*
```
```
[root@ldap01 ~]# service slapd restart
Stopping slapd.
Performing sanity check on slap configuration: OK
Starting slapd.
```