Hello list,

I've got records with e.g. multiple mail: entries per dn:

dn: cn=Joe Sixpack,ou=addressbook,dc=example,dc=org
[ 8< 8< 8< snip objectclasses and other stuff 8< 8< 8< ]
mail: [email protected]
mail: [email protected]
mail: [email protected]

GUI ldap clients like jxplorer are able to change a single mail: entry.
Using "ldapmodify" I replace the first mail: entry, but it will delete
the other mail: antries:

#################################################################

change.diff file:

dn: cn=Joe Sixpack,ou=addressbook,dc=example,dc=com
changetype: modify
replace: mail
mail: [email protected]
-

#################################################################

invoke:

ldapmodify -x -D "cn=admin,dc=example,dc=com" -W -f change.ldif

#################################################################

result:

dn: cn=Joe Sixpack,ou=addressbook,dc=example,dc=org
[ 8< 8< 8< snip objectclasses and other stuff 8< 8< 8< ]
mail: [email protected]

#################################################################

Is there a way to tell ldapmodify to change just a particular entry?

R.

-- 
richard lucassen
http://contact.xaq.nl/

Reply via email to