Ldapmodify
De Linuxmemo.
Version du 9 juillet 2013 à 13:50 par Linuxmemo (discuter | contributions)
- 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
- Effacer un attribut
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