De Linuxmemo.
- Ajouter un attribut à un objet
fichier /tmp/add
dn: cn=Mathieu DECORE, dc=chez, dc=moi
changetype: modify
add: telephoneNumber
telephoneNumber: 0123456789
ldapmodify -D "cn=admin, dc=chez, dc=moi" -w "<password>" -f /tmp/add
- Modifier la valeur d'un attribut
fichier /tmp/modify
dn: cn=Mathieu DECORE, dc=chez, dc=moi
changetype: modify
replace: telephoneNumber
telephoneNumber: 9876543210
ldapmodify -D "cn=admin, dc=chez, dc=moi" -w "<password>" -f /tmp/modify
fichier /tmp/delete
dn: cn=Mathieu DECORE, dc=chez, dc=moi
changetype: modify
delete: telephoneNumber
ldapmodify -D "cn=admin, dc=chez, dc=moi" -w "<password>" -f /tmp/delete