schema ldap
This commit is contained in:
parent
396e469abb
commit
f0b0b56138
|
@ -148,3 +148,54 @@ Rajouter ceci dans le fichier _/etc/amavis/conf.d/50-user_ :
|
||||||
qr'jdoe@example.com$'i,
|
qr'jdoe@example.com$'i,
|
||||||
));
|
));
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
## Intégration LDAP
|
||||||
|
|
||||||
|
Rajouter le schéma de `https://amavis.org/LDAP.schema.txt` en le convertissant en LDIF.
|
||||||
|
|
||||||
|
```
|
||||||
|
$ cd /tmp
|
||||||
|
$ wget https://amavis.org/LDAP.schema.txt
|
||||||
|
$ mkdir /tmp/ldif
|
||||||
|
$ echo 'include /tmp/LDAP.schema.txt' >> /tmp/slap.conf
|
||||||
|
# slaptest -f /tmp/slap.conf -F /tmp/ldif/
|
||||||
|
```
|
||||||
|
|
||||||
|
Changer les attributs :
|
||||||
|
|
||||||
|
```
|
||||||
|
dn: cn={0}ldap
|
||||||
|
objectClass: olcSchemaConfig
|
||||||
|
cn: {0}ldap
|
||||||
|
```
|
||||||
|
|
||||||
|
Par (avec le bon numéro `ls /etc/ldap/slapd.d/cn\=config/cn\=schema/cn\=\{*`) :
|
||||||
|
|
||||||
|
```
|
||||||
|
dn: cn={5}amavis
|
||||||
|
objectClass: olcSchemaConfig
|
||||||
|
cn: {5}amavis
|
||||||
|
```
|
||||||
|
|
||||||
|
Supprimer à la fin :
|
||||||
|
|
||||||
|
```
|
||||||
|
entryUUID: 4437d7ae-914f-1036-9cdf-cd9cc71d539a
|
||||||
|
creatorsName: cn=config
|
||||||
|
createTimestamp: 20170227154345Z
|
||||||
|
entryCSN: 20170227154345.031267Z#000000#000#000000
|
||||||
|
modifiersName: cn=config
|
||||||
|
modifyTimestamp: 20170227154345Z
|
||||||
|
```
|
||||||
|
|
||||||
|
Supprimer la ligne cr32 :
|
||||||
|
|
||||||
|
```
|
||||||
|
# CRC32 32ff7a5a
|
||||||
|
```
|
||||||
|
|
||||||
|
Le copier dans le dossier des schémas :
|
||||||
|
|
||||||
|
```
|
||||||
|
# install -v -o openldap -g openldap -m 640 /tmp/ldif/cn\=config/cn\=schema/cn\=\{0\}ldap.ldif /etc/ldap/slapd.d/cn\=config/cn\=schema/cn\=\{5\}amavis.ldif
|
||||||
|
```
|
Loading…
Reference in a new issue